Version Description
Release Date - 2018-08-16 * FIX: Download JSON compatiblilty issue with WC 2.6.x * FIX: WPML Translate coupon title
Download this release
Release Info
Developer | josk79 |
Plugin | WooCommerce Extended Coupon Features |
Version | 2.6.4 |
Comparing to | |
See all releases |
Code changes from version 2.6.3 to 2.6.4
- includes/WJECF_Debug.php +2 -2
- includes/WJECF_WPML.php +6 -1
- readme.txt +9 -8
- woocommerce-jos-autocoupon.php +9 -7
includes/WJECF_Debug.php
CHANGED
@@ -107,7 +107,7 @@ class WJECF_Debug extends Abstract_WJECF_Plugin {
|
|
107 |
ksort( $meta );
|
108 |
$array['coupons'] = array(
|
109 |
'coupon_id' => $coupon_id,
|
110 |
-
'coupon_code' => $coupon->get_code(),
|
111 |
'meta' => $meta,
|
112 |
);
|
113 |
$array['result'] = 'ok';
|
@@ -197,4 +197,4 @@ class WJECF_Debug extends Abstract_WJECF_Plugin {
|
|
197 |
return in_array( $level, array( 'debug', 'informational', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency' ) );
|
198 |
}
|
199 |
|
200 |
-
}
|
107 |
ksort( $meta );
|
108 |
$array['coupons'] = array(
|
109 |
'coupon_id' => $coupon_id,
|
110 |
+
'coupon_code' => WJECF_Wrap( $coupon )->get_code(),
|
111 |
'meta' => $meta,
|
112 |
);
|
113 |
$array['result'] = 'ok';
|
197 |
return in_array( $level, array( 'debug', 'informational', 'notice', 'warning', 'error', 'critical', 'alert', 'emergency' ) );
|
198 |
}
|
199 |
|
200 |
+
}
|
includes/WJECF_WPML.php
CHANGED
@@ -22,6 +22,7 @@ class WJECF_WPML extends Abstract_WJECF_Plugin {
|
|
22 |
add_filter( 'wjecf_get_product_id', array( $this, 'filter_get_product_id' ), 10 );
|
23 |
add_filter( 'wjecf_get_product_ids', array( $this, 'filter_get_product_ids' ), 10 );
|
24 |
add_filter( 'wjecf_get_product_cat_ids', array( $this, 'filter_get_product_cat_ids' ), 10 );
|
|
|
25 |
}
|
26 |
}
|
27 |
|
@@ -39,8 +40,12 @@ class WJECF_WPML extends Abstract_WJECF_Plugin {
|
|
39 |
return $this->get_translated_object_id( $product_id, 'product' );
|
40 |
}
|
41 |
|
42 |
-
|
|
|
|
|
|
|
43 |
|
|
|
44 |
|
45 |
/**
|
46 |
* Get the ids of all the translations. Otherwise return the original array
|
22 |
add_filter( 'wjecf_get_product_id', array( $this, 'filter_get_product_id' ), 10 );
|
23 |
add_filter( 'wjecf_get_product_ids', array( $this, 'filter_get_product_ids' ), 10 );
|
24 |
add_filter( 'wjecf_get_product_cat_ids', array( $this, 'filter_get_product_cat_ids' ), 10 );
|
25 |
+
add_filter( 'woocommerce_coupon_get_description', array( $this, 'filter_get_coupon_description' ), 10, 2 );
|
26 |
}
|
27 |
}
|
28 |
|
40 |
return $this->get_translated_object_id( $product_id, 'product' );
|
41 |
}
|
42 |
|
43 |
+
public function filter_get_coupon_description( $description, $object ) {
|
44 |
+
$description = __( $description, 'woocommerce-jos-autocoupon');
|
45 |
+
return $description;
|
46 |
+
}
|
47 |
|
48 |
+
//FUNCTIONS
|
49 |
|
50 |
/**
|
51 |
* Get the ids of all the translations. Otherwise return the original array
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
=== WooCommerce Extended Coupon Features ===
|
2 |
Contributors: josk79
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQBCS2QHRY&lc=NL&item_name=Jos%20Koenis&item_number=wordpress%2dplugin¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: woocommerce, coupons, discount
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 5.3
|
7 |
-
Tested up to: 4.9.
|
8 |
-
Stable tag: 2.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -16,7 +16,7 @@ Additional functionality for WooCommerce Coupons: Allow discounts to be automati
|
|
16 |
"WooCommerce Extended Coupon Features" adds functionality to the WooCommerce coupons and allows for automatic discount rules.
|
17 |
Very easy to use, the functionality is conveniently integrated to the WooCommerce Edit Coupon panel.
|
18 |
|
19 |
-
Compatible with WooCommerce 3.
|
20 |
|
21 |
Full documentation is available at [www.soft79.nl](http://www.soft79.nl/documentation/wjecf).
|
22 |
|
@@ -95,10 +95,6 @@ add_filter( 'woocommerce_checkout_fields', function( $checkout_fields ) {
|
|
95 |
} );
|
96 |
`
|
97 |
|
98 |
-
= Can I make a donation? =
|
99 |
-
|
100 |
-
Sure! [This](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQBCS2QHRY&lc=NL&item_name=Jos%20Koenis&item_number=wordpress%2dplugin¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) is the link. Greatly appreciated!
|
101 |
-
|
102 |
== Screenshots ==
|
103 |
|
104 |
1. Allow a coupon to be applied automatically by checking "Auto coupon".
|
@@ -108,6 +104,11 @@ Sure! [This](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQ
|
|
108 |
|
109 |
== Changelog ==
|
110 |
|
|
|
|
|
|
|
|
|
|
|
111 |
= 2.6.3 =
|
112 |
*Release Date - 2018-06-04*
|
113 |
* FIX: WJECF_Controller: Don't use wp_get_current_user() for admin-orders
|
1 |
+
=== WooCommerce Extended Coupon Features FREE ===
|
2 |
Contributors: josk79
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQBCS2QHRY&lc=NL&item_name=Jos%20Koenis&item_number=wordpress%2dplugin¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
|
4 |
Tags: woocommerce, coupons, discount
|
5 |
Requires at least: 4.7
|
6 |
Requires PHP: 5.3
|
7 |
+
Tested up to: 4.9.8
|
8 |
+
Stable tag: 2.6.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
16 |
"WooCommerce Extended Coupon Features" adds functionality to the WooCommerce coupons and allows for automatic discount rules.
|
17 |
Very easy to use, the functionality is conveniently integrated to the WooCommerce Edit Coupon panel.
|
18 |
|
19 |
+
Compatible with WooCommerce 3.4.4. Backwards compatible with older WooCommerce versions (2.6.0 confirmed).
|
20 |
|
21 |
Full documentation is available at [www.soft79.nl](http://www.soft79.nl/documentation/wjecf).
|
22 |
|
95 |
} );
|
96 |
`
|
97 |
|
|
|
|
|
|
|
|
|
98 |
== Screenshots ==
|
99 |
|
100 |
1. Allow a coupon to be applied automatically by checking "Auto coupon".
|
104 |
|
105 |
== Changelog ==
|
106 |
|
107 |
+
= 2.6.4 =
|
108 |
+
*Release Date - 2018-08-16*
|
109 |
+
* FIX: Download JSON compatiblilty issue with WC 2.6.x
|
110 |
+
* FIX: WPML Translate coupon title
|
111 |
+
|
112 |
= 2.6.3 =
|
113 |
*Release Date - 2018-06-04*
|
114 |
* FIX: WJECF_Controller: Don't use wp_get_current_user() for admin-orders
|
woocommerce-jos-autocoupon.php
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Plugin Name: WooCommerce Extended Coupon Features
|
4 |
* Plugin URI: http://www.soft79.nl
|
5 |
* Description: Additional functionality for WooCommerce Coupons: Apply certain coupons automatically, allow applying coupons via an url, etc...
|
6 |
-
* Version: 2.6.
|
7 |
* Author: Soft79
|
8 |
* License: GPL2
|
9 |
* WC requires at least: 2.6.0
|
10 |
-
* WC tested up to: 3.4.
|
11 |
*/
|
12 |
-
|
13 |
-
if ( ! defined('WJECF_VERSION') )
|
|
|
|
|
14 |
|
15 |
// Changelog: see readme.txt
|
16 |
|
@@ -20,9 +22,9 @@ if ( ! defined('WJECF_VERSION') ) define ('WJECF_VERSION', '2.6.3');
|
|
20 |
- (PRO) Eval
|
21 |
*/
|
22 |
|
23 |
-
|
24 |
if ( ! defined('ABSPATH') ) die();
|
25 |
-
|
|
|
26 |
|
27 |
//Translations
|
28 |
add_action( 'plugins_loaded', 'wjecf_load_plugin_textdomain' );
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Plugin Name: WooCommerce Extended Coupon Features FREE
|
4 |
* Plugin URI: http://www.soft79.nl
|
5 |
* Description: Additional functionality for WooCommerce Coupons: Apply certain coupons automatically, allow applying coupons via an url, etc...
|
6 |
+
* Version: 2.6.4
|
7 |
* Author: Soft79
|
8 |
* License: GPL2
|
9 |
* WC requires at least: 2.6.0
|
10 |
+
* WC tested up to: 3.4.4
|
11 |
*/
|
12 |
+
|
13 |
+
if ( ! defined('WJECF_VERSION') ) {
|
14 |
+
define ('WJECF_VERSION', '2.6.4');
|
15 |
+
}
|
16 |
|
17 |
// Changelog: see readme.txt
|
18 |
|
22 |
- (PRO) Eval
|
23 |
*/
|
24 |
|
|
|
25 |
if ( ! defined('ABSPATH') ) die();
|
26 |
+
|
27 |
+
if ( ! function_exists( 'wjecf_load_plugin_textdomain' ) ) {
|
28 |
|
29 |
//Translations
|
30 |
add_action( 'plugins_loaded', 'wjecf_load_plugin_textdomain' );
|