Discount Rules for WooCommerce - Version 1.6.14

Version Description

  • 18/09/18 =
  • Fix - PHP 5.3 compatible fatal error while activate
  • Fix - Conflict with js because of loading wc-enhanced-select in footer
  • Fix - Error for variable product while choose cumulative category
  • Improvement - Woocommerce currency switcher compatible
  • Improvement - Function to get the discounts for the product
  • Improvement - Events do_action('woo_discount_rules_after_fetching_discount', $this);, apply_filters('woo_discount_rules_cart_rule_sets_to_apply', $rule_sets); to find matching cart based rules
Download this release

Release Info

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

Code changes from version 1.6.12 to 1.6.14

assets/css/style.css CHANGED
@@ -146,4 +146,12 @@
146
  }
147
  .wdr_read_doc{
148
  font-size: 12px;
 
 
 
 
 
 
 
 
149
  }
146
  }
147
  .wdr_read_doc{
148
  font-size: 12px;
149
+ }
150
+ .wdr_read_documentation_con{
151
+ border-bottom: 1px solid #eee;
152
+ margin-bottom: 10px;
153
+ }
154
+ .wdr_read_documentation_con p{
155
+ color: #aaa;
156
+ font-size: medium;
157
  }
helper/general-helper.php CHANGED
@@ -186,8 +186,8 @@ if ( ! class_exists( 'FlycartWooDiscountRulesGeneralHelper' ) ) {
186
  public function getCategoryList()
187
  {
188
  $result = array();
189
-
190
- $post_categories_raw = get_terms(array('product_cat'), array('hide_empty' => 0));
191
  $post_categories_raw_count = count($post_categories_raw);
192
 
193
  foreach ($post_categories_raw as $post_cat_key => $post_cat) {
@@ -249,18 +249,8 @@ if ( ! class_exists( 'FlycartWooDiscountRulesGeneralHelper' ) ) {
249
  }
250
  $product = FlycartWoocommerceProduct::wc_get_product($id);
251
  $categories = FlycartWoocommerceProduct::get_category_ids($product);
252
- return $categories;
253
-
254
- /*$id = intval($id);
255
- if (!$id) return false;
256
 
257
- $categories = array();
258
- $current_categories = wp_get_post_terms($id, 'product_cat');
259
- foreach ($current_categories as $category) {
260
- $categories[] = $category->term_id;
261
- }
262
-
263
- return $categories;*/
264
  }
265
 
266
  /**
@@ -509,17 +499,47 @@ if ( ! class_exists( 'FlycartWooDiscountRulesGeneralHelper' ) ) {
509
  * Get all sub categories
510
  * */
511
  public static function getAllSubCategories($cat){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
  $category_with_sub_cat = $cat;
513
  foreach($cat as $c) {
514
  $args = array('hierarchical' => 1,
515
  'show_option_none' => '',
516
  'hide_empty' => 0,
517
  'parent' => $c,
518
- 'taxonomy' => 'product_cat');
519
  $categories = get_categories( $args );
520
  foreach($categories as $category) {
521
  //$category_with_sub_cat[] = $category->term_id;
522
- $category_with_sub_cat = array_merge($category_with_sub_cat, self::getAllSubCategories(array($category->term_id)));
523
  }
524
  }
525
  $category_with_sub_cat = array_unique($category_with_sub_cat);
@@ -558,5 +578,63 @@ if ( ! class_exists( 'FlycartWooDiscountRulesGeneralHelper' ) ) {
558
 
559
  return $html;
560
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
561
  }
562
  }
186
  public function getCategoryList()
187
  {
188
  $result = array();
189
+ $taxonomies = apply_filters('woo_discount_rules_accepted_taxonomy_for_category', array('product_cat'));
190
+ $post_categories_raw = get_terms($taxonomies, array('hide_empty' => 0));
191
  $post_categories_raw_count = count($post_categories_raw);
192
 
193
  foreach ($post_categories_raw as $post_cat_key => $post_cat) {
249
  }
250
  $product = FlycartWoocommerceProduct::wc_get_product($id);
251
  $categories = FlycartWoocommerceProduct::get_category_ids($product);
 
 
 
 
252
 
253
+ return $categories;
 
 
 
 
 
 
254
  }
255
 
256
  /**
499
  * Get all sub categories
500
  * */
501
  public static function getAllSubCategories($cat){
502
+ $taxonomies = apply_filters('woo_discount_rules_accepted_taxonomy_for_category', array('product_cat'));
503
+ $category_with_sub_cat = $cat;
504
+ foreach ($taxonomies as $taxonomy){
505
+ $category_with_sub = self::getAllSubCategoriesRecursive($cat, $taxonomy);
506
+ $category_with_sub_cat = array_merge($category_with_sub_cat, $category_with_sub);
507
+ }
508
+
509
+ return $category_with_sub_cat;
510
+ // $category_with_sub_cat = $cat;
511
+ // foreach($cat as $c) {
512
+ // $args = array('hierarchical' => 1,
513
+ // 'show_option_none' => '',
514
+ // 'hide_empty' => 0,
515
+ // 'parent' => $c,
516
+ // 'taxonomy' => 'product_cat');
517
+ // $categories = get_categories( $args );
518
+ // foreach($categories as $category) {
519
+ // //$category_with_sub_cat[] = $category->term_id;
520
+ // $category_with_sub_cat = array_merge($category_with_sub_cat, self::getAllSubCategories(array($category->term_id)));
521
+ // }
522
+ // }
523
+ // $category_with_sub_cat = array_unique($category_with_sub_cat);
524
+ //
525
+ // return $category_with_sub_cat;
526
+ }
527
+
528
+ /**
529
+ * Get all sub categories
530
+ * */
531
+ protected static function getAllSubCategoriesRecursive($cat, $taxonomy = 'product_cat'){
532
  $category_with_sub_cat = $cat;
533
  foreach($cat as $c) {
534
  $args = array('hierarchical' => 1,
535
  'show_option_none' => '',
536
  'hide_empty' => 0,
537
  'parent' => $c,
538
+ 'taxonomy' => $taxonomy);
539
  $categories = get_categories( $args );
540
  foreach($categories as $category) {
541
  //$category_with_sub_cat[] = $category->term_id;
542
+ $category_with_sub_cat = array_merge($category_with_sub_cat, self::getAllSubCategoriesRecursive(array($category->term_id), $taxonomy));
543
  }
544
  }
545
  $category_with_sub_cat = array_unique($category_with_sub_cat);
578
 
579
  return $html;
580
  }
581
+
582
+ /**
583
+ * Docs HTML
584
+ * @param string $url
585
+ * @param string $utm_term
586
+ * @return string
587
+ * */
588
+ public static function docsURLHTMLForDocumentation($url, $utm_term, $text, $description_text = '', $additional_class = ''){
589
+ if(!empty($additional_class)){
590
+ $additional_class = 'wdr_read_documentation '.$additional_class;
591
+ } else {
592
+ $additional_class = 'wdr_read_documentation';
593
+ }
594
+ $html = '<div class="wdr_read_documentation_con">';
595
+ $html .= '<a class="'.$additional_class.'" href="'.self::docsURL($url, $utm_term).'" target="_blank">'.$text.'</a>';
596
+ if(!empty($description_text))
597
+ $html .= '<p class="">'.$description_text.'</p>';
598
+ $html .= '</div>';
599
+
600
+ return $html;
601
+ }
602
+
603
+ /**
604
+ * Remove Coupon price in cart
605
+ * @param array $coupons
606
+ * */
607
+ public static function removeCouponPriceInCart($coupons = array()){
608
+ $config = new FlycartWooDiscountBase();
609
+ $remove_zero_coupon_price = $config->getConfigData('remove_zero_coupon_price', 0);
610
+ if($remove_zero_coupon_price){
611
+ $has_coupon = false;
612
+ $styles = '';
613
+ foreach ($coupons as $coupon){
614
+ $wc = WC();
615
+ if(!empty($wc) && !empty($wc->cart)){
616
+ if(method_exists($wc->cart, 'has_discount')){
617
+ if($wc->cart->has_discount($coupon)){
618
+ $coupon_amount = $wc->cart->get_coupon_discount_amount($coupon);
619
+ if($coupon_amount == 0){
620
+ $has_coupon = true;
621
+ $style = '.coupon-'.strtolower($coupon).' .amount{display: none}.coupon-'.strtolower($coupon).' td::first-letter{font-size: 0}';
622
+ $styles .= apply_filters('woo_discount_rules_apply_style_for_zero_price_coupon', $style, $coupon);
623
+ }
624
+ }
625
+ }
626
+ }
627
+ }
628
+ if($has_coupon){
629
+ if(!empty($styles)){
630
+ $is_ajax = is_ajax();
631
+ $wc_ajax = $_REQUEST['wc-ajax'];
632
+ if(!$is_ajax || in_array($wc_ajax, array('apply_coupon'))){
633
+ echo "<style>".$styles."</style>";
634
+ }
635
+ }
636
+ }
637
+ }
638
+ }
639
  }
640
  }
helper/woo-function.php CHANGED
@@ -308,6 +308,7 @@ if(!class_exists('FlycartWoocommerceProduct')){
308
  $cat_id = array();
309
  if(FlycartWoocommerceVersion::wcVersion('3.0') || method_exists($product, 'get_category_ids')){
310
  $cat_id = $product->get_category_ids();
 
311
  } else {
312
  $terms = get_the_terms ( self::get_id($product), 'product_cat' );
313
  if(!empty($terms))
@@ -326,8 +327,17 @@ if(!class_exists('FlycartWoocommerceProduct')){
326
  * @return string
327
  */
328
  public static function get_product_category_by_id( $category_id ) {
329
- $term = get_term_by( 'id', $category_id, 'product_cat', 'ARRAY_A' );
330
- return $term['name'];
 
 
 
 
 
 
 
 
 
331
  }
332
 
333
  /*
308
  $cat_id = array();
309
  if(FlycartWoocommerceVersion::wcVersion('3.0') || method_exists($product, 'get_category_ids')){
310
  $cat_id = $product->get_category_ids();
311
+ $cat_id = apply_filters('woo_discount_rules_load_additional_taxonomy', $cat_id, self::get_id($product));
312
  } else {
313
  $terms = get_the_terms ( self::get_id($product), 'product_cat' );
314
  if(!empty($terms))
327
  * @return string
328
  */
329
  public static function get_product_category_by_id( $category_id ) {
330
+ $term_name = '';
331
+ $taxonomies = apply_filters('woo_discount_rules_accepted_taxonomy_for_category', array('product_cat'));
332
+ foreach ($taxonomies as $taxonomy){
333
+ $term = get_term_by( 'id', $category_id, $taxonomy, 'ARRAY_A' );
334
+ if(!empty($term['name'])){
335
+ $term_name = $term['name'];
336
+ break;
337
+ }
338
+ }
339
+
340
+ return $term_name;
341
  }
342
 
343
  /*
i18n/languages/woo-discount-rules.pot CHANGED
@@ -11,1262 +11,1355 @@ msgstr ""
11
  "Language: en\n"
12
  "X-Generator: Poedit 1.8.7.1\n"
13
 
14
- #. Text in echo
15
- #: woo-discount-rules/view/view-pricing-rules.php:541
16
- msgid " Product(s) "
17
  msgstr ""
18
 
19
- #. Text in echo
20
- #: woo-discount-rules/view/view-pricing-rules.php:710
21
- msgid "100% percent"
22
  msgstr ""
23
 
24
- #. Text in echo
25
- #: woo-discount-rules/view/cart-rules.php:179
26
- #: woo-discount-rules/view/pricing-rules.php:207
27
- #: woo-discount-rules/view/view-cart-rules.php:533
28
- msgid "Action"
29
  msgstr ""
30
 
31
- #. Text in echo
32
- #: woo-discount-rules/view/view-cart-rules.php:135
33
- msgid "Add Condition"
34
  msgstr ""
35
 
36
- #. Text in echo
37
- #: woo-discount-rules/view/view-pricing-rules.php:572
38
- msgid "Add New Range"
39
  msgstr ""
40
 
41
- #. Text in echo
42
- #: woo-discount-rules/view/cart-rules.php:67
43
- #: woo-discount-rules/view/pricing-rules.php:98
44
- msgid "Add New Rule"
45
  msgstr ""
46
 
47
- #. Text in echo
48
- #: woo-discount-rules/view/view-pricing-rules.php:605
49
- msgid "Adjustment Type"
50
  msgstr ""
51
 
52
- #. Text in echo
53
- #: woo-discount-rules/view/view-pricing-rules.php:272
54
- #: woo-discount-rules/view/view-pricing-rules.php:534
55
- msgid "All"
56
  msgstr ""
57
 
58
- #. Text in echo
59
- #: woo-discount-rules/view/view-pricing-rules.php:153
60
- msgid "All products"
61
  msgstr ""
62
 
63
- #. Text in echo
64
- #: woo-discount-rules/view/view-cart-rules.php:371
65
- #: woo-discount-rules/view/view-cart-rules.php:373
66
- #: woo-discount-rules/view/view-pricing-rules.php:648
67
- msgid "All selected"
68
  msgstr ""
69
 
70
- #. Text in function
71
- #: woo-discount-rules/view/includes/header.php:13
72
- msgid "An another discount plugin %s is active. Please disable this plugin, Woo Discount Rules might get conflict."
73
  msgstr ""
74
 
75
- #. Text in echo
76
- #: woo-discount-rules/view/view-pricing-rules.php:505
77
- msgid "Any"
78
  msgstr ""
79
 
80
- #. Text in echo
81
- #: woo-discount-rules/view/view-pricing-rules.php:651
82
- msgid "Any one cheapest from all products"
83
  msgstr ""
84
 
85
- #. Text in echo
86
- #: woo-discount-rules/view/view-pricing-rules.php:650
87
- msgid "Any one cheapest from selected"
88
  msgstr ""
89
 
90
- #. Text in echo
91
- #: woo-discount-rules/view/cart-rules.php:85
92
- #: woo-discount-rules/view/pricing-rules.php:113
93
- msgid "Apply"
94
  msgstr ""
95
 
96
- #. Text in echo
97
- #: woo-discount-rules/view/view-pricing-rules.php:147
98
- msgid "Apply To"
99
  msgstr ""
100
 
101
- #. Text in echo
102
- #: woo-discount-rules/view/settings.php:247
103
- #: woo-discount-rules/view/settings.php:249
104
- msgid "Apply all matched rules"
105
  msgstr ""
106
 
107
- #. Text in echo
108
- #: woo-discount-rules/view/settings.php:256
109
- #: woo-discount-rules/view/settings.php:258
110
- msgid "Apply biggest discount"
111
  msgstr ""
112
 
113
- #. Text in echo
114
- #: woo-discount-rules/view/view-pricing-rules.php:528
115
- msgid "Apply discount in category(ies)"
116
  msgstr ""
117
 
118
- #. Text in echo
119
- #: woo-discount-rules/view/view-pricing-rules.php:527
120
- msgid "Apply discount in product(s)"
121
  msgstr ""
122
 
123
- #. Text in echo
124
- #: woo-discount-rules/view/settings.php:104
125
- #: woo-discount-rules/view/settings.php:241
126
- msgid "Apply first matched rule"
127
  msgstr ""
128
 
129
- #. Text in echo
130
- #: woo-discount-rules/view/view-pricing-rules.php:646
131
- msgid "Apply for"
132
  msgstr ""
133
 
134
- #. Text in echo
135
- #: woo-discount-rules/view/view-pricing-rules.php:332
136
- msgid "Apply if all coupon applied"
137
  msgstr ""
138
 
139
- #. Text in echo
140
- #: woo-discount-rules/view/view-pricing-rules.php:331
141
- msgid "Apply if any one coupon applied"
142
  msgstr ""
143
 
144
- #. Text in echo
145
- #: woo-discount-rules/view/view-cart-rules.php:361
146
- #: woo-discount-rules/view/view-cart-rules.php:363
147
- msgid "Atleast any one"
148
  msgstr ""
149
 
150
- #. Text in echo
151
- #: woo-discount-rules/view/view-cart-rules.php:285
152
- #: woo-discount-rules/view/view-cart-rules.php:287
153
- msgid "Billing city"
154
  msgstr ""
155
 
156
- #. Text in echo
157
- #: woo-discount-rules/view/cart-rules.php:80
158
- #: woo-discount-rules/view/pricing-rules.php:108
159
- msgid "Bulk Actions"
160
  msgstr ""
161
 
162
- #. Text in echo
163
- #: woo-discount-rules/view/view-pricing-rules.php:503
164
- msgid "Buy"
165
  msgstr ""
166
 
167
- #. Text in echo
168
- #: woo-discount-rules/view/view-cart-rules.php:54
169
- #: woo-discount-rules/view/view-pricing-rules.php:38
170
- msgid "Cancel and go back to list"
171
  msgstr ""
172
 
173
- #. Text in echo
174
- #: woo-discount-rules/view/view-cart-rules.php:132
175
- msgid "Cart Conditions"
176
  msgstr ""
177
 
178
- #. Text in echo
179
- #: woo-discount-rules/view/includes/menu.php:10
180
- msgid "Cart Discount Rules"
181
  msgstr ""
182
 
183
- #. Text in echo
184
- #: woo-discount-rules/view/view-cart-rules.php:170
185
- msgid "Cart Item Count"
186
  msgstr ""
187
 
188
- #. Text in echo
189
- #: woo-discount-rules/view/cart-rules.php:47
190
- msgid "Cart Rules"
191
  msgstr ""
192
 
193
- #. Text in echo
194
- #: woo-discount-rules/view/view-cart-rules.php:160
195
- msgid "Cart Subtotal"
196
  msgstr ""
197
 
198
- #. Text in echo
199
- #: woo-discount-rules/view/settings.php:215
200
- msgid "Cart rules settings"
201
  msgstr ""
202
 
203
- #. Text in echo
204
- #: woo-discount-rules/view/view-cart-rules.php:205
205
- msgid "Categories In Cart"
206
  msgstr ""
207
 
208
- #. Text in echo
209
- #: woo-discount-rules/view/view-cart-rules.php:210
210
- msgid "Categories in cart"
211
  msgstr ""
212
 
213
- #. Text in echo
214
- #: woo-discount-rules/view/view-pricing-rules.php:545
215
- msgid "Category(ies)"
216
  msgstr ""
217
 
218
- #. Text in echo
219
- #: woo-discount-rules/view/view-pricing-rules.php:248
220
- msgid "Check this box if the rule should not apply to items on sale."
221
  msgstr ""
222
 
223
- #. Text in echo
224
- #: woo-discount-rules/view/view-pricing-rules.php:200
225
- msgid "Check this box to apply child category(ies)"
226
  msgstr ""
227
 
228
- #. Text in echo
229
- #: woo-discount-rules/view/view-pricing-rules.php:214
230
- msgid "Check this box to count quantities cumulatively across attribute"
231
  msgstr ""
232
 
233
- #. Text in echo
234
- #: woo-discount-rules/view/view-pricing-rules.php:197
235
- msgid "Check this box to count quantities cumulatively across category(ies)"
 
 
236
  msgstr ""
237
 
238
- #. Text in echo
239
- #: woo-discount-rules/view/view-pricing-rules.php:185
240
- msgid "Check this box to count quantities cumulatively across products"
241
  msgstr ""
242
 
243
- #. Text in echo
244
- #: woo-discount-rules/view/view-pricing-rules.php:507
245
- msgid "Combine"
246
  msgstr ""
247
 
248
- #. Text in echo
249
- #: woo-discount-rules/view/includes/sub-menu.php:11
250
- msgid "Condition"
251
  msgstr ""
252
 
253
- #. Text in echo
254
- #: woo-discount-rules/view/includes/cart-menu.php:11
255
- msgid "Conditions"
256
  msgstr ""
257
 
258
- #. Text in echo
259
- #: woo-discount-rules/view/view-pricing-rules.php:322
260
- msgid "Coupon"
261
  msgstr ""
262
 
263
- #. Text in echo
264
- #: woo-discount-rules/view/settings.php:222
265
- msgid "Coupon Name to be displayed :"
 
266
  msgstr ""
267
 
268
- #. Text in echo
269
- #: woo-discount-rules/view/view-cart-rules.php:355
270
- msgid "Coupon applied"
271
  msgstr ""
272
 
273
- #. Text in echo
274
- #: woo-discount-rules/view/view-cart-rules.php:279
275
- msgid "Customer Billing Details"
276
  msgstr ""
277
 
278
- #. Text in echo
279
- #: woo-discount-rules/view/view-cart-rules.php:225
280
- msgid "Customer Details (must be logged in)"
281
  msgstr ""
282
 
283
- #. Text in echo
284
- #: woo-discount-rules/view/view-cart-rules.php:257
285
- msgid "Customer Email"
286
  msgstr ""
287
 
288
- #. Text in echo
289
- #: woo-discount-rules/view/view-cart-rules.php:291
290
- msgid "Customer Shipping Details"
291
  msgstr ""
292
 
293
- #. Text in echo
294
- #: woo-discount-rules/view/view-pricing-rules.php:267
295
- msgid "Customers"
296
  msgstr ""
297
 
298
- #. Text in echo
299
- #: woo-discount-rules/view/cart-rules.php:153
300
- #: woo-discount-rules/view/pricing-rules.php:181
301
- msgid "Delete"
302
  msgstr ""
303
 
304
- #. Text in echo
305
- #: woo-discount-rules/view/cart-rules.php:83
306
- #: woo-discount-rules/view/pricing-rules.php:111
307
- msgid "Delete rules"
308
  msgstr ""
309
 
310
- #. Text in echo
311
- #: woo-discount-rules/view/view-pricing-rules.php:105
312
- #: woo-discount-rules/view/view-pricing-rules.php:107
313
- msgid "Dependant product based discount"
314
  msgstr ""
315
 
316
- #. Text in function
317
- #: woo-discount-rules/view/cart-rules.php:113
318
- #: woo-discount-rules/view/pricing-rules.php:141
319
- msgid "Disable"
320
  msgstr ""
321
 
322
- #. Text in echo
323
- #: woo-discount-rules/view/cart-rules.php:82
324
- #: woo-discount-rules/view/pricing-rules.php:110
325
- msgid "Disable rules"
326
  msgstr ""
327
 
328
- #. Text in echo
329
- #: woo-discount-rules/view/view-cart-rules.php:525
330
- #: woo-discount-rules/view/view-pricing-rules.php:352
331
- msgid "Disable the rules while have coupon(Third party)"
332
  msgstr ""
333
 
334
- #. Text in echo
335
- #: woo-discount-rules/view/settings.php:267
336
- msgid "Disable the rules while have coupon(Third party) in cart"
337
  msgstr ""
338
 
339
- #. Text in echo
340
- #: woo-discount-rules/view/settings.php:289
341
- #: woo-discount-rules/view/settings.php:296
342
- msgid "Disabled"
343
  msgstr ""
344
 
345
- #. Text in echo
346
- #: woo-discount-rules/view/includes/cart-menu.php:13
347
- #: woo-discount-rules/view/includes/sub-menu.php:13
348
- #: woo-discount-rules/view/template/discount-table.php:22
349
- #: woo-discount-rules/view/view-cart-rules.php:550
350
- #: woo-discount-rules/view/view-pricing-rules.php:569
351
- msgid "Discount"
352
  msgstr ""
353
 
354
- #. Text in echo
355
- #: woo-discount-rules/view/view-pricing-rules.php:142
356
- msgid "Discount Conditions"
 
357
  msgstr ""
358
 
359
- #. Text in echo
360
- #: woo-discount-rules/view/settings.php:228
361
- msgid "Discount Coupon Name"
362
  msgstr ""
363
 
364
- #. Text in echo
365
- #: woo-discount-rules/view/settings.php:169
366
- msgid "Discount Table :"
367
  msgstr ""
368
 
369
- #. Text in echo
370
- #: woo-discount-rules/view/view-cart-rules.php:566
371
- msgid "Discount Type :"
372
  msgstr ""
373
 
374
- #. Text in echo
375
- #: woo-discount-rules/view/view-pricing-rules.php:674
376
- msgid "Discount for number of item(s) in cart"
377
  msgstr ""
378
 
379
- #. Text in echo
380
- #: woo-discount-rules/view/view-pricing-rules.php:681
381
- msgid "Discount for number of quantity(ies) in each item"
382
  msgstr ""
383
 
384
- #. Text in echo
385
- #: woo-discount-rules/view/view-pricing-rules.php:300
386
- #: woo-discount-rules/view/view-pricing-rules.php:330
387
- #: woo-discount-rules/view/view-pricing-rules.php:385
388
- #: woo-discount-rules/view/view-pricing-rules.php:428
389
- msgid "Do not use"
390
  msgstr ""
391
 
392
- #. Text in function
393
- #: woo-discount-rules/view/view-pricing-rules.php:556
394
- msgid "Document for product dependent rules"
395
  msgstr ""
396
 
397
- #. Text in function
398
- #: woo-discount-rules/view/view-pricing-rules.php:731
399
- msgid "Document to create perfect BOGO rules"
400
  msgstr ""
401
 
402
- #. Text in echo
403
- #: woo-discount-rules/view/cart-rules.php:52
404
- #: woo-discount-rules/view/pricing-rules.php:84
405
- msgid "Documentation"
406
  msgstr ""
407
 
408
- #. Text in echo
409
- #: woo-discount-rules/view/settings.php:196
410
- msgid "Don't Show"
411
  msgstr ""
412
 
413
- #. Text in echo
414
- #: woo-discount-rules/view/settings.php:330
415
- msgid "Draft"
416
  msgstr ""
417
 
418
- #. Text in echo
419
- #: woo-discount-rules/view/cart-rules.php:146
420
- #: woo-discount-rules/view/pricing-rules.php:174
421
- msgid "Duplicate"
422
  msgstr ""
423
 
424
- #. Text in echo
425
- #: woo-discount-rules/view/view-pricing-rules.php:671
426
- msgid "Dynamic item count"
427
  msgstr ""
428
 
429
- #. Text in echo
430
- #: woo-discount-rules/view/view-pricing-rules.php:506
431
- msgid "Each"
432
  msgstr ""
433
 
434
- #. Text in echo
435
- #: woo-discount-rules/view/cart-rules.php:142
436
- #: woo-discount-rules/view/pricing-rules.php:170
437
- msgid "Edit"
438
  msgstr ""
439
 
440
- #. Text in echo
441
- #: woo-discount-rules/view/view-cart-rules.php:60
442
- msgid "Edit Cart Rule"
443
  msgstr ""
444
 
445
- #. Text in echo
446
- #: woo-discount-rules/view/view-pricing-rules.php:44
447
- msgid "Edit Price Rule"
448
  msgstr ""
449
 
450
- #. Text in echo
451
- #: woo-discount-rules/view/view-cart-rules.php:273
452
- #: woo-discount-rules/view/view-cart-rules.php:275
453
- msgid "Email with Domain (Eg: gmail.com)"
454
  msgstr ""
455
 
456
- #. Text in echo
457
- #: woo-discount-rules/view/view-cart-rules.php:263
458
- #: woo-discount-rules/view/view-cart-rules.php:265
459
- msgid "Email with TLD (Eg: edu)"
460
  msgstr ""
461
 
462
- #. Text in function
463
- #: woo-discount-rules/view/cart-rules.php:113
464
- #: woo-discount-rules/view/pricing-rules.php:141
465
- msgid "Enable"
466
  msgstr ""
467
 
468
- #. Text in echo
469
- #: woo-discount-rules/view/settings.php:67
470
- msgid "Enable Bootstrap"
471
  msgstr ""
472
 
473
- #. Text in echo
474
- #: woo-discount-rules/view/settings.php:279
475
- msgid "Enable free shipping option"
476
  msgstr ""
477
 
478
- #. Text in echo
479
- #: woo-discount-rules/view/cart-rules.php:81
480
- #: woo-discount-rules/view/pricing-rules.php:109
481
- msgid "Enable rules"
482
  msgstr ""
483
 
484
- #. Text in echo
485
- #: woo-discount-rules/view/view-pricing-rules.php:452
486
- msgid "Enter the amount"
487
  msgstr ""
488
 
489
- #. Text in echo
490
- #: woo-discount-rules/view/view-pricing-rules.php:452
491
- msgid "Enter the coupon code separated by comma(,)"
492
  msgstr ""
493
 
494
- #. Text in echo
495
- #: woo-discount-rules/view/view-pricing-rules.php:512
496
- msgid "Equal"
497
  msgstr ""
498
 
499
- #. Text in echo
500
- #: woo-discount-rules/view/settings.php:340
501
- msgid "Exclude Draft products in product select box."
502
  msgstr ""
503
 
504
- #. Text in echo
505
- #: woo-discount-rules/view/view-pricing-rules.php:224
506
- msgid "Exclude products"
507
  msgstr ""
508
 
509
- #. Text in echo
510
- #: woo-discount-rules/view/view-pricing-rules.php:243
511
- msgid "Exclude sale items"
512
  msgstr ""
513
 
514
- #. Text in echo
515
- #: woo-discount-rules/view/cart-rules.php:171
516
- #: woo-discount-rules/view/pricing-rules.php:199
517
- msgid "Expired On"
518
  msgstr ""
519
 
520
- #. Text in echo
521
- #: woo-discount-rules/view/view-pricing-rules.php:535
522
- msgid "First quantity(s)"
523
  msgstr ""
524
 
525
- #. Text in echo
526
- #: woo-discount-rules/view/view-pricing-rules.php:742
527
- msgid "Fixed"
528
  msgstr ""
529
 
530
- #. Text in echo
531
- #: woo-discount-rules/view/view-pricing-rules.php:670
532
- msgid "Fixed item count"
533
  msgstr ""
534
 
535
- #. Text in echo
536
- #: woo-discount-rules/view/view-pricing-rules.php:673
537
- msgid "Fixed item count - You need to provide item count manually. Dynamic item count - System will choose dynamically based on cart"
538
  msgstr ""
539
 
540
- #. Text in echo
541
- #: woo-discount-rules/view/settings.php:79
542
- msgid "Force refresh the cart widget while add and remove item to cart"
543
  msgstr ""
544
 
545
- #. Text in function
546
- #: woo-discount-rules/view/settings.php:320
547
- msgid "Free Shipping"
548
  msgstr ""
549
 
550
- #. Text in echo
551
- #: woo-discount-rules/view/settings.php:323
552
- msgid "Free Shipping title"
553
  msgstr ""
554
 
555
- #. Text in echo
556
- #: woo-discount-rules/view/view-pricing-rules.php:657
557
- msgid "Free quantity"
558
  msgstr ""
559
 
560
- #. Text in echo
561
- #: woo-discount-rules/view/view-cart-rules.php:585
562
- #: woo-discount-rules/view/view-cart-rules.php:587
563
- msgid "Free shipping"
564
  msgstr ""
565
 
566
- #. Text in echo
567
- #: woo-discount-rules/view/settings.php:316
568
- msgid "Free shipping text to be displayed"
569
  msgstr ""
570
 
571
- #. Text in echo
572
- #: woo-discount-rules/view/view-cart-rules.php:119
573
- #: woo-discount-rules/view/view-pricing-rules.php:129
574
- #: woo-discount-rules/view/view-pricing-rules.php:513
575
- msgid "From"
576
  msgstr ""
577
 
578
- #. Text in echo
579
- #: woo-discount-rules/view/includes/cart-menu.php:9
580
- #: woo-discount-rules/view/includes/sub-menu.php:9
581
- #: woo-discount-rules/view/view-cart-rules.php:63
582
- #: woo-discount-rules/view/view-pricing-rules.php:47
583
- msgid "General"
584
  msgstr ""
585
 
586
- #. Text in echo
587
- #: woo-discount-rules/view/settings.php:26
588
- msgid "General Settings"
589
  msgstr ""
590
 
591
- #. Text in echo
592
- #: woo-discount-rules/view/view-cart-rules.php:491
593
- #: woo-discount-rules/view/view-pricing-rules.php:466
594
- msgid "Greater than or equal to"
595
  msgstr ""
596
 
597
- #. Text in function
598
- #: woo-discount-rules/helper/general-helper.php:1
599
- msgid "Guest"
600
  msgstr ""
601
 
602
- #. Text in echo
603
- #: woo-discount-rules/view/includes/footer.php:7
604
- msgid "Having trouble in setting up the discount? Let us set up the rules for you (for free)!"
605
  msgstr ""
606
 
607
- #. Text in echo
608
- #: woo-discount-rules/view/template/sidebar.php:12
609
- msgid "Hide"
 
 
 
 
 
610
  msgstr ""
611
 
612
- #. Text in echo
613
- #: woo-discount-rules/view/view-cart-rules.php:494
614
- #: woo-discount-rules/view/view-pricing-rules.php:470
615
  msgid "In Order status"
616
  msgstr ""
617
 
618
- #. Text in echo
619
- #: woo-discount-rules/view/view-cart-rules.php:222
620
- msgid "In each category"
 
621
  msgstr ""
622
 
623
- #. Text in echo
624
- #: woo-discount-rules/view/view-cart-rules.php:216
625
- msgid "Including sub-categories in cart"
626
  msgstr ""
627
 
628
- #. Text in echo
629
- #: woo-discount-rules/view/settings.php:162
630
- msgid "It displays only if any rule matches"
631
  msgstr ""
632
 
633
- #. Text in echo
634
- #: woo-discount-rules/view/view-pricing-rules.php:674
635
- msgid "Item count"
 
 
 
636
  msgstr ""
637
 
638
- #. Text in echo
639
- #: woo-discount-rules/view/view-pricing-rules.php:681
640
- msgid "Item quantity"
641
  msgstr ""
642
 
643
- #. Text in echo
644
- #: woo-discount-rules/view/view-pricing-rules.php:511
645
- msgid "Less than"
 
646
  msgstr ""
647
 
648
- #. Text in echo
649
- #: woo-discount-rules/view/view-cart-rules.php:492
650
- #: woo-discount-rules/view/view-pricing-rules.php:467
651
- msgid "Less than or equal to"
652
  msgstr ""
653
 
654
- #. Text in echo
655
- #: woo-discount-rules/view/settings.php:33
656
- msgid "License Key :"
657
  msgstr ""
658
 
659
- #. Text in echo
660
- #: woo-discount-rules/view/settings.php:51
661
- msgid "License key seems to be Invalid. Please enter a valid license key"
662
  msgstr ""
663
 
664
- #. Text in echo
665
- #: woo-discount-rules/view/view-pricing-rules.php:711
666
- msgid "Limited percent"
667
  msgstr ""
668
 
669
- #. Text in echo
670
- #: woo-discount-rules/view/template/sidebar.php:7
671
- msgid "Looking for more features? Upgrade to PRO"
672
  msgstr ""
673
 
674
- #. Text in echo
675
- #: woo-discount-rules/view/view-pricing-rules.php:452
676
- msgid "Make sure you have created the coupon already"
677
  msgstr ""
678
 
679
- #. Text in echo
680
- #: woo-discount-rules/view/view-pricing-rules.php:599
681
- msgid "Max Quantity"
682
  msgstr ""
683
 
684
- #. Text in echo
685
- #: woo-discount-rules/view/view-pricing-rules.php:90
686
- msgid "Method"
687
  msgstr ""
688
 
689
- #. Text in echo
690
- #: woo-discount-rules/view/view-pricing-rules.php:92
691
- msgid "Method to Apply."
692
  msgstr ""
693
 
694
- #. Text in echo
695
- #: woo-discount-rules/view/view-pricing-rules.php:592
696
- msgid "Min Quantity"
697
  msgstr ""
698
 
699
- #. Text in echo
700
- #: woo-discount-rules/view/view-pricing-rules.php:510
701
- msgid "More than"
702
  msgstr ""
703
 
704
- #. Text in echo
705
- #: woo-discount-rules/view/view-pricing-rules.php:654
706
- msgid "More than one cheapest from all"
707
  msgstr ""
708
 
709
- #. Text in echo
710
- #: woo-discount-rules/view/view-pricing-rules.php:653
711
- msgid "More than one cheapest from selected"
712
  msgstr ""
713
 
714
- #. Text in echo
715
- #: woo-discount-rules/view/view-pricing-rules.php:652
716
- msgid "More than one cheapest from selected category"
717
  msgstr ""
718
 
719
- #. Text in echo
720
- #: woo-discount-rules/view/cart-rules.php:169
721
- #: woo-discount-rules/view/pricing-rules.php:197
722
- #: woo-discount-rules/view/template/discount-table.php:18
723
- msgid "Name"
724
  msgstr ""
725
 
726
- #. Text in echo
727
- #: woo-discount-rules/view/view-cart-rules.php:58
728
- msgid "New Cart Rule"
729
  msgstr ""
730
 
731
- #. Text in echo
732
- #: woo-discount-rules/view/view-pricing-rules.php:42
733
- msgid "New Price Rule"
734
  msgstr ""
735
 
736
- #. Text in echo
737
- #: woo-discount-rules/view/view-cart-rules.php:128
738
- #: woo-discount-rules/view/view-cart-rules.php:545
739
- #: woo-discount-rules/view/view-pricing-rules.php:137
740
- #: woo-discount-rules/view/view-pricing-rules.php:562
741
- msgid "Next"
742
  msgstr ""
743
 
744
- #. Text in echo
745
- #: woo-discount-rules/view/settings.php:73
746
- #: woo-discount-rules/view/settings.php:85
747
- #: woo-discount-rules/view/settings.php:210
748
- #: woo-discount-rules/view/settings.php:273
749
- #: woo-discount-rules/view/view-cart-rules.php:525
750
- #: woo-discount-rules/view/view-pricing-rules.php:352
751
- msgid "No"
752
  msgstr ""
753
 
754
- #. Text in echo
755
- #: woo-discount-rules/view/template/discount-table.php:51
756
- msgid "No Active Discounts."
757
  msgstr ""
758
 
759
- #. Text in echo
760
- #: woo-discount-rules/view/view-cart-rules.php:499
761
- #: woo-discount-rules/view/view-pricing-rules.php:189
762
- #: woo-discount-rules/view/view-pricing-rules.php:205
763
- #: woo-discount-rules/view/view-pricing-rules.php:478
764
- #: woo-discount-rules/view/view-pricing-rules.php:547
765
- #: woo-discount-rules/view/view-pricing-rules.php:698
766
- msgid "None selected"
767
  msgstr ""
768
 
769
- #. Text in echo
770
- #: woo-discount-rules/view/view-cart-rules.php:173
771
- msgid "Number of line items in the cart (not quantity) at least"
772
  msgstr ""
773
 
774
- #. Text in echo
775
- #: woo-discount-rules/view/view-cart-rules.php:177
776
- msgid "Number of line items in the cart (not quantity) less than"
777
  msgstr ""
778
 
779
- #. Text in echo
780
- #: woo-discount-rules/view/view-cart-rules.php:339
781
- #: woo-discount-rules/view/view-cart-rules.php:341
782
- msgid "Number of order purchased"
783
  msgstr ""
784
 
785
- #. Text in echo
786
- #: woo-discount-rules/view/view-cart-rules.php:349
787
- #: woo-discount-rules/view/view-cart-rules.php:351
788
- msgid "Number of order purchased in products"
789
  msgstr ""
790
 
791
- #. Text in echo
792
- #: woo-discount-rules/view/view-pricing-rules.php:430
793
- msgid "Number of orders"
794
  msgstr ""
795
 
796
- #. Text in echo
797
- #: woo-discount-rules/view/view-pricing-rules.php:657
798
- msgid "Number of quantity(ies) in each selected product(s)"
799
  msgstr ""
800
 
801
- #. Text in echo
802
- #: woo-discount-rules/view/view-pricing-rules.php:279
803
- #: woo-discount-rules/view/view-pricing-rules.php:281
804
- msgid "Only Given"
805
  msgstr ""
806
 
807
- #. Text in function
808
- #: woo-discount-rules/view/cart-rules.php:173
809
- #: woo-discount-rules/view/pricing-rules.php:201
810
- msgid "Order"
811
  msgstr ""
812
 
813
- #. Text in echo
814
- #: woo-discount-rules/view/view-cart-rules.php:67
815
- #: woo-discount-rules/view/view-pricing-rules.php:51
816
- msgid "Order :"
817
  msgstr ""
818
 
819
- #. Text in echo
820
- #: woo-discount-rules/view/view-pricing-rules.php:741
821
- msgid "Percent"
822
  msgstr ""
823
 
824
- #. Text in echo
825
- #: woo-discount-rules/view/view-pricing-rules.php:718
826
- msgid "Percentage"
827
  msgstr ""
828
 
829
- #. Text in echo
830
- #: woo-discount-rules/view/view-cart-rules.php:570
831
- #: woo-discount-rules/view/view-pricing-rules.php:611
832
- msgid "Percentage Discount"
833
  msgstr ""
834
 
835
- #. Text in echo
836
- #: woo-discount-rules/view/view-cart-rules.php:106
837
- #: woo-discount-rules/view/view-pricing-rules.php:116
838
- msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
839
  msgstr ""
840
 
841
- #. Text in echo
842
- #: woo-discount-rules/view/includes/footer.php:7
843
- msgid "Please contact our support team"
844
  msgstr ""
845
 
846
- #. Text in echo
847
- #: woo-discount-rules/view/view-cart-rules.php:544
848
- #: woo-discount-rules/view/view-cart-rules.php:604
849
- #: woo-discount-rules/view/view-pricing-rules.php:561
850
- #: woo-discount-rules/view/view-pricing-rules.php:748
851
- msgid "Previous"
852
  msgstr ""
853
 
854
- #. Text in echo
855
- #: woo-discount-rules/view/view-cart-rules.php:576
856
- #: woo-discount-rules/view/view-cart-rules.php:578
857
- #: woo-discount-rules/view/view-pricing-rules.php:619
858
- #: woo-discount-rules/view/view-pricing-rules.php:621
859
- msgid "Price Discount"
860
  msgstr ""
861
 
862
- #. Text in echo
863
- #: woo-discount-rules/view/includes/menu.php:8
864
- msgid "Price Discount Rules"
865
  msgstr ""
866
 
867
- #. Text in echo
868
- #: woo-discount-rules/view/pricing-rules.php:79
869
- msgid "Price Rules"
870
  msgstr ""
871
 
872
- #. Text in echo
873
- #: woo-discount-rules/view/settings.php:90
874
- msgid "Price rules settings"
875
  msgstr ""
876
 
877
- #. Text in echo
878
- #: woo-discount-rules/view/view-pricing-rules.php:629
879
- #: woo-discount-rules/view/view-pricing-rules.php:631
880
- msgid "Product Discount"
881
  msgstr ""
882
 
883
- #. Text in echo
884
- #: woo-discount-rules/view/view-pricing-rules.php:521
885
- msgid "Product(s) from"
886
  msgstr ""
887
 
888
- #. Text in echo
889
- #: woo-discount-rules/view/view-cart-rules.php:323
890
- #: woo-discount-rules/view/view-pricing-rules.php:421
891
- msgid "Purchase History"
892
  msgstr ""
893
 
894
- #. Text in echo
895
- #: woo-discount-rules/view/view-cart-rules.php:329
896
- #: woo-discount-rules/view/view-cart-rules.php:331
897
- #: woo-discount-rules/view/view-pricing-rules.php:429
898
- msgid "Purchased amount"
899
  msgstr ""
900
 
901
- #. Text in echo
902
- #: woo-discount-rules/view/view-pricing-rules.php:431
903
- msgid "Purchased product"
904
  msgstr ""
905
 
906
- #. Text in echo
907
- #: woo-discount-rules/view/view-pricing-rules.php:515
908
- #: woo-discount-rules/view/view-pricing-rules.php:518
909
- #: woo-discount-rules/view/view-pricing-rules.php:538
910
- msgid "Quantity"
911
  msgstr ""
912
 
913
- #. Text in echo
914
- #: woo-discount-rules/view/view-cart-rules.php:180
915
- msgid "Quantity Sum"
916
  msgstr ""
917
 
918
- #. Text in echo
919
- #: woo-discount-rules/view/view-pricing-rules.php:98
920
- msgid "Quantity based by product/category and BOGO deals"
921
  msgstr ""
922
 
923
- #. Text in echo
924
- #: woo-discount-rules/view/template/discount-table.php:21
925
- msgid "Range"
926
  msgstr ""
927
 
928
- #. Text in echo
929
- #: woo-discount-rules/view/view-cart-rules.php:534
930
- #: woo-discount-rules/view/view-pricing-rules.php:725
931
- msgid "Remove"
932
  msgstr ""
933
 
934
- #. Text in echo
935
- #: woo-discount-rules/view/view-cart-rules.php:94
936
- #: woo-discount-rules/view/view-pricing-rules.php:79
937
- msgid "Rule Description"
938
  msgstr ""
939
 
940
- #. Text in echo
941
- #: woo-discount-rules/view/view-cart-rules.php:96
942
- #: woo-discount-rules/view/view-pricing-rules.php:81
943
- msgid "Rule Descriptions."
944
  msgstr ""
945
 
946
- #. Text in echo
947
- #: woo-discount-rules/view/view-cart-rules.php:82
948
- #: woo-discount-rules/view/view-pricing-rules.php:67
949
- msgid "Rule Name"
950
  msgstr ""
951
 
952
- #. Text in echo
953
- #: woo-discount-rules/view/settings.php:235
954
- msgid "Rule Setup for Cart:"
955
  msgstr ""
956
 
957
- #. Text in echo
958
- #: woo-discount-rules/view/settings.php:98
959
- msgid "Rule Setup for Price:"
 
960
  msgstr ""
961
 
962
- #. Text in echo
963
- #: woo-discount-rules/view/view-pricing-rules.php:649
964
- msgid "Same product"
965
  msgstr ""
966
 
967
- #. Text in echo
968
- #: woo-discount-rules/view/settings.php:21
969
- msgid "Save"
970
  msgstr ""
971
 
972
- #. Text in echo
973
- #: woo-discount-rules/view/view-cart-rules.php:53
974
- #: woo-discount-rules/view/view-pricing-rules.php:37
975
- msgid "Save Rule"
976
  msgstr ""
977
 
978
- #. Text in echo
979
- #: woo-discount-rules/view/includes/menu.php:12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
980
  msgid "Settings"
981
  msgstr ""
982
 
983
- #. Text in echo
984
- #: woo-discount-rules/view/view-cart-rules.php:307
985
- #: woo-discount-rules/view/view-cart-rules.php:309
986
- msgid "Shipping city"
987
  msgstr ""
988
 
989
- #. Text in echo
990
- #: woo-discount-rules/view/view-cart-rules.php:251
991
- #: woo-discount-rules/view/view-cart-rules.php:253
992
- msgid "Shipping country in list"
993
  msgstr ""
994
 
995
- #. Text in echo
996
- #: woo-discount-rules/view/view-cart-rules.php:297
997
- #: woo-discount-rules/view/view-cart-rules.php:299
998
- msgid "Shipping state"
999
  msgstr ""
1000
 
1001
- #. Text in echo
1002
- #: woo-discount-rules/view/view-cart-rules.php:317
1003
- #: woo-discount-rules/view/view-cart-rules.php:319
1004
- msgid "Shipping zip code"
1005
  msgstr ""
1006
 
1007
- #. Text in echo
1008
- #: woo-discount-rules/view/settings.php:193
1009
- msgid "Show"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1010
  msgstr ""
1011
 
1012
- #. Text in echo
1013
- #: woo-discount-rules/view/settings.php:187
1014
- msgid "Show Discount Title on Table :"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1015
  msgstr ""
1016
 
1017
- #. Text in echo
1018
- #: woo-discount-rules/view/settings.php:131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1019
  msgid "Show Price discount on product page :"
1020
  msgstr ""
1021
 
1022
- #. Text in echo
1023
- #: woo-discount-rules/view/settings.php:150
 
 
 
 
 
 
 
 
1024
  msgid "Show Sale tag on product page :"
1025
  msgstr ""
1026
 
1027
- #. Text in echo
1028
- #: woo-discount-rules/view/settings.php:204
1029
- msgid "Show strikeout discount in cart item"
1030
  msgstr ""
1031
 
1032
- #. Text in echo
1033
- #: woo-discount-rules/view/view-pricing-rules.php:536
1034
- msgid "Skip first quantity(s)"
1035
  msgstr ""
1036
 
1037
- #. Text in echo
1038
- #: woo-discount-rules/view/view-pricing-rules.php:172
1039
- #: woo-discount-rules/view/view-pricing-rules.php:174
1040
- msgid "Specific attributes"
1041
  msgstr ""
1042
 
1043
- #. Text in echo
1044
- #: woo-discount-rules/view/view-pricing-rules.php:163
1045
- #: woo-discount-rules/view/view-pricing-rules.php:165
1046
- msgid "Specific categories"
1047
  msgstr ""
1048
 
1049
- #. Text in echo
1050
- #: woo-discount-rules/view/view-pricing-rules.php:157
1051
- msgid "Specific products"
1052
  msgstr ""
1053
 
1054
- #. Text in echo
1055
- #: woo-discount-rules/view/cart-rules.php:170
1056
- #: woo-discount-rules/view/pricing-rules.php:198
1057
- msgid "Start Date"
1058
  msgstr ""
1059
 
1060
- #. Text in echo
1061
- #: woo-discount-rules/view/view-pricing-rules.php:375
1062
- msgid "Subtotal"
1063
  msgstr ""
1064
 
1065
- #. Text in echo
1066
- #: woo-discount-rules/view/view-cart-rules.php:163
1067
- msgid "Subtotal at least"
1068
  msgstr ""
1069
 
1070
- #. Text in echo
1071
- #: woo-discount-rules/view/view-pricing-rules.php:386
1072
- msgid "Subtotal atleast"
1073
  msgstr ""
1074
 
1075
- #. Text in echo
1076
- #: woo-discount-rules/view/view-cart-rules.php:167
1077
- msgid "Subtotal less than"
1078
  msgstr ""
1079
 
1080
- #. Text in echo
1081
- #: woo-discount-rules/view/settings.php:334
1082
- #: woo-discount-rules/view/view-pricing-rules.php:452
1083
- #: woo-discount-rules/view/view-pricing-rules.php:641
 
 
 
1084
  msgid "Supported in PRO version"
1085
  msgstr ""
1086
 
1087
- #. Text in echo
1088
- #: woo-discount-rules/view/view-pricing-rules.php:452
1089
- msgid "Supported in WooCommerce 3.x"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1090
  msgstr ""
1091
 
1092
- #. Text in echo
1093
- #: woo-discount-rules/view/view-cart-rules.php:69
1094
- #: woo-discount-rules/view/view-pricing-rules.php:53
1095
- msgid "The Simple Ranking concept to said, which one is going to execute first and so on."
1096
  msgstr ""
1097
 
1098
- #. Text in echo
1099
- #: woo-discount-rules/view/view-cart-rules.php:123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1100
  msgid "To"
1101
  msgstr ""
1102
 
1103
- #. Text in echo
1104
- #: woo-discount-rules/view/view-pricing-rules.php:133
1105
- msgid "To - Leave Empty if No Expiry"
 
 
 
 
 
 
 
 
1106
  msgstr ""
1107
 
1108
- #. Text in echo
1109
- #: woo-discount-rules/view/view-cart-rules.php:525
1110
- #: woo-discount-rules/view/view-pricing-rules.php:352
 
 
 
 
 
 
1111
  msgid "To get this condition work,"
1112
  msgstr ""
1113
 
1114
- #. Text in echo
1115
- #: woo-discount-rules/view/view-cart-rules.php:189
1116
- msgid "Total number of quantities in the cart at least"
1117
  msgstr ""
1118
 
1119
- #. Text in echo
1120
- #: woo-discount-rules/view/view-cart-rules.php:201
1121
- msgid "Total number of quantities in the cart less than"
1122
  msgstr ""
1123
 
1124
- #. Text in echo
1125
- #: woo-discount-rules/view/view-cart-rules.php:156
1126
- msgid "Type"
1127
  msgstr ""
1128
 
1129
- #. Text in echo
1130
- #: woo-discount-rules/view/settings.php:302
1131
- msgid "Use Woo-Discount free shipping"
1132
  msgstr ""
1133
 
1134
- #. Text in echo
1135
- #: woo-discount-rules/view/settings.php:299
1136
- msgid "Use Woocommerce free shipping"
1137
  msgstr ""
1138
 
1139
- #. Text in echo
1140
- #: woo-discount-rules/view/view-cart-rules.php:231
1141
- #: woo-discount-rules/view/view-cart-rules.php:233
1142
- msgid "User in list"
1143
  msgstr ""
1144
 
1145
- #. Text in echo
1146
- #: woo-discount-rules/view/view-cart-rules.php:241
1147
- #: woo-discount-rules/view/view-cart-rules.php:243
1148
- msgid "User role in list"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1149
  msgstr ""
1150
 
1151
- #. Text in echo
1152
- #: woo-discount-rules/view/view-pricing-rules.php:295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1153
  msgid "User roles"
1154
  msgstr ""
1155
 
1156
- #. Text in echo
1157
- #: woo-discount-rules/view/settings.php:40
1158
- msgid "Validate Key"
1159
  msgstr ""
1160
 
1161
- #. Text in echo
1162
- #: woo-discount-rules/view/view-cart-rules.php:105
1163
- #: woo-discount-rules/view/view-pricing-rules.php:115
1164
- msgid "Validity"
1165
  msgstr ""
1166
 
1167
- #. Text in echo
1168
- #: woo-discount-rules/view/view-cart-rules.php:381
1169
- #: woo-discount-rules/view/view-pricing-rules.php:635
1170
- #: woo-discount-rules/view/view-pricing-rules.php:743
1171
- msgid "Value"
1172
  msgstr ""
1173
 
1174
- #. Text in echo
1175
- #: woo-discount-rules/view/cart-rules.php:51
1176
- #: woo-discount-rules/view/pricing-rules.php:83
1177
- msgid "View Examples"
1178
  msgstr ""
1179
 
1180
- #. Text in echo
1181
- #: woo-discount-rules/view/view-cart-rules.php:76
1182
- #: woo-discount-rules/view/view-pricing-rules.php:61
1183
- msgid "WARNING: More than one rule should not have same priority."
1184
  msgstr ""
1185
 
1186
- #. Text in echo
1187
- #: woo-discount-rules/view/includes/cart-menu.php:5
1188
- #: woo-discount-rules/view/includes/menu.php:5
1189
- #: woo-discount-rules/view/includes/sub-menu.php:5
1190
- msgid "Woo Discount Rules"
1191
  msgstr ""
1192
 
1193
- #. Text in echo
1194
- #: woo-discount-rules/view/settings.php:72
1195
- #: woo-discount-rules/view/settings.php:84
1196
- #: woo-discount-rules/view/settings.php:209
1197
- #: woo-discount-rules/view/settings.php:272
1198
- msgid "Yes"
1199
  msgstr ""
1200
 
1201
- #. Text in echo
1202
- #: woo-discount-rules/view/cart-rules.php:62
1203
- #: woo-discount-rules/view/pricing-rules.php:94
1204
- msgid "You Reach Max. Rule Limit"
1205
  msgstr ""
1206
 
1207
- #. Text in echo
1208
- #: woo-discount-rules/view/settings.php:39
1209
- msgid "Your Unique License Key"
1210
  msgstr ""
1211
 
1212
- #. Text in echo
1213
- #: woo-discount-rules/view/view-pricing-rules.php:708
1214
- msgid "and"
1215
  msgstr ""
1216
 
1217
- #. Text in echo
1218
- #: woo-discount-rules/view/view-pricing-rules.php:532
1219
- msgid "and get discount in "
1220
  msgstr ""
1221
 
1222
- #. Text in echo
1223
- #: woo-discount-rules/view/view-pricing-rules.php:720
1224
- msgid "as discount"
1225
  msgstr ""
1226
 
1227
- #. Text in echo
1228
- #: woo-discount-rules/view/view-cart-rules.php:75
1229
- #: woo-discount-rules/view/view-pricing-rules.php:60
1230
- #: woo-discount-rules/view/view-pricing-rules.php:597
1231
- #: woo-discount-rules/view/view-pricing-rules.php:686
1232
- msgid "ex. 1"
1233
  msgstr ""
1234
 
1235
- #. Text in echo
1236
- #: woo-discount-rules/view/view-pricing-rules.php:718
1237
- msgid "ex. 10"
1238
  msgstr ""
1239
 
1240
- #. Text in echo
1241
- #: woo-discount-rules/view/view-pricing-rules.php:604
1242
- #: woo-discount-rules/view/view-pricing-rules.php:640
1243
- msgid "ex. 50"
1244
  msgstr ""
1245
 
1246
- #. Text in echo
1247
- #: woo-discount-rules/view/view-cart-rules.php:89
1248
- #: woo-discount-rules/view/view-pricing-rules.php:74
1249
- msgid "ex. Standard Rule."
1250
  msgstr ""
1251
 
1252
- #. Text in echo
1253
- #: woo-discount-rules/view/view-cart-rules.php:525
1254
- #: woo-discount-rules/view/view-pricing-rules.php:352
1255
- msgid "in cart to"
1256
  msgstr ""
1257
 
1258
- #. Text in echo
1259
- #: woo-discount-rules/view/view-cart-rules.php:525
1260
- #: woo-discount-rules/view/view-pricing-rules.php:352
1261
- msgid "please change the option"
 
 
 
1262
  msgstr ""
1263
 
1264
- #. Text in echo
1265
- #: woo-discount-rules/view/view-pricing-rules.php:517
1266
  msgid "to"
1267
  msgstr ""
1268
 
1269
- #. Text in echo
1270
- #: woo-discount-rules/view/view-cart-rules.php:596
1271
- msgid "value :"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1272
  msgstr ""
11
  "Language: en\n"
12
  "X-Generator: Poedit 1.8.7.1\n"
13
 
14
+ #: helper/general-helper.php:39
15
+ msgid "Guest"
 
16
  msgstr ""
17
 
18
+ #: helper/general-helper.php:576
19
+ msgid "Read Docs"
 
20
  msgstr ""
21
 
22
+ #: helper/purchase.php:25 view/includes/cart-menu.php:5
23
+ #: view/includes/menu.php:6 view/includes/sub-menu.php:5
24
+ msgid "Woo Discount Rules"
 
 
25
  msgstr ""
26
 
27
+ #: helper/purchase.php:60 helper/purchase.php:132
28
+ msgid "The license key for "
 
29
  msgstr ""
30
 
31
+ #: helper/purchase.php:60 helper/purchase.php:132
32
+ msgid "seems invalid."
 
33
  msgstr ""
34
 
35
+ #: helper/purchase.php:60 helper/purchase.php:64 helper/purchase.php:132
36
+ #: helper/purchase.php:135 helper/purchase.php:165
37
+ msgid "Please enter a valid license key"
 
38
  msgstr ""
39
 
40
+ #: helper/purchase.php:60 helper/purchase.php:64 helper/purchase.php:132
41
+ #: helper/purchase.php:135
42
+ msgid "You can get it from"
43
  msgstr ""
44
 
45
+ #: helper/purchase.php:60 helper/purchase.php:64 helper/purchase.php:132
46
+ #: helper/purchase.php:135
47
+ msgid "our website"
 
48
  msgstr ""
49
 
50
+ #: helper/purchase.php:64 helper/purchase.php:135
51
+ msgid "License key for the "
 
52
  msgstr ""
53
 
54
+ #: helper/purchase.php:64 helper/purchase.php:135
55
+ msgid "is not entered."
 
 
 
56
  msgstr ""
57
 
58
+ #: helper/purchase.php:71
59
+ msgid ": You are using CORE version. Please Update to PRO version."
 
60
  msgstr ""
61
 
62
+ #: helper/purchase.php:95
63
+ msgid "-PRO-"
 
64
  msgstr ""
65
 
66
+ #: helper/purchase.php:104
67
+ msgid "Pro"
 
68
  msgstr ""
69
 
70
+ #: helper/purchase.php:106
71
+ msgid "Core"
 
72
  msgstr ""
73
 
74
+ #: helper/purchase.php:174
75
+ msgid "License key check : Passed."
 
 
76
  msgstr ""
77
 
78
+ #: helper/purchase.php:178 view/settings.php:61
79
+ msgid "License key seems to be Invalid. Please enter a valid license key"
 
80
  msgstr ""
81
 
82
+ #: helper/woo-function.php:354 helper/woo-function.php:364
83
+ msgid "Search for a product&hellip;"
 
 
84
  msgstr ""
85
 
86
+ #: helper/woo-function.php:397 helper/woo-function.php:409
87
+ msgid "Search for a user&hellip;"
 
 
88
  msgstr ""
89
 
90
+ #: includes/advanced/free_shipping_method.php:16
91
+ msgid "WooDiscount Free Shipping"
 
92
  msgstr ""
93
 
94
+ #: includes/advanced/free_shipping_method.php:17
95
+ msgid "Custom Shipping Method for Woocommerce Discount Rules"
 
96
  msgstr ""
97
 
98
+ #: includes/advanced/free_shipping_method.php:68 view/settings.php:402
99
+ msgid "Free Shipping"
 
 
100
  msgstr ""
101
 
102
+ #: includes/advanced/free_shipping_method.php:73 includes/discount-base.php:874
103
+ #: view/cart-rules.php:128 view/pricing-rules.php:156
104
+ msgid "Enable"
105
  msgstr ""
106
 
107
+ #: includes/advanced/free_shipping_method.php:75
108
+ msgid "Enable this shipping."
 
109
  msgstr ""
110
 
111
+ #: includes/advanced/free_shipping_method.php:80
112
+ msgid "Title"
 
113
  msgstr ""
114
 
115
+ #: includes/advanced/free_shipping_method.php:82
116
+ msgid "Title to be display on site"
 
 
117
  msgstr ""
118
 
119
+ #: includes/discount-base.php:365
120
+ msgid "Cache cleared successfully"
 
 
121
  msgstr ""
122
 
123
+ #: includes/discount-base.php:367
124
+ msgid "Failed to clear cache"
 
 
125
  msgstr ""
126
 
127
+ #: includes/discount-base.php:473 includes/discount-base.php:508
128
+ msgid "Failed to do action"
 
129
  msgstr ""
130
 
131
+ #: includes/discount-base.php:512
132
+ msgid "Disabled successfully"
 
 
133
  msgstr ""
134
 
135
+ #: includes/discount-base.php:515
136
+ msgid "Deleted successfully"
 
137
  msgstr ""
138
 
139
+ #: includes/discount-base.php:518
140
+ msgid "Enabled successfully"
 
141
  msgstr ""
142
 
143
+ #: includes/discount-base.php:538 includes/discount-base.php:539
144
+ #: includes/discount-base.php:556
145
+ msgid "copy"
146
  msgstr ""
147
 
148
+ #: includes/discount-base.php:564
149
+ msgid "Duplicate rule created successfully"
 
150
  msgstr ""
151
 
152
+ #: includes/discount-base.php:568
153
+ msgid "Failed to create duplicate rule"
 
154
  msgstr ""
155
 
156
+ #: includes/discount-base.php:831
157
+ msgid "Please fill this field"
 
158
  msgstr ""
159
 
160
+ #: includes/discount-base.php:832
161
+ msgid "Please Enter the Rule Name to Create / Save."
 
162
  msgstr ""
163
 
164
+ #: includes/discount-base.php:833
165
+ msgid "Saving..."
 
166
  msgstr ""
167
 
168
+ #: includes/discount-base.php:834 view/view-cart-rules.php:53
169
+ #: view/view-pricing-rules.php:37
170
+ msgid "Save Rule"
171
  msgstr ""
172
 
173
+ #: includes/discount-base.php:835
174
+ msgid "Please enter a Key"
 
175
  msgstr ""
176
 
177
+ #: includes/discount-base.php:836 view/view-pricing-rules.php:592
178
+ msgid "Min Quantity"
 
179
  msgstr ""
180
 
181
+ #: includes/discount-base.php:837 view/view-pricing-rules.php:599
182
+ msgid "Max Quantity"
 
183
  msgstr ""
184
 
185
+ #: includes/discount-base.php:838 view/view-cart-rules.php:75
186
+ #: view/view-pricing-rules.php:60 view/view-pricing-rules.php:597
187
+ #: view/view-pricing-rules.php:662 view/view-pricing-rules.php:679
188
+ #: view/view-pricing-rules.php:686
189
+ msgid "ex. 1"
190
  msgstr ""
191
 
192
+ #: includes/discount-base.php:839 view/view-pricing-rules.php:718
193
+ msgid "ex. 10"
 
194
  msgstr ""
195
 
196
+ #: includes/discount-base.php:840 view/view-pricing-rules.php:604
197
+ #: view/view-pricing-rules.php:640
198
+ msgid "ex. 50"
199
  msgstr ""
200
 
201
+ #: includes/discount-base.php:841
202
+ msgid "Search for a user"
 
203
  msgstr ""
204
 
205
+ #: includes/discount-base.php:842 view/view-pricing-rules.php:605
206
+ msgid "Adjustment Type"
 
207
  msgstr ""
208
 
209
+ #: includes/discount-base.php:843 view/view-cart-rules.php:569
210
+ #: view/view-pricing-rules.php:611
211
+ msgid "Percentage Discount"
212
  msgstr ""
213
 
214
+ #: includes/discount-base.php:844 view/view-cart-rules.php:575
215
+ #: view/view-cart-rules.php:577 view/view-pricing-rules.php:619
216
+ #: view/view-pricing-rules.php:621
217
+ msgid "Price Discount"
218
  msgstr ""
219
 
220
+ #: includes/discount-base.php:845 view/view-pricing-rules.php:629
221
+ #: view/view-pricing-rules.php:631
222
+ msgid "Product Discount"
223
  msgstr ""
224
 
225
+ #: includes/discount-base.php:846
226
+ msgid "Product Discount - Not support for subtotal based rule"
 
227
  msgstr ""
228
 
229
+ #: includes/discount-base.php:847 view/view-cart-rules.php:380
230
+ #: view/view-pricing-rules.php:635 view/view-pricing-rules.php:743
231
+ msgid "Value"
232
  msgstr ""
233
 
234
+ #: includes/discount-base.php:848 view/view-pricing-rules.php:646
235
+ msgid "Apply for"
 
236
  msgstr ""
237
 
238
+ #: includes/discount-base.php:849 view/view-cart-rules.php:370
239
+ #: view/view-cart-rules.php:372 view/view-pricing-rules.php:648
240
+ msgid "All selected"
241
  msgstr ""
242
 
243
+ #: includes/discount-base.php:850 view/view-pricing-rules.php:649
244
+ msgid "Same product"
 
245
  msgstr ""
246
 
247
+ #: includes/discount-base.php:851 view/view-pricing-rules.php:650
248
+ msgid "Any one cheapest from selected"
 
 
249
  msgstr ""
250
 
251
+ #: includes/discount-base.php:852 view/view-pricing-rules.php:651
252
+ msgid "Any one cheapest from all products"
 
 
253
  msgstr ""
254
 
255
+ #: includes/discount-base.php:853 view/view-pricing-rules.php:652
256
+ msgid "More than one cheapest from selected category"
 
 
257
  msgstr ""
258
 
259
+ #: includes/discount-base.php:854 view/view-pricing-rules.php:653
260
+ msgid "More than one cheapest from selected"
 
 
261
  msgstr ""
262
 
263
+ #: includes/discount-base.php:855 view/view-pricing-rules.php:654
264
+ msgid "More than one cheapest from all"
 
 
265
  msgstr ""
266
 
267
+ #: includes/discount-base.php:856 view/view-pricing-rules.php:657
268
+ msgid "Free quantity"
 
 
269
  msgstr ""
270
 
271
+ #: includes/discount-base.php:857 view/view-pricing-rules.php:657
272
+ msgid "Number of quantity(ies) in each selected product(s)"
 
273
  msgstr ""
274
 
275
+ #: includes/discount-base.php:858 view/view-pricing-rules.php:671
276
+ msgid "Fixed item count"
 
 
277
  msgstr ""
278
 
279
+ #: includes/discount-base.php:859 view/view-pricing-rules.php:670
280
+ msgid "Dynamic item count"
 
 
 
 
 
281
  msgstr ""
282
 
283
+ #: includes/discount-base.php:860 view/view-pricing-rules.php:673
284
+ msgid ""
285
+ "Fixed item count - You need to provide item count manually. Dynamic item "
286
+ "count - System will choose dynamically based on cart"
287
  msgstr ""
288
 
289
+ #: includes/discount-base.php:861 view/view-pricing-rules.php:674
290
+ msgid "Item count"
 
291
  msgstr ""
292
 
293
+ #: includes/discount-base.php:862 view/view-pricing-rules.php:674
294
+ msgid "Discount for number of item(s) in cart"
 
295
  msgstr ""
296
 
297
+ #: includes/discount-base.php:863 view/view-pricing-rules.php:681
298
+ msgid "Discount for number of quantity(ies) in each item"
 
299
  msgstr ""
300
 
301
+ #: includes/discount-base.php:864 view/view-pricing-rules.php:681
302
+ msgid "Item quantity"
 
303
  msgstr ""
304
 
305
+ #: includes/discount-base.php:865
306
+ msgid "Search for a products"
 
307
  msgstr ""
308
 
309
+ #: includes/discount-base.php:866 view/view-pricing-rules.php:708
310
+ msgid "and"
 
 
 
 
311
  msgstr ""
312
 
313
+ #: includes/discount-base.php:867 view/view-pricing-rules.php:710
314
+ msgid "100% percent"
 
315
  msgstr ""
316
 
317
+ #: includes/discount-base.php:868 view/view-pricing-rules.php:711
318
+ msgid "Limited percent"
 
319
  msgstr ""
320
 
321
+ #: includes/discount-base.php:869 view/view-pricing-rules.php:718
322
+ msgid "Percentage"
 
 
323
  msgstr ""
324
 
325
+ #: includes/discount-base.php:870 view/view-pricing-rules.php:720
326
+ msgid "as discount"
 
327
  msgstr ""
328
 
329
+ #: includes/discount-base.php:871 view/view-cart-rules.php:533
330
+ #: view/view-pricing-rules.php:725
331
+ msgid "Remove"
332
  msgstr ""
333
 
334
+ #: includes/discount-base.php:872
335
+ msgid "none"
 
 
336
  msgstr ""
337
 
338
+ #: includes/discount-base.php:873
339
+ msgid "Are you sure to remove this ?"
 
340
  msgstr ""
341
 
342
+ #: includes/discount-base.php:875 view/cart-rules.php:125
343
+ #: view/pricing-rules.php:153
344
+ msgid "Disable"
345
  msgstr ""
346
 
347
+ #: includes/discount-base.php:876
348
+ msgid "Are you sure to remove ?"
 
 
349
  msgstr ""
350
 
351
+ #: includes/discount-base.php:877 view/view-cart-rules.php:155
352
+ msgid "Type"
 
353
  msgstr ""
354
 
355
+ #: includes/discount-base.php:878 view/view-cart-rules.php:159
356
+ msgid "Cart Subtotal"
 
357
  msgstr ""
358
 
359
+ #: includes/discount-base.php:879 view/view-cart-rules.php:162
360
+ msgid "Subtotal at least"
 
 
361
  msgstr ""
362
 
363
+ #: includes/discount-base.php:880 view/view-cart-rules.php:166
364
+ msgid "Subtotal less than"
 
 
365
  msgstr ""
366
 
367
+ #: includes/discount-base.php:881 view/view-cart-rules.php:169
368
+ msgid "Cart Item Count"
 
 
369
  msgstr ""
370
 
371
+ #: includes/discount-base.php:882 view/view-cart-rules.php:172
372
+ msgid "Number of line items in the cart (not quantity) at least"
 
373
  msgstr ""
374
 
375
+ #: includes/discount-base.php:883 view/view-cart-rules.php:176
376
+ msgid "Number of line items in the cart (not quantity) less than"
 
377
  msgstr ""
378
 
379
+ #: includes/discount-base.php:884 view/view-cart-rules.php:179
380
+ msgid "Quantity Sum"
 
 
381
  msgstr ""
382
 
383
+ #: includes/discount-base.php:885 view/view-cart-rules.php:185
384
+ #: view/view-cart-rules.php:188
385
+ msgid "Total number of quantities in the cart at least"
386
  msgstr ""
387
 
388
+ #: includes/discount-base.php:886 view/view-cart-rules.php:197
389
+ #: view/view-cart-rules.php:200
390
+ msgid "Total number of quantities in the cart less than"
391
  msgstr ""
392
 
393
+ #: includes/discount-base.php:887 view/view-cart-rules.php:209
394
+ msgid "Categories in cart"
 
395
  msgstr ""
396
 
397
+ #: includes/discount-base.php:888 view/view-cart-rules.php:215
398
+ msgid "Including sub-categories in cart"
 
399
  msgstr ""
400
 
401
+ #: includes/discount-base.php:889 view/view-cart-rules.php:224
402
+ msgid "Customer Details (must be logged in)"
 
403
  msgstr ""
404
 
405
+ #: includes/discount-base.php:890 view/view-cart-rules.php:230
406
+ #: view/view-cart-rules.php:232
407
+ msgid "User in list"
408
  msgstr ""
409
 
410
+ #: includes/discount-base.php:891 view/view-cart-rules.php:240
411
+ #: view/view-cart-rules.php:242
412
+ msgid "User role in list"
 
413
  msgstr ""
414
 
415
+ #: includes/discount-base.php:892 view/view-cart-rules.php:250
416
+ #: view/view-cart-rules.php:252
417
+ msgid "Shipping country in list"
418
  msgstr ""
419
 
420
+ #: includes/discount-base.php:893 view/view-cart-rules.php:256
421
+ msgid "Customer Email"
 
422
  msgstr ""
423
 
424
+ #: includes/discount-base.php:894
425
+ msgid "Email with TLD (Ege: edu)"
 
426
  msgstr ""
427
 
428
+ #: includes/discount-base.php:895 view/view-cart-rules.php:272
429
+ #: view/view-cart-rules.php:274
430
+ msgid "Email with Domain (Eg: gmail.com)"
431
  msgstr ""
432
 
433
+ #: includes/discount-base.php:896 view/view-cart-rules.php:278
434
+ msgid "Customer Billing Details"
 
435
  msgstr ""
436
 
437
+ #: includes/discount-base.php:897 view/view-cart-rules.php:284
438
+ #: view/view-cart-rules.php:286
439
+ msgid "Billing city"
440
  msgstr ""
441
 
442
+ #: includes/discount-base.php:898 view/view-cart-rules.php:290
443
+ msgid "Customer Shipping Details"
 
444
  msgstr ""
445
 
446
+ #: includes/discount-base.php:899 view/view-cart-rules.php:296
447
+ #: view/view-cart-rules.php:298
448
+ msgid "Shipping state"
449
  msgstr ""
450
 
451
+ #: includes/discount-base.php:900 view/view-cart-rules.php:306
452
+ #: view/view-cart-rules.php:308
453
+ msgid "Shipping city"
 
454
  msgstr ""
455
 
456
+ #: includes/discount-base.php:901 view/view-cart-rules.php:316
457
+ #: view/view-cart-rules.php:318
458
+ msgid "Shipping zip code"
459
  msgstr ""
460
 
461
+ #: includes/discount-base.php:902 view/view-cart-rules.php:322
462
+ #: view/view-pricing-rules.php:421
463
+ msgid "Purchase History"
 
 
464
  msgstr ""
465
 
466
+ #: includes/discount-base.php:903 view/view-cart-rules.php:328
467
+ #: view/view-cart-rules.php:330 view/view-pricing-rules.php:429
468
+ msgid "Purchased amount"
 
 
 
469
  msgstr ""
470
 
471
+ #: includes/discount-base.php:904 view/view-cart-rules.php:338
472
+ #: view/view-cart-rules.php:340
473
+ msgid "Number of order purchased"
474
  msgstr ""
475
 
476
+ #: includes/discount-base.php:905 view/view-cart-rules.php:348
477
+ #: view/view-cart-rules.php:350
478
+ msgid "Number of order purchased in products"
 
479
  msgstr ""
480
 
481
+ #: includes/discount-base.php:906 view/view-cart-rules.php:354
482
+ msgid "Coupon applied"
 
483
  msgstr ""
484
 
485
+ #: includes/discount-base.php:907 view/view-cart-rules.php:360
486
+ #: view/view-cart-rules.php:362
487
+ msgid "Atleast any one"
488
  msgstr ""
489
 
490
+ #: includes/discount-base.php:908 view/view-cart-rules.php:490
491
+ #: view/view-pricing-rules.php:466
492
+ msgid "Greater than or equal to"
493
+ msgstr ""
494
+
495
+ #: includes/discount-base.php:909 view/view-cart-rules.php:491
496
+ #: view/view-pricing-rules.php:467
497
+ msgid "Less than or equal to"
498
  msgstr ""
499
 
500
+ #: includes/discount-base.php:910 view/view-cart-rules.php:493
501
+ #: view/view-pricing-rules.php:470
 
502
  msgid "In Order status"
503
  msgstr ""
504
 
505
+ #: includes/discount-base.php:911 view/cart-rules.php:109
506
+ #: view/cart-rules.php:179 view/pricing-rules.php:137
507
+ #: view/pricing-rules.php:207 view/view-cart-rules.php:532
508
+ msgid "Action"
509
  msgstr ""
510
 
511
+ #: includes/discount-base.php:912 view/settings.php:21
512
+ msgid "Save"
 
513
  msgstr ""
514
 
515
+ #: includes/discount-base.php:913
516
+ msgid "Saved Successfully!"
 
517
  msgstr ""
518
 
519
+ #: includes/discount-base.php:914 view/view-cart-rules.php:409
520
+ #: view/view-cart-rules.php:428 view/view-cart-rules.php:449
521
+ #: view/view-cart-rules.php:498 view/view-pricing-rules.php:189
522
+ #: view/view-pricing-rules.php:205 view/view-pricing-rules.php:478
523
+ #: view/view-pricing-rules.php:547 view/view-pricing-rules.php:698
524
+ msgid "None selected"
525
  msgstr ""
526
 
527
+ #: includes/discount-base.php:915 view/view-cart-rules.php:221
528
+ msgid "In each category"
 
529
  msgstr ""
530
 
531
+ #: includes/discount-base.php:916 view/settings.php:178 view/settings.php:197
532
+ #: view/settings.php:216 view/settings.php:234 view/settings.php:252
533
+ #: view/settings.php:270
534
+ msgid "Show"
535
  msgstr ""
536
 
537
+ #: includes/discount-base.php:917 view/template/sidebar.php:12
538
+ msgid "Hide"
 
 
539
  msgstr ""
540
 
541
+ #: includes/discount-base.php:918
542
+ msgid "Please select at least one rule"
 
543
  msgstr ""
544
 
545
+ #: includes/discount-base.php:919
546
+ msgid "Please select an action to apply"
 
547
  msgstr ""
548
 
549
+ #: includes/discount-base.php:920
550
+ msgid "Are you sure to remove the selected rules"
 
551
  msgstr ""
552
 
553
+ #: includes/pricing-rules.php:2418 view/view-pricing-rules.php:503
554
+ msgid "Buy"
 
555
  msgstr ""
556
 
557
+ #: includes/pricing-rules.php:2422
558
+ msgid " less than or equal to "
 
559
  msgstr ""
560
 
561
+ #: includes/pricing-rules.php:2422 includes/pricing-rules.php:2428
562
+ msgid " Quantity"
 
563
  msgstr ""
564
 
565
+ #: includes/pricing-rules.php:2425
566
+ msgid " Quantity "
 
567
  msgstr ""
568
 
569
+ #: includes/pricing-rules.php:2432
570
+ msgid " or more Quantity"
 
571
  msgstr ""
572
 
573
+ #: includes/pricing-rules.php:2441
574
+ msgid " any "
 
575
  msgstr ""
576
 
577
+ #: includes/pricing-rules.php:2441
578
+ msgid " products from "
 
579
  msgstr ""
580
 
581
+ #: includes/pricing-rules.php:2448
582
+ msgid " in each products"
 
583
  msgstr ""
584
 
585
+ #: includes/pricing-rules.php:2460
586
+ msgid " and get discount in "
 
587
  msgstr ""
588
 
589
+ #: includes/pricing-rules.php:2463
590
+ msgid " first "
 
591
  msgstr ""
592
 
593
+ #: includes/pricing-rules.php:2465 includes/pricing-rules.php:2469
594
+ msgid " quantity of product(s) - "
 
 
 
595
  msgstr ""
596
 
597
+ #: includes/pricing-rules.php:2467
598
+ msgid " after first "
 
599
  msgstr ""
600
 
601
+ #: includes/pricing-rules.php:2485
602
+ msgid "Category(ies) "
 
603
  msgstr ""
604
 
605
+ #: includes/pricing-rules.php:2551
606
+ msgid "Get "
 
 
 
 
607
  msgstr ""
608
 
609
+ #: includes/pricing-rules.php:2553
610
+ #, php-format
611
+ msgid "% discount in "
 
 
 
 
 
612
  msgstr ""
613
 
614
+ #: includes/pricing-rules.php:2556
615
+ msgid "same product"
 
616
  msgstr ""
617
 
618
+ #: includes/pricing-rules.php:2558
619
+ msgid "any cheapest one from cart"
 
 
 
 
 
 
620
  msgstr ""
621
 
622
+ #: includes/pricing-rules.php:2561
623
+ msgid "any cheapest one of "
 
624
  msgstr ""
625
 
626
+ #: includes/pricing-rules.php:2566
627
+ msgid " quantity of any "
 
628
  msgstr ""
629
 
630
+ #: includes/pricing-rules.php:2568
631
+ msgid " cheapest item "
 
 
632
  msgstr ""
633
 
634
+ #: includes/pricing-rules.php:2571
635
+ msgid " quantity of cheapest item "
 
 
636
  msgstr ""
637
 
638
+ #: includes/pricing-rules.php:2575
639
+ msgid "from the category "
 
640
  msgstr ""
641
 
642
+ #: view/cart-rules.php:47
643
+ msgid "Cart Rules"
 
644
  msgstr ""
645
 
646
+ #: view/cart-rules.php:51 view/pricing-rules.php:83
647
+ msgid "View Examples"
 
 
648
  msgstr ""
649
 
650
+ #: view/cart-rules.php:52 view/documentation.php:21 view/includes/menu.php:17
651
+ #: view/pricing-rules.php:84
652
+ msgid "Documentation"
 
653
  msgstr ""
654
 
655
+ #: view/cart-rules.php:62 view/pricing-rules.php:94
656
+ msgid "You Reach Max. Rule Limit"
 
 
657
  msgstr ""
658
 
659
+ #: view/cart-rules.php:67 view/pricing-rules.php:98
660
+ msgid "Add New Rule"
 
661
  msgstr ""
662
 
663
+ #: view/cart-rules.php:80 view/pricing-rules.php:108
664
+ msgid "Bulk Actions"
 
665
  msgstr ""
666
 
667
+ #: view/cart-rules.php:81 view/pricing-rules.php:109
668
+ msgid "Enable rules"
 
 
669
  msgstr ""
670
 
671
+ #: view/cart-rules.php:82 view/pricing-rules.php:110
672
+ msgid "Disable rules"
 
 
673
  msgstr ""
674
 
675
+ #: view/cart-rules.php:83 view/pricing-rules.php:111
676
+ msgid "Delete rules"
 
677
  msgstr ""
678
 
679
+ #: view/cart-rules.php:85 view/pricing-rules.php:113
680
+ msgid "Apply"
 
 
 
 
681
  msgstr ""
682
 
683
+ #: view/cart-rules.php:99 view/cart-rules.php:169 view/pricing-rules.php:127
684
+ #: view/pricing-rules.php:197 view/template/discount-table.php:19
685
+ msgid "Name"
 
 
 
686
  msgstr ""
687
 
688
+ #: view/cart-rules.php:100 view/cart-rules.php:170 view/pricing-rules.php:128
689
+ #: view/pricing-rules.php:198
690
+ msgid "Start Date"
691
  msgstr ""
692
 
693
+ #: view/cart-rules.php:101 view/cart-rules.php:171 view/pricing-rules.php:129
694
+ #: view/pricing-rules.php:199
695
+ msgid "Expired On"
696
  msgstr ""
697
 
698
+ #: view/cart-rules.php:104 view/cart-rules.php:174 view/pricing-rules.php:132
699
+ #: view/pricing-rules.php:202
700
+ msgid "Order"
701
  msgstr ""
702
 
703
+ #: view/cart-rules.php:142 view/pricing-rules.php:170
704
+ msgid "Edit"
 
 
705
  msgstr ""
706
 
707
+ #: view/cart-rules.php:146 view/pricing-rules.php:174
708
+ msgid "Duplicate"
 
709
  msgstr ""
710
 
711
+ #: view/cart-rules.php:153 view/pricing-rules.php:181
712
+ msgid "Delete"
 
 
713
  msgstr ""
714
 
715
+ #: view/documentation.php:27
716
+ msgid "Getting started"
 
 
 
717
  msgstr ""
718
 
719
+ #: view/documentation.php:27
720
+ msgid "Welcome onboard"
 
721
  msgstr ""
722
 
723
+ #: view/documentation.php:30 view/includes/menu.php:9
724
+ msgid "Price Discount Rules"
 
 
 
725
  msgstr ""
726
 
727
+ #: view/documentation.php:30
728
+ msgid "Learn all about creating a price discount rules"
 
729
  msgstr ""
730
 
731
+ #: view/documentation.php:33 view/includes/menu.php:11
732
+ msgid "Cart Discount Rules"
 
733
  msgstr ""
734
 
735
+ #: view/documentation.php:33
736
+ msgid "Cart based discount rules with examples."
 
737
  msgstr ""
738
 
739
+ #: view/documentation.php:36
740
+ msgid "How to create a perfect BOGO discount rule in WooCommerce"
 
 
741
  msgstr ""
742
 
743
+ #: view/documentation.php:36
744
+ msgid ""
745
+ "Buy One Get One deals can be simple to complex. Learn how to get them "
746
+ "working correct in your online store"
747
  msgstr ""
748
 
749
+ #: view/documentation.php:39
750
+ msgid "User Role based discount rules"
 
 
751
  msgstr ""
752
 
753
+ #: view/documentation.php:39
754
+ msgid ""
755
+ "Learn how to create user role based / customer group based discount in "
756
+ "WooCommerce"
757
  msgstr ""
758
 
759
+ #: view/documentation.php:42
760
+ msgid "Activate discount rule using a coupon code in WooCommerce"
 
761
  msgstr ""
762
 
763
+ #: view/documentation.php:42
764
+ msgid ""
765
+ "Apply the dynamic discount rules after the customer enters a valid coupon "
766
+ "code"
767
  msgstr ""
768
 
769
+ #: view/documentation.php:45
770
+ msgid "Purchase History Based Discount"
 
771
  msgstr ""
772
 
773
+ #: view/documentation.php:45
774
+ msgid ""
775
+ "Price Rule and Cart Rule which gives discount based on the purchase history"
776
  msgstr ""
777
 
778
+ #: view/includes/cart-menu.php:9 view/includes/sub-menu.php:9
779
+ #: view/settings.php:26 view/view-cart-rules.php:63
780
+ #: view/view-pricing-rules.php:47
781
+ msgid "General"
782
  msgstr ""
783
 
784
+ #: view/includes/cart-menu.php:11
785
+ msgid "Conditions"
786
+ msgstr ""
787
+
788
+ #: view/includes/cart-menu.php:13 view/includes/sub-menu.php:13
789
+ #: view/template/discount-table.php:25 view/view-cart-rules.php:549
790
+ #: view/view-pricing-rules.php:569
791
+ msgid "Discount"
792
+ msgstr ""
793
+
794
+ #: view/includes/footer.php:7
795
+ msgid ""
796
+ "Having trouble in setting up the discount? Let us set up the rules for you "
797
+ "(for free)!"
798
+ msgstr ""
799
+
800
+ #: view/includes/footer.php:7
801
+ msgid "Please contact our support team"
802
+ msgstr ""
803
+
804
+ #: view/includes/header.php:13
805
+ #, php-format
806
+ msgid ""
807
+ "An another discount plugin %s is active. Please disable this plugin, Woo "
808
+ "Discount Rules might get conflict."
809
+ msgstr ""
810
+
811
+ #: view/includes/menu.php:13
812
  msgid "Settings"
813
  msgstr ""
814
 
815
+ #: view/includes/sub-menu.php:11
816
+ msgid "Condition"
 
 
817
  msgstr ""
818
 
819
+ #: view/pricing-rules.php:79
820
+ msgid "Price Rules"
 
 
821
  msgstr ""
822
 
823
+ #: view/settings.php:27
824
+ msgid "Price rules"
 
 
825
  msgstr ""
826
 
827
+ #: view/settings.php:28
828
+ msgid "Cart rules"
 
 
829
  msgstr ""
830
 
831
+ #: view/settings.php:29
832
+ msgid "Performance"
833
+ msgstr ""
834
+
835
+ #: view/settings.php:36
836
+ msgid "General Settings"
837
+ msgstr ""
838
+
839
+ #: view/settings.php:43
840
+ msgid "License Key :"
841
+ msgstr ""
842
+
843
+ #: view/settings.php:49
844
+ msgid "Your Unique License Key"
845
+ msgstr ""
846
+
847
+ #: view/settings.php:50
848
+ msgid "Validate Key"
849
  msgstr ""
850
 
851
+ #: view/settings.php:77
852
+ msgid "Enable Bootstrap"
853
+ msgstr ""
854
+
855
+ #: view/settings.php:82 view/settings.php:94 view/settings.php:106
856
+ #: view/settings.php:119 view/settings.php:286 view/settings.php:298
857
+ #: view/settings.php:445
858
+ msgid "Yes"
859
+ msgstr ""
860
+
861
+ #: view/settings.php:83 view/settings.php:95 view/settings.php:107
862
+ #: view/settings.php:120 view/settings.php:287 view/settings.php:299
863
+ #: view/settings.php:446 view/view-cart-rules.php:524
864
+ #: view/view-pricing-rules.php:352
865
+ msgid "No"
866
+ msgstr ""
867
+
868
+ #: view/settings.php:89
869
+ msgid "Force refresh the cart widget while add and remove item to cart"
870
+ msgstr ""
871
+
872
+ #: view/settings.php:101
873
+ msgid "Disable the rules while have coupon(Third party) in cart"
874
  msgstr ""
875
 
876
+ #: view/settings.php:114
877
+ msgid ""
878
+ "Hide $0.00 (zero value) of coupon codes in the totals column. Useful when a "
879
+ "coupon used with discount rule conditions"
880
+ msgstr ""
881
+
882
+ #: view/settings.php:131
883
+ msgid "Price rules settings"
884
+ msgstr ""
885
+
886
+ #: view/settings.php:139
887
+ msgid "Rule Setup for Price:"
888
+ msgstr ""
889
+
890
+ #: view/settings.php:145 view/settings.php:335
891
+ msgid "Apply first matched rule"
892
+ msgstr ""
893
+
894
+ #: view/settings.php:151 view/settings.php:153 view/settings.php:341
895
+ #: view/settings.php:343
896
+ msgid "Apply all matched rules"
897
+ msgstr ""
898
+
899
+ #: view/settings.php:160 view/settings.php:162 view/settings.php:350
900
+ #: view/settings.php:352
901
+ msgid "Apply biggest discount"
902
+ msgstr ""
903
+
904
+ #: view/settings.php:172
905
  msgid "Show Price discount on product page :"
906
  msgstr ""
907
 
908
+ #: view/settings.php:181 view/settings.php:200 view/settings.php:219
909
+ #: view/settings.php:237 view/settings.php:255 view/settings.php:273
910
+ msgid "Don't Show"
911
+ msgstr ""
912
+
913
+ #: view/settings.php:184 view/settings.php:203
914
+ msgid "It displays only if any rule matches"
915
+ msgstr ""
916
+
917
+ #: view/settings.php:191
918
  msgid "Show Sale tag on product page :"
919
  msgstr ""
920
 
921
+ #: view/settings.php:210
922
+ msgid "Discount Table :"
 
923
  msgstr ""
924
 
925
+ #: view/settings.php:228
926
+ msgid "Show column title on table :"
 
927
  msgstr ""
928
 
929
+ #: view/settings.php:246
930
+ msgid "Show column discount range on table :"
 
 
931
  msgstr ""
932
 
933
+ #: view/settings.php:264
934
+ msgid "Show column discount on table :"
 
 
935
  msgstr ""
936
 
937
+ #: view/settings.php:281
938
+ msgid "Show strikeout discount in cart item"
 
939
  msgstr ""
940
 
941
+ #: view/settings.php:293
942
+ msgid "Auto add free product on coupon applied (For coupon based rules)"
 
 
943
  msgstr ""
944
 
945
+ #: view/settings.php:309
946
+ msgid "Cart rules settings"
 
947
  msgstr ""
948
 
949
+ #: view/settings.php:316
950
+ msgid "Coupon Name to be displayed :"
 
951
  msgstr ""
952
 
953
+ #: view/settings.php:322
954
+ msgid "Discount Coupon Name"
 
955
  msgstr ""
956
 
957
+ #: view/settings.php:329
958
+ msgid "Rule Setup for Cart:"
 
959
  msgstr ""
960
 
961
+ #: view/settings.php:361
962
+ msgid "Enable free shipping option"
963
+ msgstr ""
964
+
965
+ #: view/settings.php:368 view/view-pricing-rules.php:254
966
+ #: view/view-pricing-rules.php:311 view/view-pricing-rules.php:364
967
+ #: view/view-pricing-rules.php:410 view/view-pricing-rules.php:439
968
  msgid "Supported in PRO version"
969
  msgstr ""
970
 
971
+ #: view/settings.php:371 view/settings.php:378
972
+ msgid "Disabled"
973
+ msgstr ""
974
+
975
+ #: view/settings.php:381
976
+ msgid "Use Woocommerce free shipping"
977
+ msgstr ""
978
+
979
+ #: view/settings.php:384
980
+ msgid "Use Woo-Discount free shipping"
981
+ msgstr ""
982
+
983
+ #: view/settings.php:398
984
+ msgid "Free shipping text to be displayed"
985
+ msgstr ""
986
+
987
+ #: view/settings.php:405
988
+ msgid "Free Shipping title"
989
+ msgstr ""
990
+
991
+ #: view/settings.php:412
992
+ msgid "Draft"
993
+ msgstr ""
994
+
995
+ #: view/settings.php:422
996
+ msgid "Exclude Draft products in product select box."
997
+ msgstr ""
998
+
999
+ #: view/settings.php:432
1000
+ msgid "Performance settings"
1001
+ msgstr ""
1002
+
1003
+ #: view/settings.php:440
1004
+ msgid "Enable cache for variable products table content"
1005
  msgstr ""
1006
 
1007
+ #: view/settings.php:452 view/settings.php:456
1008
+ msgid "Clear cache"
 
 
1009
  msgstr ""
1010
 
1011
+ #: view/template/discount-table.php:22
1012
+ msgid "Range"
1013
+ msgstr ""
1014
+
1015
+ #: view/template/discount-table.php:56
1016
+ msgid "No Active Discounts."
1017
+ msgstr ""
1018
+
1019
+ #: view/template/sidebar.php:7
1020
+ msgid "Looking for more features? Upgrade to PRO"
1021
+ msgstr ""
1022
+
1023
+ #: view/view-cart-rules.php:54 view/view-pricing-rules.php:38
1024
+ msgid "Cancel and go back to list"
1025
+ msgstr ""
1026
+
1027
+ #: view/view-cart-rules.php:58
1028
+ msgid "New Cart Rule"
1029
+ msgstr ""
1030
+
1031
+ #: view/view-cart-rules.php:60
1032
+ msgid "Edit Cart Rule"
1033
+ msgstr ""
1034
+
1035
+ #: view/view-cart-rules.php:67 view/view-pricing-rules.php:51
1036
+ msgid "Order :"
1037
+ msgstr ""
1038
+
1039
+ #: view/view-cart-rules.php:69 view/view-pricing-rules.php:53
1040
+ msgid ""
1041
+ "The Simple Ranking concept to said, which one is going to execute first and "
1042
+ "so on."
1043
+ msgstr ""
1044
+
1045
+ #: view/view-cart-rules.php:76 view/view-pricing-rules.php:61
1046
+ msgid "WARNING: More than one rule should not have same priority."
1047
+ msgstr ""
1048
+
1049
+ #: view/view-cart-rules.php:82 view/view-pricing-rules.php:67
1050
+ msgid "Rule Name"
1051
+ msgstr ""
1052
+
1053
+ #: view/view-cart-rules.php:84 view/view-cart-rules.php:96
1054
+ #: view/view-pricing-rules.php:69 view/view-pricing-rules.php:81
1055
+ msgid "Rule Descriptions."
1056
+ msgstr ""
1057
+
1058
+ #: view/view-cart-rules.php:89 view/view-pricing-rules.php:74
1059
+ msgid "ex. Standard Rule."
1060
+ msgstr ""
1061
+
1062
+ #: view/view-cart-rules.php:94 view/view-pricing-rules.php:79
1063
+ msgid "Rule Description"
1064
+ msgstr ""
1065
+
1066
+ #: view/view-cart-rules.php:105 view/view-pricing-rules.php:115
1067
+ msgid "Validity"
1068
+ msgstr ""
1069
+
1070
+ #: view/view-cart-rules.php:106 view/view-pricing-rules.php:116
1071
+ msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
1072
+ msgstr ""
1073
+
1074
+ #: view/view-cart-rules.php:119 view/view-pricing-rules.php:129
1075
+ #: view/view-pricing-rules.php:513
1076
+ msgid "From"
1077
+ msgstr ""
1078
+
1079
+ #: view/view-cart-rules.php:123
1080
  msgid "To"
1081
  msgstr ""
1082
 
1083
+ #: view/view-cart-rules.php:128 view/view-cart-rules.php:544
1084
+ #: view/view-pricing-rules.php:137 view/view-pricing-rules.php:562
1085
+ msgid "Next"
1086
+ msgstr ""
1087
+
1088
+ #: view/view-cart-rules.php:132
1089
+ msgid "Cart Conditions"
1090
+ msgstr ""
1091
+
1092
+ #: view/view-cart-rules.php:135
1093
+ msgid "Add Condition"
1094
  msgstr ""
1095
 
1096
+ #: view/view-cart-rules.php:204
1097
+ msgid "Categories In Cart"
1098
+ msgstr ""
1099
+
1100
+ #: view/view-cart-rules.php:262 view/view-cart-rules.php:264
1101
+ msgid "Email with TLD (Eg: edu)"
1102
+ msgstr ""
1103
+
1104
+ #: view/view-cart-rules.php:524 view/view-pricing-rules.php:352
1105
  msgid "To get this condition work,"
1106
  msgstr ""
1107
 
1108
+ #: view/view-cart-rules.php:524 view/view-pricing-rules.php:352
1109
+ msgid "please change the option"
 
1110
  msgstr ""
1111
 
1112
+ #: view/view-cart-rules.php:524 view/view-pricing-rules.php:352
1113
+ msgid "Disable the rules while have coupon(Third party)"
 
1114
  msgstr ""
1115
 
1116
+ #: view/view-cart-rules.php:524 view/view-pricing-rules.php:352
1117
+ msgid "in cart to"
 
1118
  msgstr ""
1119
 
1120
+ #: view/view-cart-rules.php:543 view/view-cart-rules.php:603
1121
+ #: view/view-pricing-rules.php:561 view/view-pricing-rules.php:748
1122
+ msgid "Previous"
1123
  msgstr ""
1124
 
1125
+ #: view/view-cart-rules.php:565
1126
+ msgid "Discount Type :"
 
1127
  msgstr ""
1128
 
1129
+ #: view/view-cart-rules.php:584 view/view-cart-rules.php:586
1130
+ msgid "Free shipping"
 
 
1131
  msgstr ""
1132
 
1133
+ #: view/view-cart-rules.php:595
1134
+ msgid "value :"
1135
+ msgstr ""
1136
+
1137
+ #: view/view-pricing-rules.php:42
1138
+ msgid "New Price Rule"
1139
+ msgstr ""
1140
+
1141
+ #: view/view-pricing-rules.php:44
1142
+ msgid "Edit Price Rule"
1143
+ msgstr ""
1144
+
1145
+ #: view/view-pricing-rules.php:90
1146
+ msgid "Method"
1147
+ msgstr ""
1148
+
1149
+ #: view/view-pricing-rules.php:92
1150
+ msgid "Method to Apply."
1151
+ msgstr ""
1152
+
1153
+ #: view/view-pricing-rules.php:98
1154
+ msgid "Quantity based by product/category and BOGO deals"
1155
+ msgstr ""
1156
+
1157
+ #: view/view-pricing-rules.php:105 view/view-pricing-rules.php:107
1158
+ msgid "Dependant product based discount"
1159
+ msgstr ""
1160
+
1161
+ #: view/view-pricing-rules.php:133
1162
+ msgid "To - Leave Empty if No Expiry"
1163
+ msgstr ""
1164
+
1165
+ #: view/view-pricing-rules.php:142
1166
+ msgid "Discount Conditions"
1167
+ msgstr ""
1168
+
1169
+ #: view/view-pricing-rules.php:147
1170
+ msgid "Apply To"
1171
+ msgstr ""
1172
+
1173
+ #: view/view-pricing-rules.php:153
1174
+ msgid "All products"
1175
+ msgstr ""
1176
+
1177
+ #: view/view-pricing-rules.php:157
1178
+ msgid "Specific products"
1179
+ msgstr ""
1180
+
1181
+ #: view/view-pricing-rules.php:163 view/view-pricing-rules.php:165
1182
+ msgid "Specific categories"
1183
+ msgstr ""
1184
+
1185
+ #: view/view-pricing-rules.php:172 view/view-pricing-rules.php:174
1186
+ msgid "Specific attributes"
1187
+ msgstr ""
1188
+
1189
+ #: view/view-pricing-rules.php:185
1190
+ msgid "Check this box to count quantities cumulatively across products"
1191
+ msgstr ""
1192
+
1193
+ #: view/view-pricing-rules.php:197
1194
+ msgid "Check this box to count quantities cumulatively across category(ies)"
1195
+ msgstr ""
1196
+
1197
+ #: view/view-pricing-rules.php:200
1198
+ msgid "Check this box to apply child category(ies)"
1199
+ msgstr ""
1200
+
1201
+ #: view/view-pricing-rules.php:214
1202
+ msgid "Check this box to count quantities cumulatively across attribute"
1203
+ msgstr ""
1204
+
1205
+ #: view/view-pricing-rules.php:224
1206
+ msgid "Exclude products"
1207
+ msgstr ""
1208
+
1209
+ #: view/view-pricing-rules.php:243
1210
+ msgid "Exclude sale items"
1211
  msgstr ""
1212
 
1213
+ #: view/view-pricing-rules.php:248
1214
+ msgid "Check this box if the rule should not apply to items on sale."
1215
+ msgstr ""
1216
+
1217
+ #: view/view-pricing-rules.php:267
1218
+ msgid "Customers"
1219
+ msgstr ""
1220
+
1221
+ #: view/view-pricing-rules.php:272 view/view-pricing-rules.php:534
1222
+ msgid "All"
1223
+ msgstr ""
1224
+
1225
+ #: view/view-pricing-rules.php:279 view/view-pricing-rules.php:281
1226
+ msgid "Only Given"
1227
+ msgstr ""
1228
+
1229
+ #: view/view-pricing-rules.php:295
1230
  msgid "User roles"
1231
  msgstr ""
1232
 
1233
+ #: view/view-pricing-rules.php:300 view/view-pricing-rules.php:330
1234
+ #: view/view-pricing-rules.php:385 view/view-pricing-rules.php:428
1235
+ msgid "Do not use"
1236
  msgstr ""
1237
 
1238
+ #: view/view-pricing-rules.php:322
1239
+ msgid "Coupon"
 
 
1240
  msgstr ""
1241
 
1242
+ #: view/view-pricing-rules.php:331
1243
+ msgid "Apply if any one coupon applied"
 
 
 
1244
  msgstr ""
1245
 
1246
+ #: view/view-pricing-rules.php:332
1247
+ msgid "Apply if all coupon applied"
 
 
1248
  msgstr ""
1249
 
1250
+ #: view/view-pricing-rules.php:338
1251
+ msgid "Enter the coupon code separated by comma(,)"
 
 
1252
  msgstr ""
1253
 
1254
+ #: view/view-pricing-rules.php:342
1255
+ msgid "Make sure you have created the coupon already"
 
 
 
1256
  msgstr ""
1257
 
1258
+ #: view/view-pricing-rules.php:375
1259
+ msgid "Subtotal"
 
 
 
 
1260
  msgstr ""
1261
 
1262
+ #: view/view-pricing-rules.php:386
1263
+ msgid "Subtotal atleast"
 
 
1264
  msgstr ""
1265
 
1266
+ #: view/view-pricing-rules.php:391
1267
+ msgid "Enter the amount"
 
1268
  msgstr ""
1269
 
1270
+ #: view/view-pricing-rules.php:401
1271
+ msgid "Supported in WooCommerce 3.x"
 
1272
  msgstr ""
1273
 
1274
+ #: view/view-pricing-rules.php:430
1275
+ msgid "Number of orders"
 
1276
  msgstr ""
1277
 
1278
+ #: view/view-pricing-rules.php:431
1279
+ msgid "Purchased product"
 
1280
  msgstr ""
1281
 
1282
+ #: view/view-pricing-rules.php:505
1283
+ msgid "Any"
 
 
 
 
1284
  msgstr ""
1285
 
1286
+ #: view/view-pricing-rules.php:506
1287
+ msgid "Each"
 
1288
  msgstr ""
1289
 
1290
+ #: view/view-pricing-rules.php:507
1291
+ msgid "Combine"
 
 
1292
  msgstr ""
1293
 
1294
+ #: view/view-pricing-rules.php:510
1295
+ msgid "More than"
 
 
1296
  msgstr ""
1297
 
1298
+ #: view/view-pricing-rules.php:511
1299
+ msgid "Less than"
 
 
1300
  msgstr ""
1301
 
1302
+ #: view/view-pricing-rules.php:512
1303
+ msgid "Equal"
1304
+ msgstr ""
1305
+
1306
+ #: view/view-pricing-rules.php:515 view/view-pricing-rules.php:518
1307
+ #: view/view-pricing-rules.php:538
1308
+ msgid "Quantity"
1309
  msgstr ""
1310
 
1311
+ #: view/view-pricing-rules.php:517
 
1312
  msgid "to"
1313
  msgstr ""
1314
 
1315
+ #: view/view-pricing-rules.php:521
1316
+ msgid "Product(s) from"
1317
+ msgstr ""
1318
+
1319
+ #: view/view-pricing-rules.php:527
1320
+ msgid "Apply discount in product(s)"
1321
+ msgstr ""
1322
+
1323
+ #: view/view-pricing-rules.php:528
1324
+ msgid "Apply discount in category(ies)"
1325
+ msgstr ""
1326
+
1327
+ #: view/view-pricing-rules.php:532
1328
+ msgid "and get discount in "
1329
+ msgstr ""
1330
+
1331
+ #: view/view-pricing-rules.php:535
1332
+ msgid "First quantity(s)"
1333
+ msgstr ""
1334
+
1335
+ #: view/view-pricing-rules.php:536
1336
+ msgid "Skip first quantity(s)"
1337
+ msgstr ""
1338
+
1339
+ #: view/view-pricing-rules.php:541
1340
+ msgid " Product(s) "
1341
+ msgstr ""
1342
+
1343
+ #: view/view-pricing-rules.php:545
1344
+ msgid "Category(ies)"
1345
+ msgstr ""
1346
+
1347
+ #: view/view-pricing-rules.php:556
1348
+ msgid "Document for product dependent rules"
1349
+ msgstr ""
1350
+
1351
+ #: view/view-pricing-rules.php:572
1352
+ msgid "Add New Range"
1353
+ msgstr ""
1354
+
1355
+ #: view/view-pricing-rules.php:731
1356
+ msgid "Document to create perfect BOGO rules"
1357
+ msgstr ""
1358
+
1359
+ #: view/view-pricing-rules.php:741
1360
+ msgid "Percent"
1361
+ msgstr ""
1362
+
1363
+ #: view/view-pricing-rules.php:742
1364
+ msgid "Fixed"
1365
  msgstr ""
includes/cart-rules.php CHANGED
@@ -66,6 +66,8 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
66
  */
67
  public $matched_sets;
68
 
 
 
69
  public $postData;
70
 
71
  public static $rules_loaded = 0;
@@ -255,6 +257,9 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
255
  $this->applyRules();
256
  // Get Overall Discounts.
257
  $this->getDiscountAmount();
 
 
 
258
  // Add a Coupon Virtually (Temporary access).
259
  if(!$free_shipping_check)
260
  if ($this->discount_total != 0) {
@@ -523,6 +528,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
523
  $rule_sets[$index]['to_discount'] = (isset($rule->to_discount) ? $rule->to_discount : false);
524
  $rule_sets[$index]['enabled'] = $this->validateCart($rule_sets[$index]['discount_rule']);
525
  }
 
526
  $this->rule_sets = $rule_sets;
527
  }
528
 
@@ -653,6 +659,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
653
  }
654
 
655
  $this->discount_total = $discount;
 
656
  return $discounts;
657
  }
658
 
@@ -1067,6 +1074,8 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
1067
  if(!empty($rule)){
1068
  $ruleSuccess = $this->validateCartCouponAppliedAnyOne($index, $rule, $rules);
1069
  if($ruleSuccess){
 
 
1070
  return true;
1071
  }
1072
  }
@@ -1076,6 +1085,8 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
1076
  if(!empty($rule)){
1077
  $ruleSuccess = $this->validateCartCouponAppliedAllSelected($index, $rule, $rules);
1078
  if($ruleSuccess){
 
 
1079
  return true;
1080
  }
1081
  }
66
  */
67
  public $matched_sets;
68
 
69
+ public $matched_discounts;
70
+
71
  public $postData;
72
 
73
  public static $rules_loaded = 0;
257
  $this->applyRules();
258
  // Get Overall Discounts.
259
  $this->getDiscountAmount();
260
+
261
+ //run an event
262
+ do_action('woo_discount_rules_after_fetching_discount', $this);
263
  // Add a Coupon Virtually (Temporary access).
264
  if(!$free_shipping_check)
265
  if ($this->discount_total != 0) {
528
  $rule_sets[$index]['to_discount'] = (isset($rule->to_discount) ? $rule->to_discount : false);
529
  $rule_sets[$index]['enabled'] = $this->validateCart($rule_sets[$index]['discount_rule']);
530
  }
531
+ $rule_sets = apply_filters('woo_discount_rules_cart_rule_sets_to_apply', $rule_sets);
532
  $this->rule_sets = $rule_sets;
533
  }
534
 
659
  }
660
 
661
  $this->discount_total = $discount;
662
+ $this->matched_discounts = $discounts;
663
  return $discounts;
664
  }
665
 
1074
  if(!empty($rule)){
1075
  $ruleSuccess = $this->validateCartCouponAppliedAnyOne($index, $rule, $rules);
1076
  if($ruleSuccess){
1077
+ $coupons = explode(',', $rule);
1078
+ FlycartWooDiscountRulesGeneralHelper::removeCouponPriceInCart($coupons);
1079
  return true;
1080
  }
1081
  }
1085
  if(!empty($rule)){
1086
  $ruleSuccess = $this->validateCartCouponAppliedAllSelected($index, $rule, $rules);
1087
  if($ruleSuccess){
1088
+ $coupons = explode(',', $rule);
1089
+ FlycartWooDiscountRulesGeneralHelper::removeCouponPriceInCart($coupons);
1090
  return true;
1091
  }
1092
  }
includes/discount-base.php CHANGED
@@ -590,7 +590,7 @@ if (!class_exists('FlycartWooDiscountBase')) {
590
  $this->checkSubmission($request);
591
 
592
  // Adding Plugin Page Script
593
- $this->woo_discount_adminPageScript();
594
 
595
  // Loading Instance.
596
  $generalHelper = $this->getInstance('FlycartWooDiscountRulesGeneralHelper');
@@ -659,6 +659,8 @@ if (!class_exists('FlycartWooDiscountBase')) {
659
  case 'settings':
660
  $data = $this->getBaseConfig();
661
  break;
 
 
662
 
663
  // Managing View of Pricing Rules.
664
  case 'pricing-rules-new':
@@ -734,6 +736,7 @@ if (!class_exists('FlycartWooDiscountBase')) {
734
  $this->default_page => WOO_DISCOUNT_DIR . '/view/pricing-rules.php',
735
  'cart-rules' => WOO_DISCOUNT_DIR . '/view/cart-rules.php',
736
  'settings' => WOO_DISCOUNT_DIR . '/view/settings.php',
 
737
 
738
  // New Rule also access the same "View" to process
739
  'pricing-rules-new' => WOO_DISCOUNT_DIR . '/view/view-pricing-rules.php',
@@ -808,14 +811,14 @@ if (!class_exists('FlycartWooDiscountBase')) {
808
  wp_enqueue_script('jquery-ui-core');
809
  wp_enqueue_script('jquery-ui-datepicker');
810
  wp_enqueue_script( 'woocommerce_admin' );
 
811
 
812
- wp_enqueue_script('woo_discount_datetimepicker_js', WOO_DISCOUNT_URI . '/assets/js/bootstrap-datetimepicker.min.js', array(), WOO_DISCOUNT_VERSION);
813
  wp_enqueue_script('woo_discount_script', WOO_DISCOUNT_URI . '/assets/js/app.js', array(), WOO_DISCOUNT_VERSION);
814
  $localization_data = $this->getLocalizationData();
815
  wp_localize_script( 'woo_discount_script', 'woo_discount_localization', $localization_data);
816
 
817
  //To load woocommerce product select
818
- wp_enqueue_script( 'wc-enhanced-select' );
819
  wp_enqueue_style( 'woocommerce_admin_styles' );
820
  }
821
  }
590
  $this->checkSubmission($request);
591
 
592
  // Adding Plugin Page Script
593
+ //$this->woo_discount_adminPageScript();
594
 
595
  // Loading Instance.
596
  $generalHelper = $this->getInstance('FlycartWooDiscountRulesGeneralHelper');
659
  case 'settings':
660
  $data = $this->getBaseConfig();
661
  break;
662
+ case 'documentation':
663
+ break;
664
 
665
  // Managing View of Pricing Rules.
666
  case 'pricing-rules-new':
736
  $this->default_page => WOO_DISCOUNT_DIR . '/view/pricing-rules.php',
737
  'cart-rules' => WOO_DISCOUNT_DIR . '/view/cart-rules.php',
738
  'settings' => WOO_DISCOUNT_DIR . '/view/settings.php',
739
+ 'documentation' => WOO_DISCOUNT_DIR . '/view/documentation.php',
740
 
741
  // New Rule also access the same "View" to process
742
  'pricing-rules-new' => WOO_DISCOUNT_DIR . '/view/view-pricing-rules.php',
811
  wp_enqueue_script('jquery-ui-core');
812
  wp_enqueue_script('jquery-ui-datepicker');
813
  wp_enqueue_script( 'woocommerce_admin' );
814
+ wp_enqueue_script( 'wc-enhanced-select' );
815
 
816
+ wp_enqueue_script('woo_discount_datetimepicker_js', WOO_DISCOUNT_URI . '/assets/js/bootstrap-datetimepicker.min.js', array('woocommerce_admin', 'wc-enhanced-select'), WOO_DISCOUNT_VERSION, true);
817
  wp_enqueue_script('woo_discount_script', WOO_DISCOUNT_URI . '/assets/js/app.js', array(), WOO_DISCOUNT_VERSION);
818
  $localization_data = $this->getLocalizationData();
819
  wp_localize_script( 'woo_discount_script', 'woo_discount_localization', $localization_data);
820
 
821
  //To load woocommerce product select
 
822
  wp_enqueue_style( 'woocommerce_admin_styles' );
823
  }
824
  }
includes/pricing-rules.php CHANGED
@@ -38,6 +38,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
38
  * @var
39
  */
40
  public $matched_sets;
 
41
 
42
  /**
43
  * @var
@@ -841,11 +842,25 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
841
  // check for coupon
842
  if(isset($rule->coupons_to_apply_option)){
843
  $rule_sets[$index]['allow']['coupon'] = $this->checkWithCouponApplied($rule);
 
 
 
 
 
 
844
  }
845
  }
846
 
847
  // If Current Customer is not Allowed to use this discount, then it's going to be removed.
848
  if ($rule_sets[$index]['allow']['users'] == 'no' || !$rule_sets[$index]['allow']['user_role'] || $rule_sets[$index]['allow']['purchase_history'] == 'no' || !($rule_sets[$index]['allow']['coupon']) || !($rule_sets[$index]['allow']['subtotal'])) {
 
 
 
 
 
 
 
 
849
  unset($rule_sets[$index]);
850
  }
851
 
@@ -1261,6 +1276,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1261
  } else {
1262
  $this->matched_sets[$index] = $applied_rules;
1263
  }
 
1264
  }
1265
 
1266
  /**
@@ -1364,17 +1380,22 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1364
  }
1365
  }
1366
  $product_id_parent = $cartItem['product_id'];
 
 
 
 
 
1367
  if(isset(self::$product_categories[$product_id_parent])){
1368
  $terms = self::$product_categories[$product_id_parent];
1369
  } else {
1370
- $terms = get_the_terms( $product_id_parent, 'product_cat' );
1371
  self::$product_categories[$product_id_parent] = $terms;
1372
  }
1373
 
1374
  if($terms){
1375
  $has = 0;
1376
  foreach ($terms as $term) {
1377
- if(in_array($term->term_id, $category)){
1378
  $has = 1;
1379
  }
1380
  }
@@ -1672,7 +1693,12 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1672
  if(!$all){
1673
  if(empty($products)) return array();
1674
  }
1675
- $cheapestProductValue = 0;
 
 
 
 
 
1676
  $cart = FlycartWoocommerceCart::get_cart();
1677
  foreach ($cart as $cart_item_key => $values) {
1678
  $_product = $values['data'];
@@ -1681,8 +1707,16 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1681
  if(in_array($productId, $product_to_exclude)) continue;
1682
  }
1683
  if(!in_array($productId, $products) && !$all) continue;
 
 
 
 
 
 
 
 
1684
 
1685
- if($cheapestProductValue == 0){
1686
  $cheapestProductValue = FlycartWoocommerceProduct::get_price($_product);
1687
  $cheapestProduct = FlycartWoocommerceProduct::get_id($_product);
1688
  $cheapestProductCartItemKey = $cart_item_key;
@@ -2164,6 +2198,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2164
  }
2165
  }
2166
  }
 
2167
  if($status){
2168
  if ($rule->apply_to == 'specific_products') {
2169
 
@@ -2226,26 +2261,26 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2226
  }
2227
  }
2228
 
2229
- // check for subtotal
2230
- if(isset($rule->subtotal_to_apply_option)){
2231
- $is_woocommerce3 = FlycartWoocommerceVersion::isWCVersion3x();
2232
- if($is_woocommerce3){
2233
- $subtotalStatus = $this->checkSubtotalMatches($rule);
2234
- if(!$subtotalStatus){
2235
- $status = false;
2236
- }
2237
- }
2238
- }
2239
-
2240
- // check for COUPON
2241
- if(isset($rule->coupons_to_apply_option)){
2242
- $statusCoupon = $this->checkWithCouponApplied($rule);
2243
- if(!$statusCoupon){
2244
- $status = false;
2245
- }
2246
- }
2247
  }
2248
-
2249
  if ($status) {
2250
  $discount_range_data = (isset($rule->discount_range) ? json_decode($rule->discount_range) : array());
2251
  if(!empty($discount_range_data)){
@@ -2635,7 +2670,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2635
  $original_product = FlycartWoocommerceProduct::wc_get_product($product_id);
2636
 
2637
  //Check for wholesale price
2638
- $hasWholesalePrice = apply_filters('woo_discount_rules_has_price_override', false, $product);
2639
  if($hasWholesalePrice){
2640
  $price = FlycartWoocommerceProduct::get_price($product);
2641
  } else {
@@ -2654,6 +2689,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2654
  $discount = $discount['amount'];
2655
  }
2656
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $product, $product_page);//$price - $discount;
 
2657
  $log = 'Discount | ' . $discount;
2658
  $this->applyDiscount($cart_item_key, $amount, $log, $additionalDetails);
2659
  } else if ($type == 'biggest') {
@@ -2664,6 +2700,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2664
  $discount = $discount['amount'];
2665
  }
2666
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $product, $product_page);//$price - $discount;
 
2667
  $log = 'Discount | ' . $discount;
2668
  $this->applyDiscount($cart_item_key, $amount, $log, $additionalDetails);
2669
  } else {
@@ -2674,6 +2711,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2674
  $discount = $discount['amount'];
2675
  }
2676
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $product, $product_page);//$price - $discount;
 
2677
  $log = 'Discount | ' . $discount;
2678
  $this->applyDiscount($cart_item_key, $amount, $log, $additionalDetails);
2679
  }
@@ -2833,7 +2871,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2833
  $product_id = FlycartWoocommerceProduct::get_id($product);
2834
 
2835
  //Check for price get override
2836
- $hasWholesalePrice = apply_filters('woo_discount_rules_has_price_override', false, $product);
2837
  if($hasWholesalePrice){
2838
  $original_product = $product;
2839
  } else {
@@ -2848,6 +2886,19 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2848
  'additional_details' => $additionalDetails,
2849
  );
2850
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2851
  // Actually adjust price in cart
2852
  // $woocommerce->cart->cart_contents[$item]['data']->price = $amount;
2853
  FlycartWoocommerceProduct::set_price($product, $amount);
@@ -2919,6 +2970,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2919
  }
2920
  }
2921
  $new_price_to_display = $cart_item['woo_discount']['original_price'] - $additional_detail['discount_price'];
 
2922
  $new_price_to_display = FlycartWoocommerceProduct::wc_price($new_price_to_display);
2923
  $quantity -= $additional_detail['discount_quantity'];
2924
  $item_price .= '<div style="float: left;">';
@@ -3337,6 +3389,60 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
3337
  return $discountPrice;
3338
  }
3339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3340
  /**
3341
  * Get Quantity of product in cart
3342
  * */
@@ -3410,6 +3516,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
3410
  $this->products_has_discount[$product_id] = 1;
3411
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $cart_item, $product_page);//$price - $discount;
3412
  }
 
3413
 
3414
  return $amount;
3415
  }
38
  * @var
39
  */
40
  public $matched_sets;
41
+ public $matched_sets_for_product;
42
 
43
  /**
44
  * @var
842
  // check for coupon
843
  if(isset($rule->coupons_to_apply_option)){
844
  $rule_sets[$index]['allow']['coupon'] = $this->checkWithCouponApplied($rule);
845
+ if($rule_sets[$index]['allow']['coupon']){
846
+ if(!empty($rule->coupons_to_apply)){
847
+ $coupons = explode(',', $rule->coupons_to_apply);
848
+ FlycartWooDiscountRulesGeneralHelper::removeCouponPriceInCart($coupons);
849
+ }
850
+ }
851
  }
852
  }
853
 
854
  // If Current Customer is not Allowed to use this discount, then it's going to be removed.
855
  if ($rule_sets[$index]['allow']['users'] == 'no' || !$rule_sets[$index]['allow']['user_role'] || $rule_sets[$index]['allow']['purchase_history'] == 'no' || !($rule_sets[$index]['allow']['coupon']) || !($rule_sets[$index]['allow']['subtotal'])) {
856
+ $failed_due_to = array(
857
+ 'user' => ($rule_sets[$index]['allow']['users'] == 'no')? false: true,
858
+ 'purchase_history' => ($rule_sets[$index]['allow']['purchase_history'] == 'no')? false: true,
859
+ 'user_role' => ($rule_sets[$index]['allow']['user_role'])? true: false,
860
+ 'coupon' => ($rule_sets[$index]['allow']['coupon'])? true: false,
861
+ 'subtotal' => ($rule_sets[$index]['allow']['subtotal'])? true: false,
862
+ );
863
+ do_action('woo_discount_rules_failed_to_apply', $rule, $failed_due_to);
864
  unset($rule_sets[$index]);
865
  }
866
 
1276
  } else {
1277
  $this->matched_sets[$index] = $applied_rules;
1278
  }
1279
+ $this->matched_sets_for_product = $this->matched_sets;
1280
  }
1281
 
1282
  /**
1380
  }
1381
  }
1382
  $product_id_parent = $cartItem['product_id'];
1383
+ if(!$product_id_parent){
1384
+ if(isset($cartItem['variation_id'])){
1385
+ $product_id_parent = $cartItem['variation_id'];
1386
+ }
1387
+ }
1388
  if(isset(self::$product_categories[$product_id_parent])){
1389
  $terms = self::$product_categories[$product_id_parent];
1390
  } else {
1391
+ $terms = FlycartWoocommerceProduct::get_category_ids(FlycartWoocommerceProduct::wc_get_product($product_id_parent));
1392
  self::$product_categories[$product_id_parent] = $terms;
1393
  }
1394
 
1395
  if($terms){
1396
  $has = 0;
1397
  foreach ($terms as $term) {
1398
+ if(in_array($term, $category)){
1399
  $has = 1;
1400
  }
1401
  }
1693
  if(!$all){
1694
  if(empty($products)) return array();
1695
  }
1696
+ $donot_apply_for_free_product = apply_filters('woo_discount_rules_do_not_apply_discount_for_free_product', true);
1697
+ if($donot_apply_for_free_product){
1698
+ $check_cheapestProductValue = $cheapestProductValue = 0;
1699
+ } else {
1700
+ $check_cheapestProductValue = $cheapestProductValue = -1;
1701
+ }
1702
  $cart = FlycartWoocommerceCart::get_cart();
1703
  foreach ($cart as $cart_item_key => $values) {
1704
  $_product = $values['data'];
1707
  if(in_array($productId, $product_to_exclude)) continue;
1708
  }
1709
  if(!in_array($productId, $products) && !$all) continue;
1710
+ $skip_free_product = apply_filters('woo_discount_rules_skip_discount_for_free_product', false, $values);
1711
+ if($skip_free_product){
1712
+ $reduce_quantity = apply_filters('woo_discount_rules_reduce_qty_skip_discount_for_free_product', false, $values);
1713
+ if($reduce_quantity){
1714
+ $discount_quantity -= (int)$reduce_quantity;
1715
+ }
1716
+ continue;
1717
+ }
1718
 
1719
+ if($cheapestProductValue == $check_cheapestProductValue){
1720
  $cheapestProductValue = FlycartWoocommerceProduct::get_price($_product);
1721
  $cheapestProduct = FlycartWoocommerceProduct::get_id($_product);
1722
  $cheapestProductCartItemKey = $cart_item_key;
2198
  }
2199
  }
2200
  }
2201
+ $status = apply_filters('woo_discount_rules_rule_matches_to_display_in_table', $status, $product, $rule);
2202
  if($status){
2203
  if ($rule->apply_to == 'specific_products') {
2204
 
2261
  }
2262
  }
2263
 
2264
+ // // check for subtotal
2265
+ // if(isset($rule->subtotal_to_apply_option)){
2266
+ // $is_woocommerce3 = FlycartWoocommerceVersion::isWCVersion3x();
2267
+ // if($is_woocommerce3){
2268
+ // $subtotalStatus = $this->checkSubtotalMatches($rule);
2269
+ // if(!$subtotalStatus){
2270
+ // $status = false;
2271
+ // }
2272
+ // }
2273
+ // }
2274
+ //
2275
+ // // check for COUPON
2276
+ // if(isset($rule->coupons_to_apply_option)){
2277
+ // $statusCoupon = $this->checkWithCouponApplied($rule);
2278
+ // if(!$statusCoupon){
2279
+ // $status = false;
2280
+ // }
2281
+ // }
2282
  }
2283
+ $status = apply_filters('woo_discount_rules_rule_matches_to_display_in_table', $status, $product, $rule);
2284
  if ($status) {
2285
  $discount_range_data = (isset($rule->discount_range) ? json_decode($rule->discount_range) : array());
2286
  if(!empty($discount_range_data)){
2670
  $original_product = FlycartWoocommerceProduct::wc_get_product($product_id);
2671
 
2672
  //Check for wholesale price
2673
+ $hasWholesalePrice = apply_filters('woo_discount_rules_has_price_override', false, $product, 'on_calculate_discount', $woocommerce->cart->cart_contents[$cart_item_key]);
2674
  if($hasWholesalePrice){
2675
  $price = FlycartWoocommerceProduct::get_price($product);
2676
  } else {
2689
  $discount = $discount['amount'];
2690
  }
2691
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $product, $product_page);//$price - $discount;
2692
+ if($amount < 0) $amount = 0;
2693
  $log = 'Discount | ' . $discount;
2694
  $this->applyDiscount($cart_item_key, $amount, $log, $additionalDetails);
2695
  } else if ($type == 'biggest') {
2700
  $discount = $discount['amount'];
2701
  }
2702
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $product, $product_page);//$price - $discount;
2703
+ if($amount < 0) $amount = 0;
2704
  $log = 'Discount | ' . $discount;
2705
  $this->applyDiscount($cart_item_key, $amount, $log, $additionalDetails);
2706
  } else {
2711
  $discount = $discount['amount'];
2712
  }
2713
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $product, $product_page);//$price - $discount;
2714
+ if($amount < 0) $amount = 0;
2715
  $log = 'Discount | ' . $discount;
2716
  $this->applyDiscount($cart_item_key, $amount, $log, $additionalDetails);
2717
  }
2871
  $product_id = FlycartWoocommerceProduct::get_id($product);
2872
 
2873
  //Check for price get override
2874
+ $hasWholesalePrice = apply_filters('woo_discount_rules_has_price_override', false, $product, 'on_apply_discount', $woocommerce->cart->cart_contents[$item]);
2875
  if($hasWholesalePrice){
2876
  $original_product = $product;
2877
  } else {
2886
  'additional_details' => $additionalDetails,
2887
  );
2888
 
2889
+ global $WOOCS;
2890
+ if(isset($WOOCS)){
2891
+ if (method_exists($WOOCS, 'get_currencies')){
2892
+ $currencies = $WOOCS->get_currencies();
2893
+ $is_geoip_manipulation = $WOOCS->is_geoip_manipulation;
2894
+ $woocs_is_fixed_enabled = $WOOCS->is_fixed_enabled;
2895
+ //woocs_is_geoip_manipulation //woocs_is_fixed_enabled
2896
+ if($is_geoip_manipulation || $woocs_is_fixed_enabled){
2897
+ $amount = $amount / $currencies[$WOOCS->current_currency]['rate'];
2898
+ }
2899
+ }
2900
+ }
2901
+
2902
  // Actually adjust price in cart
2903
  // $woocommerce->cart->cart_contents[$item]['data']->price = $amount;
2904
  FlycartWoocommerceProduct::set_price($product, $amount);
2970
  }
2971
  }
2972
  $new_price_to_display = $cart_item['woo_discount']['original_price'] - $additional_detail['discount_price'];
2973
+ if($new_price_to_display < 0) $new_price_to_display = 0;
2974
  $new_price_to_display = FlycartWoocommerceProduct::wc_price($new_price_to_display);
2975
  $quantity -= $additional_detail['discount_quantity'];
2976
  $item_price .= '<div style="float: left;">';
3389
  return $discountPrice;
3390
  }
3391
 
3392
+ /**
3393
+ * To check discount for this product or not
3394
+ * */
3395
+ public function getDiscountPriceOfProduct($product, $variationPrice = 0){
3396
+ global $flycart_woo_discount_rules;
3397
+ remove_action('woocommerce_before_calculate_totals', array($flycart_woo_discount_rules, 'applyDiscountRules'), 1000);
3398
+ $discountPrice = null;
3399
+ $product_id = FlycartWoocommerceProduct::get_id($product);
3400
+ $item['product_id'] = $product_id;
3401
+ $item['data'] = $product;
3402
+ $qty = 1;
3403
+ $cart = FlycartWoocommerceCart::get_cart();
3404
+ foreach ( $cart as $cart_item ) {
3405
+ if($cart_item['product_id'] == $product_id ){
3406
+ $qty = $cart_item['quantity'];
3407
+ break; // stop the loop if product is found
3408
+ }
3409
+ }
3410
+ $item['quantity'] = $qty;
3411
+
3412
+ // To display the strike out price in product page for variant (specific attribute rule)
3413
+ if($product->get_type() == 'variation'){
3414
+ $variationPrice = $product->get_price();
3415
+ if(FlycartWoocommerceVersion::wcVersion('3.1.0')){
3416
+ $p_data = $product->get_data();
3417
+ if(!empty($p_data['attributes'])){
3418
+ $attr = array();
3419
+ foreach ($p_data['attributes'] as $key => $value){
3420
+ $attr['attribute_'.$key] = $value;
3421
+ }
3422
+ $item['variation'] = $attr;
3423
+ $item['variation_id'] = $product_id;
3424
+ }
3425
+ } else {
3426
+ $item['variation'] = $product->get_variation_attributes();
3427
+ $item['variation_id'] = $product_id;
3428
+ }
3429
+ }
3430
+
3431
+ global $woocommerce;
3432
+ $this->analyse($woocommerce, 1);
3433
+ $this->matched_sets_for_product = array();
3434
+ $this->matchRules($product_id, $item, 1);
3435
+ if(isset($this->matched_sets_for_product[$product_id]) && !empty($this->matched_sets_for_product[$product_id])){
3436
+ if($variationPrice){
3437
+ $discountPrice = $this->getAdjustmentDiscountedPrice($product, $product_id, $this->apply_to, $variationPrice);
3438
+ } else {
3439
+ $discountPrice = $this->getAdjustmentDiscountedPrice($product, $product_id, $this->apply_to);
3440
+ }
3441
+ }
3442
+ add_action('woocommerce_before_calculate_totals', array($flycart_woo_discount_rules, 'applyDiscountRules'), 1000);
3443
+ return $discountPrice;
3444
+ }
3445
+
3446
  /**
3447
  * Get Quantity of product in cart
3448
  * */
3516
  $this->products_has_discount[$product_id] = 1;
3517
  $amount = apply_filters('woo_discount_rules_price_rule_final_amount_applied', $price - $discount, $price, $discount, $additionalDetails, $cart_item, $product_page);//$price - $discount;
3518
  }
3519
+ if($amount < 0) $amount = 0;
3520
 
3521
  return $amount;
3522
  }
loader.php CHANGED
@@ -116,6 +116,7 @@ if(!class_exists('FlycartWooDiscountRules')){
116
  add_action('wp_ajax_RemoveRule', array($this->discountBase, 'removeRule'));
117
  add_action('wp_ajax_doBulkAction', array($this->discountBase, 'doBulkAction'));
118
  add_action('wp_ajax_createDuplicateRule', array($this->discountBase, 'createDuplicateRule'));
 
119
  }
120
 
121
  /**
116
  add_action('wp_ajax_RemoveRule', array($this->discountBase, 'removeRule'));
117
  add_action('wp_ajax_doBulkAction', array($this->discountBase, 'doBulkAction'));
118
  add_action('wp_ajax_createDuplicateRule', array($this->discountBase, 'createDuplicateRule'));
119
+ add_action('admin_enqueue_scripts', array($this->discountBase, 'woo_discount_adminPageScript') );
120
  }
121
 
122
  /**
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, pricing deals
5
  Requires at least: 4.4.1
6
  Tested up to: 4.9
7
- Stable tag: 1.6.12
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -308,11 +308,37 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
308
 
309
  == Changelog ==
310
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
  = 1.6.12 - 21/08/18 =
312
  * Feature - Option to load ajax strike out for variable products from session storage for the second time(For improve performance while have more combination of variants)
313
  * Improvement - filter woo_discount_rules_price_rule_check_in_all_selected_attributes to handle add operation for specific attributes
314
  * Improvement - Settings page UI
315
- * Fix - In sart rules customer shipping code is not save if we choose as first element
316
  * Fix - Strike out in cart while displaying price excluding tax and the price entered by including tax
317
  * Fix - Applying BOGO for multiple product in cart strikeout for guest user
318
 
4
  Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts, pricing deals
5
  Requires at least: 4.4.1
6
  Tested up to: 4.9
7
+ Stable tag: 1.6.14
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
308
 
309
  == Changelog ==
310
 
311
+ = 1.6.14 - 18/09/18 =
312
+ * Fix - PHP 5.3 compatible fatal error while activate
313
+ * Fix - Conflict with js because of loading wc-enhanced-select in footer
314
+ * Fix - Error for variable product while choose cumulative category
315
+ * Improvement - Woocommerce currency switcher compatible
316
+ * Improvement - Function to get the discounts for the product
317
+ * Improvement - Events do_action('woo_discount_rules_after_fetching_discount', $this);, apply_filters('woo_discount_rules_cart_rule_sets_to_apply', $rule_sets); to find matching cart based rules
318
+
319
+
320
+ = 1.6.13 - 10/09/18 =
321
+ * Fix - Apply discount in minus value
322
+ * Fix - Made subtotal compatible for woocommerce v3.0.8
323
+ * Feature - Option to handle multiple taxonomy in category through hooks
324
+ * Feature - Option to remove price zero for coupon based rules
325
+ * Feature - Option to enable/disable the range and discount column from discount table
326
+ * Improvement - Added class in the discount table
327
+ * Improvement - Additional params for the hook woo_discount_rules_has_price_override and woo_discount_rules_has_price_override
328
+ * Improvement - Added hook apply_filters('woo_discount_rules_do_not_apply_discount_for_free_product', true);
329
+ * Improvement - Added hook apply_filters('woo_discount_rules_reduce_qty_skip_discount_for_free_product', false, $values);
330
+ * Improvement - Added hook apply_filters('woo_discount_rules_apply_style_for_zero_price_coupon', $style, $coupon); to change style of zero value coupon price
331
+ * Improvement - Added hook apply_filters('woo_discount_rules_rule_matches_to_display_in_table', $status, $product, $rule); to display the rule in table even the rule doesn't matches.
332
+ * Improvement - Removed checking subtotal and coupon based rule while loading table
333
+ * Improvement - UI for display documentation for pro version.
334
+ * Improvement - Localization improvement.
335
+
336
+
337
  = 1.6.12 - 21/08/18 =
338
  * Feature - Option to load ajax strike out for variable products from session storage for the second time(For improve performance while have more combination of variants)
339
  * Improvement - filter woo_discount_rules_price_rule_check_in_all_selected_attributes to handle add operation for specific attributes
340
  * Improvement - Settings page UI
341
+ * Fix - In cart rules customer shipping code is not save if we choose as first element
342
  * Fix - Strike out in cart while displaying price excluding tax and the price entered by including tax
343
  * Fix - Applying BOGO for multiple product in cart strikeout for guest user
344
 
view/documentation.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (!defined('ABSPATH')) exit; // Exit if accessed directly
3
+
4
+ $active = 'settings';
5
+ include_once(WOO_DISCOUNT_DIR . '/view/includes/header.php');
6
+ include_once(WOO_DISCOUNT_DIR . '/view/includes/menu.php');
7
+
8
+ $data = $config;
9
+
10
+ if (is_string($data)) $data = json_decode($data, true);
11
+ $flycartWooDiscountRulesPurchase = new FlycartWooDiscountRulesPurchase();
12
+ $isPro = $flycartWooDiscountRulesPurchase->isPro();
13
+ ?>
14
+
15
+ <div class="container-fluid woo_discount_loader_outer">
16
+ <div class="row-fluid">
17
+ <div class="<?php echo $isPro? 'col-md-12': 'col-md-8'; ?>">
18
+ <div class="row form-group">
19
+ <div class="col-md-12">
20
+ <br/>
21
+ <h4><?php esc_html_e('Documentation', 'woo-discount-rules'); ?></h4>
22
+ <hr>
23
+ </div>
24
+ </div>
25
+ <div class="row form-group enable_variable_product_cache_con">
26
+ <div class="col-md-12">
27
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/getting-started', 'getting_started', esc_html__('Getting started', 'woo-discount-rules'), esc_html__('Welcome onboard', 'woo-discount-rules')); ?>
28
+ </div>
29
+ <div class="col-md-12">
30
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/price-discount-rules', 'price_rules', esc_html__('Price Discount Rules', 'woo-discount-rules'), esc_html__('Learn all about creating a price discount rules', 'woo-discount-rules')); ?>
31
+ </div>
32
+ <div class="col-md-12">
33
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/cart-discount-rules', 'cart_rules', esc_html__('Cart Discount Rules', 'woo-discount-rules'), esc_html__('Cart based discount rules with examples.', 'woo-discount-rules')); ?>
34
+ </div>
35
+ <div class="col-md-12">
36
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('buy-one-get-one-deals/how-to-create-a-perfect-bogo-discount-rule-in-woocommerce', 'perfect_bogo', esc_html__('How to create a perfect BOGO discount rule in WooCommerce', 'woo-discount-rules'), esc_html__('Buy One Get One deals can be simple to complex. Learn how to get them working correct in your online store', 'woo-discount-rules')); ?>
37
+ </div>
38
+ <div class="col-md-12">
39
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('role-based-discounts/user-role-based-discount-rules', 'role_based', esc_html__('User Role based discount rules', 'woo-discount-rules'), esc_html__('Learn how to create user role based / customer group based discount in WooCommerce', 'woo-discount-rules')); ?>
40
+ </div>
41
+ <div class="col-md-12">
42
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('coupon-based-discounts/activate-discount-rule-using-a-coupon-code-in-woocommerce', 'coupon_based', esc_html__('Activate discount rule using a coupon code in WooCommerce', 'woo-discount-rules'), esc_html__('Apply the dynamic discount rules after the customer enters a valid coupon code', 'woo-discount-rules')); ?>
43
+ </div>
44
+ <div class="col-md-12">
45
+ <?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('purchase-history-based-discounts/purchase-history-based-discount', 'purchase_history', esc_html__('Purchase History Based Discount', 'woo-discount-rules'), esc_html__('Price Rule and Cart Rule which gives discount based on the purchase history', 'woo-discount-rules')); ?>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <?php if(!$isPro){ ?>
50
+ <div class="col-md-1"></div>
51
+ <!-- Sidebar -->
52
+ <?php include_once(__DIR__ . '/template/sidebar.php'); ?>
53
+ <!-- Sidebar END -->
54
+ <?php } ?>
55
+ </div>
56
+ <div class="woo_discount_loader">
57
+ <div class="lds-ripple"><div></div><div></div></div>
58
+ </div>
59
+ </div>
view/includes/menu.php CHANGED
@@ -1,6 +1,7 @@
1
  <?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?>
2
  <?php
3
  $proText = $purchase->getProText();
 
4
  ?>
5
  <i><h2><?php esc_html_e('Woo Discount Rules', 'woo-discount-rules'); ?> <?php echo $proText; ?> <span class="woo-discount-version">v<?php echo WOO_DISCOUNT_VERSION; ?></span></h2></i><hr>
6
  <h3 class="nav-tab-wrapper">
@@ -10,4 +11,10 @@ $proText = $purchase->getProText();
10
  <i class="fa fa-shopping-cart" style="font-size: 0.8em;"></i> &nbsp;<?php esc_html_e('Cart Discount Rules', 'woo-discount-rules'); ?> </a>
11
  <a class="nav-tab <?php if ($active == 'settings') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&amp;tab=settings">
12
  <i class="fa fa-cogs" style="font-size: 0.8em;"></i> &nbsp;<?php esc_html_e('Settings', 'woo-discount-rules'); ?> </a>
 
 
 
 
 
 
13
  </h3>
1
  <?php if (!defined('ABSPATH')) exit; // Exit if accessed directly ?>
2
  <?php
3
  $proText = $purchase->getProText();
4
+ $isPro = $purchase->isPro();
5
  ?>
6
  <i><h2><?php esc_html_e('Woo Discount Rules', 'woo-discount-rules'); ?> <?php echo $proText; ?> <span class="woo-discount-version">v<?php echo WOO_DISCOUNT_VERSION; ?></span></h2></i><hr>
7
  <h3 class="nav-tab-wrapper">
11
  <i class="fa fa-shopping-cart" style="font-size: 0.8em;"></i> &nbsp;<?php esc_html_e('Cart Discount Rules', 'woo-discount-rules'); ?> </a>
12
  <a class="nav-tab <?php if ($active == 'settings') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&amp;tab=settings">
13
  <i class="fa fa-cogs" style="font-size: 0.8em;"></i> &nbsp;<?php esc_html_e('Settings', 'woo-discount-rules'); ?> </a>
14
+ <?php if($isPro){
15
+ ?>
16
+ <a class="nav-tab <?php if ($active == 'settings') { echo 'nav-tab-active'; } ?> btn-success" href="?page=woo_discount_rules&amp;tab=documentation">
17
+ &nbsp;<?php esc_html_e('Documentation', 'woo-discount-rules'); ?> </a>
18
+ <?php
19
+ } ?>
20
  </h3>
view/settings.php CHANGED
@@ -107,6 +107,20 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
107
  <label><input type="radio" name="do_not_run_while_have_third_party_coupon" value="0" <?php echo ($data['do_not_run_while_have_third_party_coupon'] == 0)? 'checked': '' ?> /> <?php esc_html_e('No', 'woo-discount-rules'); ?></label>
108
  </div>
109
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  </div>
111
  </div>
112
  <div id="wdr_s_price_rules" class="tab-pane fade">
@@ -211,7 +225,7 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
211
  <?php $data['show_discount_title_table'] = (isset($data['show_discount_title_table']) ? $data['show_discount_title_table'] : 'show'); ?>
212
  <div class="col-md-2">
213
  <label>
214
- <?php esc_html_e('Show Discount Title on Table :', 'woo-discount-rules'); ?>
215
  </label>
216
  </div>
217
  <div class="col-md-6">
@@ -225,6 +239,42 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
225
  </select>
226
  </div>
227
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
  <div class="row form-group">
229
  <div class="col-md-2">
230
  <label>
@@ -411,6 +461,7 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
411
  </div>
412
  </div>
413
  <input type="hidden" id="ajax_path" value="<?php echo admin_url('admin-ajax.php') ?>">
 
414
  </div>
415
  <?php if(!$isPro){ ?>
416
  <div class="col-md-1"></div>
@@ -418,7 +469,6 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
418
  <?php include_once(__DIR__ . '/template/sidebar.php'); ?>
419
  <!-- Sidebar END -->
420
  <?php } ?>
421
- </form>
422
  </div>
423
  <div class="woo_discount_loader">
424
  <div class="lds-ripple"><div></div><div></div></div>
107
  <label><input type="radio" name="do_not_run_while_have_third_party_coupon" value="0" <?php echo ($data['do_not_run_while_have_third_party_coupon'] == 0)? 'checked': '' ?> /> <?php esc_html_e('No', 'woo-discount-rules'); ?></label>
108
  </div>
109
  </div>
110
+ <?php if($isPro){ ?>
111
+ <div class="row form-group">
112
+ <div class="col-md-2">
113
+ <label>
114
+ <?php esc_html_e('Hide $0.00 (zero value) of coupon codes in the totals column. Useful when a coupon used with discount rule conditions', 'woo-discount-rules'); ?>
115
+ </label>
116
+ </div>
117
+ <?php $data['remove_zero_coupon_price'] = (isset($data['remove_zero_coupon_price']) ? $data['remove_zero_coupon_price'] : 0); ?>
118
+ <div class="col-md-6">
119
+ <label><input type="radio" name="remove_zero_coupon_price" value="1" <?php echo ($data['remove_zero_coupon_price'] == 1)? 'checked': '' ?>/> <?php esc_html_e('Yes', 'woo-discount-rules'); ?></label>
120
+ <label><input type="radio" name="remove_zero_coupon_price" value="0" <?php echo ($data['remove_zero_coupon_price'] == 0)? 'checked': '' ?> /> <?php esc_html_e('No', 'woo-discount-rules'); ?></label>
121
+ </div>
122
+ </div>
123
+ <?php } ?>
124
  </div>
125
  </div>
126
  <div id="wdr_s_price_rules" class="tab-pane fade">
225
  <?php $data['show_discount_title_table'] = (isset($data['show_discount_title_table']) ? $data['show_discount_title_table'] : 'show'); ?>
226
  <div class="col-md-2">
227
  <label>
228
+ <?php esc_html_e('Show column title on table :', 'woo-discount-rules'); ?>
229
  </label>
230
  </div>
231
  <div class="col-md-6">
239
  </select>
240
  </div>
241
  </div>
242
+ <div class="row form-group">
243
+ <?php $data['show_column_range_table'] = (isset($data['show_column_range_table']) ? $data['show_column_range_table'] : 'show'); ?>
244
+ <div class="col-md-2">
245
+ <label>
246
+ <?php esc_html_e('Show column discount range on table :', 'woo-discount-rules'); ?>
247
+ </label>
248
+ </div>
249
+ <div class="col-md-6">
250
+ <select class="selectpicker" name="show_column_range_table">
251
+ <option <?php if ($data['show_column_range_table'] == 'show') { ?> selected=selected <?php } ?>
252
+ value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
253
+ </option>
254
+ <option <?php if ($data['show_column_range_table'] == 'dont') { ?> selected=selected <?php } ?>
255
+ value="dont"><?php esc_html_e("Don't Show", 'woo-discount-rules'); ?>
256
+ </option>
257
+ </select>
258
+ </div>
259
+ </div>
260
+ <div class="row form-group">
261
+ <?php $data['show_column_discount_table'] = (isset($data['show_column_discount_table']) ? $data['show_column_discount_table'] : 'show'); ?>
262
+ <div class="col-md-2">
263
+ <label>
264
+ <?php esc_html_e('Show column discount on table :', 'woo-discount-rules'); ?>
265
+ </label>
266
+ </div>
267
+ <div class="col-md-6">
268
+ <select class="selectpicker" name="show_column_discount_table">
269
+ <option <?php if ($data['show_column_discount_table'] == 'show') { ?> selected=selected <?php } ?>
270
+ value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
271
+ </option>
272
+ <option <?php if ($data['show_column_discount_table'] == 'dont') { ?> selected=selected <?php } ?>
273
+ value="dont"><?php esc_html_e("Don't Show", 'woo-discount-rules'); ?>
274
+ </option>
275
+ </select>
276
+ </div>
277
+ </div>
278
  <div class="row form-group">
279
  <div class="col-md-2">
280
  <label>
461
  </div>
462
  </div>
463
  <input type="hidden" id="ajax_path" value="<?php echo admin_url('admin-ajax.php') ?>">
464
+ </form>
465
  </div>
466
  <?php if(!$isPro){ ?>
467
  <div class="col-md-1"></div>
469
  <?php include_once(__DIR__ . '/template/sidebar.php'); ?>
470
  <!-- Sidebar END -->
471
  <?php } ?>
 
472
  </div>
473
  <div class="woo_discount_loader">
474
  <div class="lds-ripple"><div></div><div></div></div>
view/template/discount-table.php CHANGED
@@ -8,18 +8,22 @@
8
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
9
  if (!isset($table_data) || empty($table_data)) return false;
10
  $base_config = (is_string($data)) ? json_decode($data, true) : (is_array($data) ? $data : array());
 
 
 
11
  ?>
12
- <table>
13
  <thead>
14
- <tr>
15
- <?php if (isset($base_config['show_discount_title_table'])) {
16
- if ($base_config['show_discount_title_table'] == 'show') {
17
- ?>
18
- <td><?php esc_html_e('Name', 'woo-discount-rules'); ?></td>
19
- <?php }
20
- } ?>
21
- <td><?php esc_html_e('Range', 'woo-discount-rules'); ?></td>
22
- <td><?php esc_html_e('Discount', 'woo-discount-rules'); ?></td>
 
23
  </tr>
24
  </thead>
25
  <tbody>
@@ -30,15 +34,16 @@ $base_config = (is_string($data)) ? json_decode($data, true) : (is_array($data)
30
  if ($item) {
31
  foreach ($item as $id => $value) {
32
  ?>
33
- <tr>
34
- <?php if (isset($base_config['show_discount_title_table'])) {
35
- if ($base_config['show_discount_title_table'] == 'show') {
36
- ?>
37
- <td><?php echo $table_data_content[$index.$id]['title']; ?></td>
38
- <?php }
39
- } ?>
40
- <td><?php echo $table_data_content[$index.$id]['condition']; ?></td>
41
- <td><?php echo $table_data_content[$index.$id]['discount']; ?></td>
 
42
  </tr>
43
  <?php }
44
  $have_discount = true;
@@ -46,12 +51,12 @@ $base_config = (is_string($data)) ? json_decode($data, true) : (is_array($data)
46
  }
47
  if (!$have_discount) {
48
  ?>
49
- <tr>
50
  <td colspan="2">
51
  <?php esc_html_e('No Active Discounts.', 'woo-discount-rules'); ?>
52
  </td>
53
  </tr>
54
- <?php
55
  }
56
  ?>
57
  </tbody>
8
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
9
  if (!isset($table_data) || empty($table_data)) return false;
10
  $base_config = (is_string($data)) ? json_decode($data, true) : (is_array($data) ? $data : array());
11
+ $show_discount_title_table = isset($base_config['show_discount_title_table'])? $base_config['show_discount_title_table']: 'show';
12
+ $show_column_range_table = isset($base_config['show_column_range_table'])? $base_config['show_column_range_table']: 'show';
13
+ $show_column_discount_table = isset($base_config['show_column_discount_table'])? $base_config['show_column_discount_table']: 'show';
14
  ?>
15
+ <table class="woo_discount_rules_table">
16
  <thead>
17
+ <tr class="wdr_tr_head">
18
+ <?php if ($show_discount_title_table == 'show') { ?>
19
+ <td class="wdr_td_head_title"><?php esc_html_e('Name', 'woo-discount-rules'); ?></td>
20
+ <?php } ?>
21
+ <?php if ($show_column_range_table == 'show') { ?>
22
+ <td class="wdr_td_head_range"><?php esc_html_e('Range', 'woo-discount-rules'); ?></td>
23
+ <?php } ?>
24
+ <?php if ($show_column_discount_table == 'show') { ?>
25
+ <td class="wdr_td_head_discount"><?php esc_html_e('Discount', 'woo-discount-rules'); ?></td>
26
+ <?php } ?>
27
  </tr>
28
  </thead>
29
  <tbody>
34
  if ($item) {
35
  foreach ($item as $id => $value) {
36
  ?>
37
+ <tr class="wdr_tr_body">
38
+ <?php if ($show_discount_title_table == 'show') { ?>
39
+ <td class="wdr_td_body_title"><?php echo $table_data_content[$index.$id]['title']; ?></td>
40
+ <?php } ?>
41
+ <?php if ($show_column_range_table == 'show') { ?>
42
+ <td class="wdr_td_body_range"><?php echo $table_data_content[$index.$id]['condition']; ?></td>
43
+ <?php } ?>
44
+ <?php if ($show_column_discount_table == 'show') { ?>
45
+ <td class="wdr_td_body_discount"><?php echo $table_data_content[$index.$id]['discount']; ?></td>
46
+ <?php } ?>
47
  </tr>
48
  <?php }
49
  $have_discount = true;
51
  }
52
  if (!$have_discount) {
53
  ?>
54
+ <tr class="wdr_tr_body_no_discount">
55
  <td colspan="2">
56
  <?php esc_html_e('No Active Discounts.', 'woo-discount-rules'); ?>
57
  </td>
58
  </tr>
59
+ <?php
60
  }
61
  ?>
62
  </tbody>
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.6.12
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Domain Path: /i18n/languages/
5
  * Description: Simple Discount Rules for WooCommerce.
6
  * Author: Flycart Technologies LLP
7
  * Author URI: https://www.flycart.org
8
+ * Version: 1.6.14
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Domain Path: /i18n/languages/