Discount Rules for WooCommerce - Version 1.4.23

Version Description

  • 07/11/17 =
  • Fix Notices occur while having pricing rules based on categories due to woocommerce 3.x
  • Fix Removed percentage symbol for fixed pricing discount in pricing table
Download this release

Release Info

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

Code changes from version 1.4.22 to 1.4.23

includes/cart-rules-3.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
3
- include_once(WOO_DISCOUNT_DIR . '/helper/general-helper.php');
4
  include_once(WOO_DISCOUNT_DIR . '/includes/discount-base.php');
5
 
6
  /**
1
  <?php
2
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
3
+ include_once(WOO_DISCOUNT_DIR . '/helper/general-helper-3.php');
4
  include_once(WOO_DISCOUNT_DIR . '/includes/discount-base.php');
5
 
6
  /**
includes/pricing-rules-3.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
3
- include_once(WOO_DISCOUNT_DIR . '/helper/general-helper.php');
4
 
5
  /**
6
  * Class woo_dicount_rules_pricingRules
@@ -1099,7 +1099,7 @@ if (!class_exists('woo_dicount_rules_pricingRules')) {
1099
  } else if ($discount_type == 'percentage_discount') {
1100
  $html .= '<td>'.$to_discount . ' %'.'</td>';
1101
  } else {
1102
- $html .= '<td>'.wc_price($to_discount) . ' %'.'</td>';
1103
  }
1104
  $html .= '</tr>';
1105
  }
1
  <?php
2
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
3
+ include_once(WOO_DISCOUNT_DIR . '/helper/general-helper-3.php');
4
 
5
  /**
6
  * Class woo_dicount_rules_pricingRules
1099
  } else if ($discount_type == 'percentage_discount') {
1100
  $html .= '<td>'.$to_discount . ' %'.'</td>';
1101
  } else {
1102
+ $html .= '<td>'.wc_price($to_discount) .'</td>';
1103
  }
1104
  $html .= '</tr>';
1105
  }
includes/pricing-rules.php CHANGED
@@ -1095,7 +1095,7 @@ if (!class_exists('woo_dicount_rules_pricingRules')) {
1095
  } else if ($discount_type == 'percentage_discount') {
1096
  $html .= '<td>'.$to_discount . ' %'.'</td>';
1097
  } else {
1098
- $html .= '<td>'.wc_price($to_discount) . ' %'.'</td>';
1099
  }
1100
  $html .= '</tr>';
1101
  }
1095
  } else if ($discount_type == 'percentage_discount') {
1096
  $html .= '<td>'.$to_discount . ' %'.'</td>';
1097
  } else {
1098
+ $html .= '<td>'.wc_price($to_discount) .'</td>';
1099
  }
1100
  $html .= '</tr>';
1101
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.8.1
7
- Stable tag: 1.4.22
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -17,15 +17,15 @@ WooCommerce discount rules helps you to create any type of discount and pricing
17
 
18
  = Use cases =
19
 
20
- * Buy 5 items and get 10 % discount
21
- * Buy T-shirts from Winter Collections and save 10 %
22
  * Buy 2 products get 1 free of the same product
23
  * Buy 3 products get another product free
24
- * 20 % discount on all items in the store till December 25
25
- * Buy 10 mugs are more and get 5% off
26
- * All orders above $500 will get 15% discount
27
- * Add 5 items to your shopping bag and get 10% discount
28
- * Special offer for Customers from California. Get 25 % discount
29
 
30
  = Adjustment rules =
31
 
@@ -99,6 +99,60 @@ More information could be found in the documentation
99
 
100
  == Frequently asked questions ==
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  == Screenshots ==
103
 
104
  1. Woo Discount Rules menu
@@ -109,6 +163,10 @@ More information could be found in the documentation
109
 
110
  == Changelog ==
111
 
 
 
 
 
112
  = 1.4.22 - 25/10/17 =
113
  * Fix – Based on category in cart rules: Calculating subtotal while having multiple categories for same product
114
 
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.8.1
7
+ Stable tag: 1.4.23
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
17
 
18
  = Use cases =
19
 
20
+ * Buy 5 items and get 10 % discount - [Video](https://www.youtube.com/watch?v=84VL6Wwf1DI&t=15s)
21
+ * Buy T-shirts from Winter Collections and save 10 % - [Video](https://www.youtube.com/watch?v=OEWc7fL3qeM)
22
  * Buy 2 products get 1 free of the same product
23
  * Buy 3 products get another product free
24
+ * 20 % discount on all items in the store till December 25 - [Video](https://www.youtube.com/watch?v=pHst5Ncse8M)
25
+ * Buy 10 mugs are more and get 5% off - [Video](https://www.youtube.com/watch?v=7ZeRIKXWFmE)
26
+ * All orders above $500 will get 15% discount - [Video](https://www.youtube.com/watch?v=RSU0zuvx_Yg)
27
+ * Add 5 items to your shopping bag and get 10% discount - [Video](https://www.youtube.com/watch?v=H07va-vBGGk)
28
+ * Special offer for Customers from California. Get 25 % discount - [Video](https://www.youtube.com/watch?v=ZxdijPp2A7U)
29
 
30
  = Adjustment rules =
31
 
99
 
100
  == Frequently asked questions ==
101
 
102
+ = Are multiple discounts possible ? What is the limit for the number of rules ? =
103
+
104
+ Yes. It is possible to create multiple discount and you can setup any number of discount rules in your store.
105
+
106
+ = Will the discount be showed in the invoice ? =
107
+
108
+ Yes. The discount will be displayed separately in the invoice.
109
+
110
+ = Will the discount be applied to Product Variants ? =
111
+
112
+ Yes. The discount will be applied to Product Variants as well. If you have two variants for an Iphone such as 64GB and 128GB, the discount will be applicable for both the variants.
113
+
114
+ = Is it possible to apply discount based on User roles ? =
115
+
116
+ Yes. You can apply discount for different user levels. Eg: Premium customers get 20% discount while first time customers gets 10% discount.
117
+
118
+ = How to set Bulk Discount ? =
119
+
120
+ You can specify the Maximum and minimum quantity for the discount to be applied.
121
+ Eg:
122
+ * Quantity 1 - 5 = $10 Discount or 10% discount
123
+ * Quantity 5 - 10 = $15 Discount or 15% discount
124
+
125
+ = Can I set a global discount for all products ? =
126
+
127
+ Yes. You can set discount for all products at global level.
128
+
129
+ = Is it possible to provide Bogo deals ? =
130
+
131
+ Yes. You can provide buy 1 get 1 offers in your store.
132
+
133
+ = If I have one or more rules for the same product, which will be applied ? =
134
+
135
+ In that case, the rule with the higher priority will be applied.
136
+
137
+ = What happens after my license expires ? =
138
+
139
+ You can continue using WooDiscount rule plugin in your site. However you won’t be able to receive the Updates and priority support.
140
+
141
+ = What is your refund Policy? =
142
+
143
+ We do have a 30-days money back guarantee. If our plugin doesn’t meet your requirements, we can issue a full refund. No compromise in that.
144
+
145
+ = Can I set discount based on Billing Country and City ? =
146
+
147
+ Yes. It is possible to set discount rule based on the Customer city. Eg:Customers from Texas gets 15% discount. The discount will be applied at the cart level.
148
+
149
+ = How to setup BOGO (Buy ONE get ONE) deals ? =
150
+
151
+ Under WooDiscount Rules,
152
+ General - Price Discount Rule -> Add new rule -> Enter Priority, Rule Name -> Next
153
+ Condition - Apply to -> Select the Product -> Select Customers -> Next
154
+ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discount -> Value (Free products to be added) -> Save Rule
155
+
156
  == Screenshots ==
157
 
158
  1. Woo Discount Rules menu
163
 
164
  == Changelog ==
165
 
166
+ = 1.4.23 - 07/11/17 =
167
+ * Fix – Notices occur while having pricing rules based on categories due to woocommerce 3.x
168
+ * Fix – Removed percentage symbol for fixed pricing discount in pricing table
169
+
170
  = 1.4.22 - 25/10/17 =
171
  * Fix – Based on category in cart rules: Calculating subtotal while having multiple categories for same product
172
 
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.22
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.23
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Requires at least: 4.6.1