WooCommerce Extended Coupon Features - Version 2.4.2.1

Version Description

  • FIX: WooCommerce < 2.7 compatibility
Download this release

Release Info

Developer josk79
Plugin Icon 128x128 WooCommerce Extended Coupon Features
Version 2.4.2.1
Comparing to
See all releases

Code changes from version 2.4.2 to 2.4.2.1

includes/wjecf-controller.php CHANGED
@@ -529,7 +529,7 @@ class WJECF_Controller {
529
  //$coupon->is_valid_for_product() only works for fixed_product or percent_product discounts
530
  //It's not, so we create a temporary duplicate
531
  $duplicate_coupon = WJECF_WC()->get_coupon( WJECF_Wrap( $coupon )->get_code() );
532
- $duplicate_coupon->set_discount_type( 'fixed_product' );
533
  return $duplicate_coupon->is_valid_for_product( $product, $values );
534
  }
535
 
529
  //$coupon->is_valid_for_product() only works for fixed_product or percent_product discounts
530
  //It's not, so we create a temporary duplicate
531
  $duplicate_coupon = WJECF_WC()->get_coupon( WJECF_Wrap( $coupon )->get_code() );
532
+ WJECF_Wrap( $duplicate_coupon )->set_discount_type( 'fixed_product' );
533
  return $duplicate_coupon->is_valid_for_product( $product, $values );
534
  }
535
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQ
4
  Tags: woocommerce, coupons, discount
5
  Requires at least: 4.0.0
6
  Tested up to: 4.7.3
7
- Stable tag: 2.4.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,9 @@ Sure! [This](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5T9XQ
106
 
107
  == Changelog ==
108
 
 
 
 
109
  = 2.4.2 =
110
  * FIX: Invalid calculation of subtotal/quantity of matching product since WC 3.0.0
111
  * FIX: Missing "PRODUCT AND/OR" selector on Admin since WC 3.0.0 (Javascript)
4
  Tags: woocommerce, coupons, discount
5
  Requires at least: 4.0.0
6
  Tested up to: 4.7.3
7
+ Stable tag: 2.4.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 2.4.2.1 =
110
+ * FIX: WooCommerce < 2.7 compatibility
111
+
112
  = 2.4.2 =
113
  * FIX: Invalid calculation of subtotal/quantity of matching product since WC 3.0.0
114
  * FIX: Missing "PRODUCT AND/OR" selector on Admin since WC 3.0.0 (Javascript)
woocommerce-jos-autocoupon.php CHANGED
@@ -3,7 +3,7 @@
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.4.2
7
  * Author: Soft79
8
  * License: GPL2
9
  */
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.4.2.1
7
  * Author: Soft79
8
  * License: GPL2
9
  */