Discount Rules for WooCommerce - Version 1.4.43

Version Description

Download this release

Release Info

Developer flycart
Plugin Icon 128x128 Discount Rules for WooCommerce
Version 1.4.43
Comparing to
See all releases

Code changes from version 1.4.42 to 1.4.43

includes/pricing-rules.php CHANGED
@@ -270,7 +270,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
270
  {
271
  $this->organizeRules();
272
  $this->applyRules($product_page);
273
- $this->initAdjustment();
274
  }
275
 
276
  /**
@@ -432,7 +432,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
432
 
433
  //to handle buy one get one
434
  $free_product_quantity_exists = $this->reduceCartItemQuantityIfFreeProductExistsAlready();
435
-
436
  foreach ($cart_contents as $index => $item) {
437
  $this->matchRules($index, $item, $product_page);
438
  }
@@ -1971,6 +1971,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1971
  $item['quantity'] = ($this->getQuantityOfProductInCart($product_id))+1;
1972
  global $woocommerce;
1973
  $this->analyse($woocommerce, 1);
 
1974
  $this->matchRules($product_id, $item, 1);
1975
  if(isset($this->matched_sets[$product_id])){
1976
  if($variationPrice){
270
  {
271
  $this->organizeRules();
272
  $this->applyRules($product_page);
273
+ if(!$product_page) $this->initAdjustment();
274
  }
275
 
276
  /**
432
 
433
  //to handle buy one get one
434
  $free_product_quantity_exists = $this->reduceCartItemQuantityIfFreeProductExistsAlready();
435
+ $this->matched_sets = array();
436
  foreach ($cart_contents as $index => $item) {
437
  $this->matchRules($index, $item, $product_page);
438
  }
1971
  $item['quantity'] = ($this->getQuantityOfProductInCart($product_id))+1;
1972
  global $woocommerce;
1973
  $this->analyse($woocommerce, 1);
1974
+ $this->matched_sets = array();
1975
  $this->matchRules($product_id, $item, 1);
1976
  if(isset($this->matched_sets[$product_id])){
1977
  if($variationPrice){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flycart.org/
4
  Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts
5
  Requires at least: 4.4.1
6
  Tested up to: 4.9
7
- Stable tag: 1.4.42
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -241,6 +241,9 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
241
 
242
  == Changelog ==
243
 
 
 
 
244
  = 1.4.42 - 06/02/18 =
245
  * Fix - Coupon discount not applied for WooCommerce older v3.2
246
 
4
  Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts
5
  Requires at least: 4.4.1
6
  Tested up to: 4.9
7
+ Stable tag: 1.4.43
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
241
 
242
  == Changelog ==
243
 
244
+ = 1.4.42 - 07/02/18 =
245
+ * Fix - apply wrong discount in cart while having product widget in cart page
246
+
247
  = 1.4.42 - 06/02/18 =
248
  * Fix - Coupon discount not applied for WooCommerce older v3.2
249
 
woo-discount-rules.php CHANGED
@@ -5,10 +5,12 @@
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
- * Version: 1.4.42
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1
 
 
12
  */
13
 
14
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
+ * Version: 1.4.43
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1
12
+ * WC requires at least: 2.4
13
+ * WC tested up to: 3.3
14
  */
15
 
16
  if (!defined('ABSPATH')) exit; // Exit if accessed directly