Discount Rules for WooCommerce - Version 1.4.29

Version Description

  • 01/12/17 =
  • Fix - Cart price strike out even discount not applied in some case
Download this release

Release Info

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

Code changes from version 1.4.28 to 1.4.29

includes/pricing-rules-3.php CHANGED
@@ -1644,7 +1644,7 @@ if (!class_exists('woo_dicount_rules_pricingRules')) {
1644
  $price_to_display = woo_dicount_rules_generalHelper::wcVersion('2.1') ? wc_price($price) : woocommerce_price($price);
1645
  $original_price_to_display = woo_dicount_rules_generalHelper::wcVersion('2.1') ? wc_price($cart_item['woo_discount']['original_price']) : woocommerce_price($cart_item['woo_discount']['original_price']);
1646
 
1647
- if ($cart_item['woo_discount']['original_price'] !== $price) {
1648
  $item_price = '<span class="cart_price"><del>' . $original_price_to_display . '</del> <ins>' . $price_to_display . '</ins></span>';
1649
  } else {
1650
  $item_price = $price_to_display;
1644
  $price_to_display = woo_dicount_rules_generalHelper::wcVersion('2.1') ? wc_price($price) : woocommerce_price($price);
1645
  $original_price_to_display = woo_dicount_rules_generalHelper::wcVersion('2.1') ? wc_price($cart_item['woo_discount']['original_price']) : woocommerce_price($cart_item['woo_discount']['original_price']);
1646
 
1647
+ if ($cart_item['woo_discount']['original_price'] != $price) {
1648
  $item_price = '<span class="cart_price"><del>' . $original_price_to_display . '</del> <ins>' . $price_to_display . '</ins></span>';
1649
  } else {
1650
  $item_price = $price_to_display;
readme.txt CHANGED
@@ -4,18 +4,20 @@ Donate link: https://flycart.org/
4
  Tags: woocommerce, ecommerce, discounts, coupons, promotion, campaigns, sales, price rules, advanced coupons, advanced discounts
5
  Requires at least: 4.4.1
6
  Tested up to: 4.9
7
- Stable tag: 1.4.28
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
  Create simple to complex discount rules, promotions for your WooCommerce online store.
12
  == Description ==
13
 
14
- WooCommerce discount rules helps you to create any type of bulk discount and pricing rules in your WooCommerce store. Offer Product quantity based discount, cart based discounts, discount for all products(Global level) at a percentage or fixed amount. Increase your sales multifold by offering flexible, customised discounts and free products to your customers.
15
 
16
  Discount will be visible in Product Page, Product details page, Cart and in email invoices.
17
 
18
- [View Demo](http://demo.flycart.org/woo-discount-rules) | [Documentation with real examples](https://www.flycart.org/docs/wordpress/woo-discount-rules) | [Ask Questions](https://www.flycart.org/support/6-wordpress-plugins) | [PRO version](https://www.flycart.org/products/wordpress/woocommerce-discount-rules)
 
 
19
 
20
  = Discount Types =
21
 
@@ -24,17 +26,50 @@ Discount will be visible in Product Page, Product details page, Cart and in emai
24
  * Product based discount
25
  * Buy One Get One Discount(BOGO Deals)
26
 
27
- = Use cases =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
- * Buy 5 items and get 10 % discount - [Video](https://www.youtube.com/watch?v=84VL6Wwf1DI&t=15s)
30
- * Buy T-shirts from Winter Collections and save 10 % - [Video](https://www.youtube.com/watch?v=OEWc7fL3qeM)
31
- * Buy 2 products get 1 free of the same product
32
- * Buy 3 products get another product free
33
- * 20 % discount on all items in the store till December 25 - [Video](https://www.youtube.com/watch?v=pHst5Ncse8M)
34
- * Buy 10 mugs are more and get 5% off - [Video](https://www.youtube.com/watch?v=7ZeRIKXWFmE)
35
- * All orders above $500 will get 15% discount - [Video](https://www.youtube.com/watch?v=RSU0zuvx_Yg)
36
- * Add 5 items to your shopping bag and get 10% discount - [Video](https://www.youtube.com/watch?v=H07va-vBGGk)
37
- * Special offer for Customers from California. Get 25 % discount - [Video](https://www.youtube.com/watch?v=ZxdijPp2A7U)
 
 
 
 
 
 
 
 
38
 
39
  = Adjustment rules =
40
 
@@ -62,15 +97,6 @@ Conditions can be based products, categories, customers, customer roles, shippin
62
  * All Shipping locations ([PRO feature](https://www.flycart.org/products/wordpress/woocommerce-discount-rules))
63
  * Selected shipping locations ([PRO feature](https://www.flycart.org/products/wordpress/woocommerce-discount-rules))
64
 
65
- Examples:
66
-
67
- * All Products get 10 % discount
68
- * Shoes get 20 % discount, T-Shirts get 5% discount
69
- * Adidas Special Edition Shoe (A specific product) gets 15 % discount for 10 days
70
- * Members of Wholesale customers group gets 40 % discount, while Retail customers get 5 % discount
71
- * Customers from California get 10 % discount while those from Texas get 5 %
72
- * Buy a Mobile and get 20% off on headphone
73
-
74
  = Rules apply based on =
75
 
76
  * Products
@@ -179,6 +205,9 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
179
 
180
  == Changelog ==
181
 
 
 
 
182
  = 1.4.28 - 24/11/17 =
183
  * Fix - Buy any 3 from category (cumulative) and get 1 free
184
  * Feature - Buy any 3 from any selected product and get 1 cheapest product from selected list (pro)
4
  Tags: woocommerce, ecommerce, discounts, coupons, promotion, campaigns, sales, price rules, advanced coupons, advanced discounts
5
  Requires at least: 4.4.1
6
  Tested up to: 4.9
7
+ Stable tag: 1.4.29
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
  Create simple to complex discount rules, promotions for your WooCommerce online store.
12
  == Description ==
13
 
14
+ WooCommerce discount rules helps you to create any type of bulk discounts, dynamic pricing and advanced discount rules in your WooCommerce store. Offer Product quantity based discounts, cart based discounts at a percentage or fixed amount or Buy One Get one (BOGO) deals. Increase your sales multifold by offering flexible discounts based on Categories, user roles, Cart items and much more.
15
 
16
  Discount will be visible in Product Page, Product details page, Cart and in email invoices.
17
 
18
+ Display the Pricing discount table beautifully On the product Page.
19
+
20
+ [View Demo](http://demo.flycart.org/woo-discount-rules) | [Documentation with real examples](https://www.flycart.org/docs/wordpress/woo-discount-rules) | [Ask Questions](https://www.flycart.org/support) | [PRO version](https://www.flycart.org/products/wordpress/woocommerce-discount-rules)
21
 
22
  = Discount Types =
23
 
26
  * Product based discount
27
  * Buy One Get One Discount(BOGO Deals)
28
 
29
+ == Examples ==
30
+
31
+ = Product Dependant rule: =
32
+
33
+ * Buy Product A and get 50% discount in Product B
34
+ * Buy 2 quantities of Product A, 2 quantities of Product and get 30% discount in Product C
35
+ * Buy 3 quantities of Product A and get flat $10 off in product B
36
+ * Buy a Mobile and get 20% off on headphone
37
+
38
+ = BOGO deals: =
39
+
40
+ * Buy one get one free of the same product
41
+ * Buy X get Y product free Eg: Buy 3 product and get a pendrive free
42
+ * Buy Any 2 items from Category X, and get a Product free Category B
43
+
44
+ = Category Discount Rules: =
45
+
46
+ * Buy T-shirts from Category Apparel and save 10% – [Video](https://www.youtube.com/watch?v=OEWc7fL3qeM)
47
+ * Get 30% off on Category A & Category B
48
+
49
+ = Cart Discount Rules: =
50
+
51
+ * All orders above $500 will get 15% discount – [Video](https://www.youtube.com/watch?v=RSU0zuvx_Yg)
52
+ * Buy 5 products and get 10% discount – [Video](https://www.youtube.com/watch?v=84VL6Wwf1DI&t=15s)
53
+
54
+ = Product Specific Discount =
55
 
56
+ * Shoes get 20% discount, T-Shirts get 5% discount
57
+ * Adidas Special Edition Shoe (A specific product) gets 15% discount for 10 days
58
+ * Buy 10 mugs are more and get 5% off – [Video](https://www.youtube.com/watch?v=7ZeRIKXWFmE)
59
+
60
+ = User Role based Discount =
61
+
62
+ * Members of Wholesale customers group gets 40% discount, while Retail customers get 5% discount
63
+
64
+ = Global Discount Storewide =
65
+
66
+ * 20% discount on all items in the store till December 25 – [Video](https://www.youtube.com/watch?v=pHst5Ncse8M)
67
+ * All Products get 10% discount
68
+
69
+ = Shipping Address Based Discount =
70
+
71
+ * Flat 25% discount at Cart for Customers from New York
72
+ * Customers from California get 10% discount while those from Texas get 5%
73
 
74
  = Adjustment rules =
75
 
97
  * All Shipping locations ([PRO feature](https://www.flycart.org/products/wordpress/woocommerce-discount-rules))
98
  * Selected shipping locations ([PRO feature](https://www.flycart.org/products/wordpress/woocommerce-discount-rules))
99
 
 
 
 
 
 
 
 
 
 
100
  = Rules apply based on =
101
 
102
  * Products
205
 
206
  == Changelog ==
207
 
208
+ = 1.4.29 - 01/12/17 =
209
+ * Fix - Cart price strike out even discount not applied in some case
210
+
211
  = 1.4.28 - 24/11/17 =
212
  * Fix - Buy any 3 from category (cumulative) and get 1 free
213
  * Feature - Buy any 3 from any selected product and get 1 cheapest product from selected list (pro)
woo-discount-rules.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
- * Version: 1.4.28
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
+ * Version: 1.4.29
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1