Discount Rules for WooCommerce - Version 1.6.16

Version Description

  • 08/10/18 =
  • Feature - Option to display message in cart while apply discount
  • Feature - Option to change the placement of discount table before / after add to cart button
  • Fix - BOGO auto add to cart fix
  • Fix - To load product in table template override file
  • Improvement - Event apply_filters('woo_discount_rules_run_product_price_strikeout', true, $product); to handle strike out price
  • Improvement - Auto select free shipping as default if enabled
  • Improvement - Display current date and time in rule page
Download this release

Release Info

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

Code changes from version 1.6.15 to 1.6.16

assets/css/style.css CHANGED
@@ -154,4 +154,9 @@
154
  .wdr_read_documentation_con p{
155
  color: #aaa;
156
  font-size: medium;
 
 
 
 
 
157
  }
154
  .wdr_read_documentation_con p{
155
  color: #aaa;
156
  font-size: medium;
157
+ }
158
+ .wdr_current_date_and_time_string{
159
+ color: darkgray;
160
+ display: inline-block;
161
+ margin-top: 10px;
162
  }
assets/js/app.js CHANGED
@@ -353,6 +353,26 @@ function trigger_woocommerce_tooltip(){
353
  });
354
  $('#subtotal_option_price_rule').trigger('change');
355
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
356
  $(document).on('keyup', '.rule_descr', function () {
357
  var value = $(this).val();
358
  value = '| ' + value;
353
  });
354
  $('#subtotal_option_price_rule').trigger('change');
355
 
356
+ $('#show_discount_table').on('change', function () {
357
+ var option = $(this).val();
358
+ if (option == 'show') {
359
+ $('.discount_table_options').show();
360
+ } else {
361
+ $('.discount_table_options').hide();
362
+ }
363
+ });
364
+ $('#show_discount_table').trigger('change');
365
+
366
+ $('#message_on_apply_cart_discount').on('change', function () {
367
+ var option = $(this).val();
368
+ if (option == 'yes') {
369
+ $('.message_on_apply_cart_discount_options').show();
370
+ } else {
371
+ $('.message_on_apply_cart_discount_options').hide();
372
+ }
373
+ });
374
+ $('#message_on_apply_cart_discount').trigger('change');
375
+
376
  $(document).on('keyup', '.rule_descr', function () {
377
  var value = $(this).val();
378
  value = '| ' + value;
i18n/languages/woo-discount-rules.pot CHANGED
@@ -95,12 +95,12 @@ msgstr ""
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
 
@@ -108,7 +108,7 @@ msgstr ""
108
  msgid "Enable this shipping."
109
  msgstr ""
110
 
111
- #: includes/advanced/free_shipping_method.php:80
112
  msgid "Title"
113
  msgstr ""
114
 
@@ -165,8 +165,8 @@ msgstr ""
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
 
@@ -174,27 +174,27 @@ msgstr ""
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
 
@@ -202,23 +202,23 @@ msgstr ""
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
 
@@ -226,79 +226,79 @@ msgstr ""
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
 
@@ -306,28 +306,28 @@ msgstr ""
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
 
@@ -348,76 +348,76 @@ msgstr ""
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
 
@@ -425,86 +425,86 @@ msgstr ""
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
 
@@ -516,21 +516,21 @@ msgstr ""
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
 
@@ -550,95 +550,100 @@ msgstr ""
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 ""
@@ -776,8 +781,8 @@ msgid ""
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
 
@@ -786,8 +791,8 @@ 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
 
@@ -853,15 +858,15 @@ 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
 
@@ -887,17 +892,17 @@ msgstr ""
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
 
@@ -906,7 +911,7 @@ 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
 
@@ -923,88 +928,116 @@ 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
 
@@ -1020,346 +1053,351 @@ msgstr ""
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 ""
95
  msgid "Custom Shipping Method for Woocommerce Discount Rules"
96
  msgstr ""
97
 
98
+ #: includes/advanced/free_shipping_method.php:68 view/settings.php:420
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 view/settings.php:440
104
  msgid "Enable"
105
  msgstr ""
106
 
108
  msgid "Enable this shipping."
109
  msgstr ""
110
 
111
+ #: includes/advanced/free_shipping_method.php:80 view/settings.php:455
112
  msgid "Title"
113
  msgstr ""
114
 
165
  msgid "Saving..."
166
  msgstr ""
167
 
168
+ #: includes/discount-base.php:834 view/view-cart-rules.php:54
169
+ #: view/view-pricing-rules.php:38
170
  msgid "Save Rule"
171
  msgstr ""
172
 
174
  msgid "Please enter a Key"
175
  msgstr ""
176
 
177
+ #: includes/discount-base.php:836 view/view-pricing-rules.php:594
178
  msgid "Min Quantity"
179
  msgstr ""
180
 
181
+ #: includes/discount-base.php:837 view/view-pricing-rules.php:601
182
  msgid "Max Quantity"
183
  msgstr ""
184
 
185
+ #: includes/discount-base.php:838 view/view-cart-rules.php:76
186
+ #: view/view-pricing-rules.php:61 view/view-pricing-rules.php:599
187
+ #: view/view-pricing-rules.php:664 view/view-pricing-rules.php:681
188
+ #: view/view-pricing-rules.php:688
189
  msgid "ex. 1"
190
  msgstr ""
191
 
192
+ #: includes/discount-base.php:839 view/view-pricing-rules.php:720
193
  msgid "ex. 10"
194
  msgstr ""
195
 
196
+ #: includes/discount-base.php:840 view/view-pricing-rules.php:606
197
+ #: view/view-pricing-rules.php:642
198
  msgid "ex. 50"
199
  msgstr ""
200
 
202
  msgid "Search for a user"
203
  msgstr ""
204
 
205
+ #: includes/discount-base.php:842 view/view-pricing-rules.php:607
206
  msgid "Adjustment Type"
207
  msgstr ""
208
 
209
+ #: includes/discount-base.php:843 view/view-cart-rules.php:571
210
+ #: view/view-pricing-rules.php:613
211
  msgid "Percentage Discount"
212
  msgstr ""
213
 
214
+ #: includes/discount-base.php:844 view/view-cart-rules.php:577
215
+ #: view/view-cart-rules.php:579 view/view-pricing-rules.php:621
216
+ #: view/view-pricing-rules.php:623
217
  msgid "Price Discount"
218
  msgstr ""
219
 
220
+ #: includes/discount-base.php:845 view/view-pricing-rules.php:631
221
+ #: view/view-pricing-rules.php:633
222
  msgid "Product Discount"
223
  msgstr ""
224
 
226
  msgid "Product Discount - Not support for subtotal based rule"
227
  msgstr ""
228
 
229
+ #: includes/discount-base.php:847 view/view-cart-rules.php:382
230
+ #: view/view-pricing-rules.php:637 view/view-pricing-rules.php:745
231
  msgid "Value"
232
  msgstr ""
233
 
234
+ #: includes/discount-base.php:848 view/view-pricing-rules.php:648
235
  msgid "Apply for"
236
  msgstr ""
237
 
238
+ #: includes/discount-base.php:849 view/view-cart-rules.php:372
239
+ #: view/view-cart-rules.php:374 view/view-pricing-rules.php:650
240
  msgid "All selected"
241
  msgstr ""
242
 
243
+ #: includes/discount-base.php:850 view/view-pricing-rules.php:651
244
  msgid "Same product"
245
  msgstr ""
246
 
247
+ #: includes/discount-base.php:851 view/view-pricing-rules.php:652
248
  msgid "Any one cheapest from selected"
249
  msgstr ""
250
 
251
+ #: includes/discount-base.php:852 view/view-pricing-rules.php:653
252
  msgid "Any one cheapest from all products"
253
  msgstr ""
254
 
255
+ #: includes/discount-base.php:853 view/view-pricing-rules.php:654
256
  msgid "More than one cheapest from selected category"
257
  msgstr ""
258
 
259
+ #: includes/discount-base.php:854 view/view-pricing-rules.php:655
260
  msgid "More than one cheapest from selected"
261
  msgstr ""
262
 
263
+ #: includes/discount-base.php:855 view/view-pricing-rules.php:656
264
  msgid "More than one cheapest from all"
265
  msgstr ""
266
 
267
+ #: includes/discount-base.php:856 view/view-pricing-rules.php:659
268
  msgid "Free quantity"
269
  msgstr ""
270
 
271
+ #: includes/discount-base.php:857 view/view-pricing-rules.php:659
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:673
276
  msgid "Fixed item count"
277
  msgstr ""
278
 
279
+ #: includes/discount-base.php:859 view/view-pricing-rules.php:672
280
  msgid "Dynamic item count"
281
  msgstr ""
282
 
283
+ #: includes/discount-base.php:860 view/view-pricing-rules.php:675
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:676
290
  msgid "Item count"
291
  msgstr ""
292
 
293
+ #: includes/discount-base.php:862 view/view-pricing-rules.php:676
294
  msgid "Discount for number of item(s) in cart"
295
  msgstr ""
296
 
297
+ #: includes/discount-base.php:863 view/view-pricing-rules.php:683
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:683
302
  msgid "Item quantity"
303
  msgstr ""
304
 
306
  msgid "Search for a products"
307
  msgstr ""
308
 
309
+ #: includes/discount-base.php:866 view/view-pricing-rules.php:710
310
  msgid "and"
311
  msgstr ""
312
 
313
+ #: includes/discount-base.php:867 view/view-pricing-rules.php:712
314
  msgid "100% percent"
315
  msgstr ""
316
 
317
+ #: includes/discount-base.php:868 view/view-pricing-rules.php:713
318
  msgid "Limited percent"
319
  msgstr ""
320
 
321
+ #: includes/discount-base.php:869 view/view-pricing-rules.php:720
322
  msgid "Percentage"
323
  msgstr ""
324
 
325
+ #: includes/discount-base.php:870 view/view-pricing-rules.php:722
326
  msgid "as discount"
327
  msgstr ""
328
 
329
+ #: includes/discount-base.php:871 view/view-cart-rules.php:535
330
+ #: view/view-pricing-rules.php:727
331
  msgid "Remove"
332
  msgstr ""
333
 
348
  msgid "Are you sure to remove ?"
349
  msgstr ""
350
 
351
+ #: includes/discount-base.php:877 view/view-cart-rules.php:157
352
  msgid "Type"
353
  msgstr ""
354
 
355
+ #: includes/discount-base.php:878 view/view-cart-rules.php:161
356
  msgid "Cart Subtotal"
357
  msgstr ""
358
 
359
+ #: includes/discount-base.php:879 view/view-cart-rules.php:164
360
  msgid "Subtotal at least"
361
  msgstr ""
362
 
363
+ #: includes/discount-base.php:880 view/view-cart-rules.php:168
364
  msgid "Subtotal less than"
365
  msgstr ""
366
 
367
+ #: includes/discount-base.php:881 view/view-cart-rules.php:171
368
  msgid "Cart Item Count"
369
  msgstr ""
370
 
371
+ #: includes/discount-base.php:882 view/view-cart-rules.php:174
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:178
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:181
380
  msgid "Quantity Sum"
381
  msgstr ""
382
 
383
+ #: includes/discount-base.php:885 view/view-cart-rules.php:187
384
+ #: view/view-cart-rules.php:190
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:199
389
+ #: view/view-cart-rules.php:202
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:211
394
  msgid "Categories in cart"
395
  msgstr ""
396
 
397
+ #: includes/discount-base.php:888 view/view-cart-rules.php:217
398
  msgid "Including sub-categories in cart"
399
  msgstr ""
400
 
401
+ #: includes/discount-base.php:889 view/view-cart-rules.php:226
402
  msgid "Customer Details (must be logged in)"
403
  msgstr ""
404
 
405
+ #: includes/discount-base.php:890 view/view-cart-rules.php:232
406
+ #: view/view-cart-rules.php:234
407
  msgid "User in list"
408
  msgstr ""
409
 
410
+ #: includes/discount-base.php:891 view/view-cart-rules.php:242
411
+ #: view/view-cart-rules.php:244
412
  msgid "User role in list"
413
  msgstr ""
414
 
415
+ #: includes/discount-base.php:892 view/view-cart-rules.php:252
416
+ #: view/view-cart-rules.php:254
417
  msgid "Shipping country in list"
418
  msgstr ""
419
 
420
+ #: includes/discount-base.php:893 view/view-cart-rules.php:258
421
  msgid "Customer Email"
422
  msgstr ""
423
 
425
  msgid "Email with TLD (Ege: edu)"
426
  msgstr ""
427
 
428
+ #: includes/discount-base.php:895 view/view-cart-rules.php:274
429
+ #: view/view-cart-rules.php:276
430
  msgid "Email with Domain (Eg: gmail.com)"
431
  msgstr ""
432
 
433
+ #: includes/discount-base.php:896 view/view-cart-rules.php:280
434
  msgid "Customer Billing Details"
435
  msgstr ""
436
 
437
+ #: includes/discount-base.php:897 view/view-cart-rules.php:286
438
+ #: view/view-cart-rules.php:288
439
  msgid "Billing city"
440
  msgstr ""
441
 
442
+ #: includes/discount-base.php:898 view/view-cart-rules.php:292
443
  msgid "Customer Shipping Details"
444
  msgstr ""
445
 
446
+ #: includes/discount-base.php:899 view/view-cart-rules.php:298
447
+ #: view/view-cart-rules.php:300
448
  msgid "Shipping state"
449
  msgstr ""
450
 
451
+ #: includes/discount-base.php:900 view/view-cart-rules.php:308
452
+ #: view/view-cart-rules.php:310
453
  msgid "Shipping city"
454
  msgstr ""
455
 
456
+ #: includes/discount-base.php:901 view/view-cart-rules.php:318
457
+ #: view/view-cart-rules.php:320
458
  msgid "Shipping zip code"
459
  msgstr ""
460
 
461
+ #: includes/discount-base.php:902 view/view-cart-rules.php:324
462
+ #: view/view-pricing-rules.php:423
463
  msgid "Purchase History"
464
  msgstr ""
465
 
466
+ #: includes/discount-base.php:903 view/view-cart-rules.php:330
467
+ #: view/view-cart-rules.php:332 view/view-pricing-rules.php:431
468
  msgid "Purchased amount"
469
  msgstr ""
470
 
471
+ #: includes/discount-base.php:904 view/view-cart-rules.php:340
472
+ #: view/view-cart-rules.php:342
473
  msgid "Number of order purchased"
474
  msgstr ""
475
 
476
+ #: includes/discount-base.php:905 view/view-cart-rules.php:350
477
+ #: view/view-cart-rules.php:352
478
  msgid "Number of order purchased in products"
479
  msgstr ""
480
 
481
+ #: includes/discount-base.php:906 view/view-cart-rules.php:356
482
  msgid "Coupon applied"
483
  msgstr ""
484
 
485
+ #: includes/discount-base.php:907 view/view-cart-rules.php:362
486
+ #: view/view-cart-rules.php:364
487
  msgid "Atleast any one"
488
  msgstr ""
489
 
490
+ #: includes/discount-base.php:908 view/view-cart-rules.php:492
491
+ #: view/view-pricing-rules.php:468
492
  msgid "Greater than or equal to"
493
  msgstr ""
494
 
495
+ #: includes/discount-base.php:909 view/view-cart-rules.php:493
496
+ #: view/view-pricing-rules.php:469
497
  msgid "Less than or equal to"
498
  msgstr ""
499
 
500
+ #: includes/discount-base.php:910 view/view-cart-rules.php:495
501
+ #: view/view-pricing-rules.php:472
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:534
508
  msgid "Action"
509
  msgstr ""
510
 
516
  msgid "Saved Successfully!"
517
  msgstr ""
518
 
519
+ #: includes/discount-base.php:914 view/view-cart-rules.php:411
520
+ #: view/view-cart-rules.php:430 view/view-cart-rules.php:451
521
+ #: view/view-cart-rules.php:500 view/view-pricing-rules.php:191
522
+ #: view/view-pricing-rules.php:207 view/view-pricing-rules.php:480
523
+ #: view/view-pricing-rules.php:549 view/view-pricing-rules.php:700
524
  msgid "None selected"
525
  msgstr ""
526
 
527
+ #: includes/discount-base.php:915 view/view-cart-rules.php:223
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:252 view/settings.php:270
533
+ #: view/settings.php:288
534
  msgid "Show"
535
  msgstr ""
536
 
550
  msgid "Are you sure to remove the selected rules"
551
  msgstr ""
552
 
553
+ #: includes/pricing-rules.php:2455 view/view-pricing-rules.php:505
554
  msgid "Buy"
555
  msgstr ""
556
 
557
+ #: includes/pricing-rules.php:2459
558
  msgid " less than or equal to "
559
  msgstr ""
560
 
561
+ #: includes/pricing-rules.php:2459 includes/pricing-rules.php:2465
562
  msgid " Quantity"
563
  msgstr ""
564
 
565
+ #: includes/pricing-rules.php:2462
566
  msgid " Quantity "
567
  msgstr ""
568
 
569
+ #: includes/pricing-rules.php:2469
570
  msgid " or more Quantity"
571
  msgstr ""
572
 
573
+ #: includes/pricing-rules.php:2478
574
  msgid " any "
575
  msgstr ""
576
 
577
+ #: includes/pricing-rules.php:2478
578
  msgid " products from "
579
  msgstr ""
580
 
581
+ #: includes/pricing-rules.php:2485
582
  msgid " in each products"
583
  msgstr ""
584
 
585
+ #: includes/pricing-rules.php:2497
586
  msgid " and get discount in "
587
  msgstr ""
588
 
589
+ #: includes/pricing-rules.php:2500
590
  msgid " first "
591
  msgstr ""
592
 
593
+ #: includes/pricing-rules.php:2502 includes/pricing-rules.php:2506
594
  msgid " quantity of product(s) - "
595
  msgstr ""
596
 
597
+ #: includes/pricing-rules.php:2504
598
  msgid " after first "
599
  msgstr ""
600
 
601
+ #: includes/pricing-rules.php:2522
602
  msgid "Category(ies) "
603
  msgstr ""
604
 
605
+ #: includes/pricing-rules.php:2588
606
  msgid "Get "
607
  msgstr ""
608
 
609
+ #: includes/pricing-rules.php:2590
610
  #, php-format
611
  msgid "% discount in "
612
  msgstr ""
613
 
614
+ #: includes/pricing-rules.php:2593
615
  msgid "same product"
616
  msgstr ""
617
 
618
+ #: includes/pricing-rules.php:2595
619
  msgid "any cheapest one from cart"
620
  msgstr ""
621
 
622
+ #: includes/pricing-rules.php:2598
623
  msgid "any cheapest one of "
624
  msgstr ""
625
 
626
+ #: includes/pricing-rules.php:2603
627
  msgid " quantity of any "
628
  msgstr ""
629
 
630
+ #: includes/pricing-rules.php:2605
631
  msgid " cheapest item "
632
  msgstr ""
633
 
634
+ #: includes/pricing-rules.php:2608
635
  msgid " quantity of cheapest item "
636
  msgstr ""
637
 
638
+ #: includes/pricing-rules.php:2612
639
  msgid "from the category "
640
  msgstr ""
641
 
642
+ #: loader.php:373
643
+ #, php-format
644
+ msgid "Discount applied: %s"
645
+ msgstr ""
646
+
647
  #: view/cart-rules.php:47
648
  msgid "Cart Rules"
649
  msgstr ""
781
  msgstr ""
782
 
783
  #: view/includes/cart-menu.php:9 view/includes/sub-menu.php:9
784
+ #: view/settings.php:26 view/view-cart-rules.php:64
785
+ #: view/view-pricing-rules.php:48
786
  msgid "General"
787
  msgstr ""
788
 
791
  msgstr ""
792
 
793
  #: view/includes/cart-menu.php:13 view/includes/sub-menu.php:13
794
+ #: view/template/discount-table.php:25 view/view-cart-rules.php:551
795
+ #: view/view-pricing-rules.php:571
796
  msgid "Discount"
797
  msgstr ""
798
 
858
  msgstr ""
859
 
860
  #: view/settings.php:82 view/settings.php:94 view/settings.php:106
861
+ #: view/settings.php:119 view/settings.php:304 view/settings.php:316
862
+ #: view/settings.php:502
863
  msgid "Yes"
864
  msgstr ""
865
 
866
  #: view/settings.php:83 view/settings.php:95 view/settings.php:107
867
+ #: view/settings.php:120 view/settings.php:305 view/settings.php:317
868
+ #: view/settings.php:503 view/view-cart-rules.php:526
869
+ #: view/view-pricing-rules.php:354
870
  msgid "No"
871
  msgstr ""
872
 
892
  msgid "Rule Setup for Price:"
893
  msgstr ""
894
 
895
+ #: view/settings.php:145 view/settings.php:353
896
  msgid "Apply first matched rule"
897
  msgstr ""
898
 
899
+ #: view/settings.php:151 view/settings.php:153 view/settings.php:359
900
+ #: view/settings.php:361
901
  msgid "Apply all matched rules"
902
  msgstr ""
903
 
904
+ #: view/settings.php:160 view/settings.php:162 view/settings.php:368
905
+ #: view/settings.php:370
906
  msgid "Apply biggest discount"
907
  msgstr ""
908
 
911
  msgstr ""
912
 
913
  #: view/settings.php:181 view/settings.php:200 view/settings.php:219
914
+ #: view/settings.php:255 view/settings.php:273 view/settings.php:291
915
  msgid "Don't Show"
916
  msgstr ""
917
 
928
  msgstr ""
929
 
930
  #: view/settings.php:228
931
+ msgid "Table placement:"
932
+ msgstr ""
933
+
934
+ #: view/settings.php:234
935
+ msgid "Before cart form"
936
+ msgstr ""
937
+
938
+ #: view/settings.php:237
939
+ msgid "After cart form"
940
  msgstr ""
941
 
942
  #: view/settings.php:246
943
+ msgid "Show column title on table :"
944
  msgstr ""
945
 
946
  #: view/settings.php:264
947
+ msgid "Show column discount range on table :"
948
+ msgstr ""
949
+
950
+ #: view/settings.php:282
951
  msgid "Show column discount on table :"
952
  msgstr ""
953
 
954
+ #: view/settings.php:299
955
  msgid "Show strikeout discount in cart item"
956
  msgstr ""
957
 
958
+ #: view/settings.php:311
959
  msgid "Auto add free product on coupon applied (For coupon based rules)"
960
  msgstr ""
961
 
962
+ #: view/settings.php:327
963
  msgid "Cart rules settings"
964
  msgstr ""
965
 
966
+ #: view/settings.php:334
967
  msgid "Coupon Name to be displayed :"
968
  msgstr ""
969
 
970
+ #: view/settings.php:340
971
  msgid "Discount Coupon Name"
972
  msgstr ""
973
 
974
+ #: view/settings.php:347
975
  msgid "Rule Setup for Cart:"
976
  msgstr ""
977
 
978
+ #: view/settings.php:379
979
  msgid "Enable free shipping option"
980
  msgstr ""
981
 
982
+ #: view/settings.php:386 view/view-pricing-rules.php:256
983
+ #: view/view-pricing-rules.php:313 view/view-pricing-rules.php:366
984
+ #: view/view-pricing-rules.php:412 view/view-pricing-rules.php:441
985
  msgid "Supported in PRO version"
986
  msgstr ""
987
 
988
+ #: view/settings.php:389 view/settings.php:396 view/settings.php:437
989
  msgid "Disabled"
990
  msgstr ""
991
 
992
+ #: view/settings.php:399
993
  msgid "Use Woocommerce free shipping"
994
  msgstr ""
995
 
996
+ #: view/settings.php:402
997
  msgid "Use Woo-Discount free shipping"
998
  msgstr ""
999
 
1000
+ #: view/settings.php:416
1001
  msgid "Free shipping text to be displayed"
1002
  msgstr ""
1003
 
1004
+ #: view/settings.php:423
1005
  msgid "Free Shipping title"
1006
  msgstr ""
1007
 
1008
+ #: view/settings.php:430
1009
+ msgid "Message on apply discount in cart"
1010
+ msgstr ""
1011
+
1012
+ #: view/settings.php:448
1013
+ msgid "Content to display in message"
1014
+ msgstr ""
1015
+
1016
+ #: view/settings.php:458
1017
+ msgid "Description"
1018
+ msgstr ""
1019
+
1020
+ #: view/settings.php:461
1021
+ msgid "Title and description"
1022
+ msgstr ""
1023
+
1024
+ #: view/settings.php:469
1025
  msgid "Draft"
1026
  msgstr ""
1027
 
1028
+ #: view/settings.php:479
1029
  msgid "Exclude Draft products in product select box."
1030
  msgstr ""
1031
 
1032
+ #: view/settings.php:489
1033
  msgid "Performance settings"
1034
  msgstr ""
1035
 
1036
+ #: view/settings.php:497
1037
  msgid "Enable cache for variable products table content"
1038
  msgstr ""
1039
 
1040
+ #: view/settings.php:509 view/settings.php:513
1041
  msgid "Clear cache"
1042
  msgstr ""
1043
 
1053
  msgid "Looking for more features? Upgrade to PRO"
1054
  msgstr ""
1055
 
1056
+ #: view/view-cart-rules.php:55 view/view-pricing-rules.php:39
1057
  msgid "Cancel and go back to list"
1058
  msgstr ""
1059
 
1060
+ #: view/view-cart-rules.php:59
1061
  msgid "New Cart Rule"
1062
  msgstr ""
1063
 
1064
+ #: view/view-cart-rules.php:61
1065
  msgid "Edit Cart Rule"
1066
  msgstr ""
1067
 
1068
+ #: view/view-cart-rules.php:68 view/view-pricing-rules.php:52
1069
  msgid "Order :"
1070
  msgstr ""
1071
 
1072
+ #: view/view-cart-rules.php:70 view/view-pricing-rules.php:54
1073
  msgid ""
1074
  "The Simple Ranking concept to said, which one is going to execute first and "
1075
  "so on."
1076
  msgstr ""
1077
 
1078
+ #: view/view-cart-rules.php:77 view/view-pricing-rules.php:62
1079
  msgid "WARNING: More than one rule should not have same priority."
1080
  msgstr ""
1081
 
1082
+ #: view/view-cart-rules.php:83 view/view-pricing-rules.php:68
1083
  msgid "Rule Name"
1084
  msgstr ""
1085
 
1086
+ #: view/view-cart-rules.php:85 view/view-cart-rules.php:97
1087
+ #: view/view-pricing-rules.php:70 view/view-pricing-rules.php:82
1088
  msgid "Rule Descriptions."
1089
  msgstr ""
1090
 
1091
+ #: view/view-cart-rules.php:90 view/view-pricing-rules.php:75
1092
  msgid "ex. Standard Rule."
1093
  msgstr ""
1094
 
1095
+ #: view/view-cart-rules.php:95 view/view-pricing-rules.php:80
1096
  msgid "Rule Description"
1097
  msgstr ""
1098
 
1099
+ #: view/view-cart-rules.php:106 view/view-pricing-rules.php:116
1100
  msgid "Validity"
1101
  msgstr ""
1102
 
1103
+ #: view/view-cart-rules.php:107 view/view-pricing-rules.php:117
1104
  msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
1105
  msgstr ""
1106
 
1107
+ #: view/view-cart-rules.php:120 view/view-pricing-rules.php:130
1108
+ #: view/view-pricing-rules.php:515
1109
  msgid "From"
1110
  msgstr ""
1111
 
1112
+ #: view/view-cart-rules.php:124
1113
  msgid "To"
1114
  msgstr ""
1115
 
1116
+ #: view/view-cart-rules.php:125 view/view-pricing-rules.php:135
1117
+ #, php-format
1118
+ msgid "Current date and time: %s"
1119
+ msgstr ""
1120
+
1121
+ #: view/view-cart-rules.php:130 view/view-cart-rules.php:546
1122
+ #: view/view-pricing-rules.php:139 view/view-pricing-rules.php:564
1123
  msgid "Next"
1124
  msgstr ""
1125
 
1126
+ #: view/view-cart-rules.php:134
1127
  msgid "Cart Conditions"
1128
  msgstr ""
1129
 
1130
+ #: view/view-cart-rules.php:137
1131
  msgid "Add Condition"
1132
  msgstr ""
1133
 
1134
+ #: view/view-cart-rules.php:206
1135
  msgid "Categories In Cart"
1136
  msgstr ""
1137
 
1138
+ #: view/view-cart-rules.php:264 view/view-cart-rules.php:266
1139
  msgid "Email with TLD (Eg: edu)"
1140
  msgstr ""
1141
 
1142
+ #: view/view-cart-rules.php:526 view/view-pricing-rules.php:354
1143
  msgid "To get this condition work,"
1144
  msgstr ""
1145
 
1146
+ #: view/view-cart-rules.php:526 view/view-pricing-rules.php:354
1147
  msgid "please change the option"
1148
  msgstr ""
1149
 
1150
+ #: view/view-cart-rules.php:526 view/view-pricing-rules.php:354
1151
  msgid "Disable the rules while have coupon(Third party)"
1152
  msgstr ""
1153
 
1154
+ #: view/view-cart-rules.php:526 view/view-pricing-rules.php:354
1155
  msgid "in cart to"
1156
  msgstr ""
1157
 
1158
+ #: view/view-cart-rules.php:545 view/view-cart-rules.php:605
1159
+ #: view/view-pricing-rules.php:563 view/view-pricing-rules.php:750
1160
  msgid "Previous"
1161
  msgstr ""
1162
 
1163
+ #: view/view-cart-rules.php:567
1164
  msgid "Discount Type :"
1165
  msgstr ""
1166
 
1167
+ #: view/view-cart-rules.php:586 view/view-cart-rules.php:588
1168
  msgid "Free shipping"
1169
  msgstr ""
1170
 
1171
+ #: view/view-cart-rules.php:597
1172
  msgid "value :"
1173
  msgstr ""
1174
 
1175
+ #: view/view-pricing-rules.php:43
1176
  msgid "New Price Rule"
1177
  msgstr ""
1178
 
1179
+ #: view/view-pricing-rules.php:45
1180
  msgid "Edit Price Rule"
1181
  msgstr ""
1182
 
1183
+ #: view/view-pricing-rules.php:91
1184
  msgid "Method"
1185
  msgstr ""
1186
 
1187
+ #: view/view-pricing-rules.php:93
1188
  msgid "Method to Apply."
1189
  msgstr ""
1190
 
1191
+ #: view/view-pricing-rules.php:99
1192
  msgid "Quantity based by product/category and BOGO deals"
1193
  msgstr ""
1194
 
1195
+ #: view/view-pricing-rules.php:106 view/view-pricing-rules.php:108
1196
  msgid "Dependant product based discount"
1197
  msgstr ""
1198
 
1199
+ #: view/view-pricing-rules.php:134
1200
  msgid "To - Leave Empty if No Expiry"
1201
  msgstr ""
1202
 
1203
+ #: view/view-pricing-rules.php:144
1204
  msgid "Discount Conditions"
1205
  msgstr ""
1206
 
1207
+ #: view/view-pricing-rules.php:149
1208
  msgid "Apply To"
1209
  msgstr ""
1210
 
1211
+ #: view/view-pricing-rules.php:155
1212
  msgid "All products"
1213
  msgstr ""
1214
 
1215
+ #: view/view-pricing-rules.php:159
1216
  msgid "Specific products"
1217
  msgstr ""
1218
 
1219
+ #: view/view-pricing-rules.php:165 view/view-pricing-rules.php:167
1220
  msgid "Specific categories"
1221
  msgstr ""
1222
 
1223
+ #: view/view-pricing-rules.php:174 view/view-pricing-rules.php:176
1224
  msgid "Specific attributes"
1225
  msgstr ""
1226
 
1227
+ #: view/view-pricing-rules.php:187
1228
  msgid "Check this box to count quantities cumulatively across products"
1229
  msgstr ""
1230
 
1231
+ #: view/view-pricing-rules.php:199
1232
  msgid "Check this box to count quantities cumulatively across category(ies)"
1233
  msgstr ""
1234
 
1235
+ #: view/view-pricing-rules.php:202
1236
  msgid "Check this box to apply child category(ies)"
1237
  msgstr ""
1238
 
1239
+ #: view/view-pricing-rules.php:216
1240
  msgid "Check this box to count quantities cumulatively across attribute"
1241
  msgstr ""
1242
 
1243
+ #: view/view-pricing-rules.php:226
1244
  msgid "Exclude products"
1245
  msgstr ""
1246
 
1247
+ #: view/view-pricing-rules.php:245
1248
  msgid "Exclude sale items"
1249
  msgstr ""
1250
 
1251
+ #: view/view-pricing-rules.php:250
1252
  msgid "Check this box if the rule should not apply to items on sale."
1253
  msgstr ""
1254
 
1255
+ #: view/view-pricing-rules.php:269
1256
  msgid "Customers"
1257
  msgstr ""
1258
 
1259
+ #: view/view-pricing-rules.php:274 view/view-pricing-rules.php:536
1260
  msgid "All"
1261
  msgstr ""
1262
 
1263
+ #: view/view-pricing-rules.php:281 view/view-pricing-rules.php:283
1264
  msgid "Only Given"
1265
  msgstr ""
1266
 
1267
+ #: view/view-pricing-rules.php:297
1268
  msgid "User roles"
1269
  msgstr ""
1270
 
1271
+ #: view/view-pricing-rules.php:302 view/view-pricing-rules.php:332
1272
+ #: view/view-pricing-rules.php:387 view/view-pricing-rules.php:430
1273
  msgid "Do not use"
1274
  msgstr ""
1275
 
1276
+ #: view/view-pricing-rules.php:324
1277
  msgid "Coupon"
1278
  msgstr ""
1279
 
1280
+ #: view/view-pricing-rules.php:333
1281
  msgid "Apply if any one coupon applied"
1282
  msgstr ""
1283
 
1284
+ #: view/view-pricing-rules.php:334
1285
  msgid "Apply if all coupon applied"
1286
  msgstr ""
1287
 
1288
+ #: view/view-pricing-rules.php:340
1289
  msgid "Enter the coupon code separated by comma(,)"
1290
  msgstr ""
1291
 
1292
+ #: view/view-pricing-rules.php:344
1293
  msgid "Make sure you have created the coupon already"
1294
  msgstr ""
1295
 
1296
+ #: view/view-pricing-rules.php:377
1297
  msgid "Subtotal"
1298
  msgstr ""
1299
 
1300
+ #: view/view-pricing-rules.php:388
1301
  msgid "Subtotal atleast"
1302
  msgstr ""
1303
 
1304
+ #: view/view-pricing-rules.php:393
1305
  msgid "Enter the amount"
1306
  msgstr ""
1307
 
1308
+ #: view/view-pricing-rules.php:403
1309
  msgid "Supported in WooCommerce 3.x"
1310
  msgstr ""
1311
 
1312
+ #: view/view-pricing-rules.php:432
1313
  msgid "Number of orders"
1314
  msgstr ""
1315
 
1316
+ #: view/view-pricing-rules.php:433
1317
  msgid "Purchased product"
1318
  msgstr ""
1319
 
1320
+ #: view/view-pricing-rules.php:507
1321
  msgid "Any"
1322
  msgstr ""
1323
 
1324
+ #: view/view-pricing-rules.php:508
1325
  msgid "Each"
1326
  msgstr ""
1327
 
1328
+ #: view/view-pricing-rules.php:509
1329
  msgid "Combine"
1330
  msgstr ""
1331
 
1332
+ #: view/view-pricing-rules.php:512
1333
  msgid "More than"
1334
  msgstr ""
1335
 
1336
+ #: view/view-pricing-rules.php:513
1337
  msgid "Less than"
1338
  msgstr ""
1339
 
1340
+ #: view/view-pricing-rules.php:514
1341
  msgid "Equal"
1342
  msgstr ""
1343
 
1344
+ #: view/view-pricing-rules.php:517 view/view-pricing-rules.php:520
1345
+ #: view/view-pricing-rules.php:540
1346
  msgid "Quantity"
1347
  msgstr ""
1348
 
1349
+ #: view/view-pricing-rules.php:519
1350
  msgid "to"
1351
  msgstr ""
1352
 
1353
+ #: view/view-pricing-rules.php:523
1354
  msgid "Product(s) from"
1355
  msgstr ""
1356
 
1357
+ #: view/view-pricing-rules.php:529
1358
  msgid "Apply discount in product(s)"
1359
  msgstr ""
1360
 
1361
+ #: view/view-pricing-rules.php:530
1362
  msgid "Apply discount in category(ies)"
1363
  msgstr ""
1364
 
1365
+ #: view/view-pricing-rules.php:534
1366
  msgid "and get discount in "
1367
  msgstr ""
1368
 
1369
+ #: view/view-pricing-rules.php:537
1370
  msgid "First quantity(s)"
1371
  msgstr ""
1372
 
1373
+ #: view/view-pricing-rules.php:538
1374
  msgid "Skip first quantity(s)"
1375
  msgstr ""
1376
 
1377
+ #: view/view-pricing-rules.php:543
1378
  msgid " Product(s) "
1379
  msgstr ""
1380
 
1381
+ #: view/view-pricing-rules.php:547
1382
  msgid "Category(ies)"
1383
  msgstr ""
1384
 
1385
+ #: view/view-pricing-rules.php:558
1386
  msgid "Document for product dependent rules"
1387
  msgstr ""
1388
 
1389
+ #: view/view-pricing-rules.php:574
1390
  msgid "Add New Range"
1391
  msgstr ""
1392
 
1393
+ #: view/view-pricing-rules.php:733
1394
  msgid "Document to create perfect BOGO rules"
1395
  msgstr ""
1396
 
1397
+ #: view/view-pricing-rules.php:743
1398
  msgid "Percent"
1399
  msgstr ""
1400
 
1401
+ #: view/view-pricing-rules.php:744
1402
  msgid "Fixed"
1403
  msgstr ""
includes/cart-rules.php CHANGED
@@ -260,6 +260,8 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
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) {
260
 
261
  //run an event
262
  do_action('woo_discount_rules_after_fetching_discount', $this);
263
+ global $flycart_woo_discount_rules;
264
+ $flycart_woo_discount_rules->cart_rules = $this;
265
  // Add a Coupon Virtually (Temporary access).
266
  if(!$free_shipping_check)
267
  if ($this->discount_total != 0) {
includes/pricing-rules.php CHANGED
@@ -539,7 +539,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
539
  if($variation_id) $product_id_new = $variation_id;
540
  $product = FlycartWoocommerceProduct::wc_get_product($product_id_new);
541
 
542
- if(empty($cart_item_data)){
543
  $cart_item_data = array_merge( $cart_item_data, array(
544
  'key' => $cart_item_key,
545
  'product_id' => $product_id,
@@ -2170,7 +2170,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2170
  if($path_from_template){
2171
  $path = $path_from_template;
2172
  }
2173
- $this->generateTableHtml($table_data, $path);
2174
  }
2175
  }
2176
 
@@ -2533,7 +2533,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
2533
  * @param $path
2534
  * @return bool|string
2535
  */
2536
- public function generateTableHtml($table_data, $path)
2537
  {
2538
  //ob_start();
2539
  if (!isset($table_data)) return false;
@@ -3116,6 +3116,11 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
3116
  * */
3117
  public function replaceVisiblePricesOptimized($item_price, $product)
3118
  {
 
 
 
 
 
3119
  if(isset($product->woo_discount_rules_do_not_run_strikeout) && $product->woo_discount_rules_do_not_run_strikeout) return $item_price;
3120
 
3121
  $runTheRulesEvenInAjax = apply_filters('woo_discount_rules_run_strike_out_for_ajax', false, $product);
539
  if($variation_id) $product_id_new = $variation_id;
540
  $product = FlycartWoocommerceProduct::wc_get_product($product_id_new);
541
 
542
+ if(empty($cart_item_data) || empty($cart_item_data['data'])){
543
  $cart_item_data = array_merge( $cart_item_data, array(
544
  'key' => $cart_item_key,
545
  'product_id' => $product_id,
2170
  if($path_from_template){
2171
  $path = $path_from_template;
2172
  }
2173
+ $this->generateTableHtml($table_data, $path, $product);
2174
  }
2175
  }
2176
 
2533
  * @param $path
2534
  * @return bool|string
2535
  */
2536
+ public function generateTableHtml($table_data, $path, $product)
2537
  {
2538
  //ob_start();
2539
  if (!isset($table_data)) return false;
3116
  * */
3117
  public function replaceVisiblePricesOptimized($item_price, $product)
3118
  {
3119
+ $run_product_price_strikeout = apply_filters('woo_discount_rules_run_product_price_strikeout', true, $product);
3120
+ if(!$run_product_price_strikeout){
3121
+ return $item_price;
3122
+ }
3123
+
3124
  if(isset($product->woo_discount_rules_do_not_run_strikeout) && $product->woo_discount_rules_do_not_run_strikeout) return $item_price;
3125
 
3126
  $runTheRulesEvenInAjax = apply_filters('woo_discount_rules_run_strike_out_for_ajax', false, $product);
loader.php CHANGED
@@ -288,8 +288,14 @@ if(!class_exists('FlycartWooDiscountRules')){
288
  add_filter('woocommerce_cart_item_price_html', array($this->pricingRules, 'replaceVisiblePricesCart'), 1000, 3);
289
 
290
  // Pricing Table of Individual Product.
291
- add_filter('woocommerce_before_add_to_cart_form', array($this->pricingRules, 'priceTable'));
292
- add_filter('woocommerce_before_add_to_cart_form', array($this, 'script_on_product_page'));
 
 
 
 
 
 
293
 
294
  // Updating Log After Creating Order
295
  add_action('woocommerce_thankyou', array($this->discountBase, 'storeLog'));
@@ -311,6 +317,9 @@ if(!class_exists('FlycartWooDiscountRules')){
311
  add_action('wp_ajax_loadWooDiscountedDiscountTable', array($this->pricingRules, 'getWooDiscountedPriceTableForVariant'));
312
  add_action('wp_ajax_nopriv_loadWooDiscountedDiscountTable', array($this->pricingRules, 'getWooDiscountedPriceTableForVariant'));
313
  add_action( 'wp_enqueue_scripts', array($this, 'includeScriptAndStyles') );
 
 
 
314
  }
315
 
316
  /**
@@ -335,6 +344,40 @@ if(!class_exists('FlycartWooDiscountRules')){
335
  $this->discountBase->handlePriceDiscount();
336
  WC()->cart->calculate_totals();
337
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  }
339
  }
340
 
@@ -351,4 +394,5 @@ if ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) {
351
  include_once('includes/advanced/cart-totals.php');
352
  include_once('includes/advanced/advanced-helper.php');
353
  }
354
- }
 
288
  add_filter('woocommerce_cart_item_price_html', array($this->pricingRules, 'replaceVisiblePricesCart'), 1000, 3);
289
 
290
  // Pricing Table of Individual Product.
291
+ $discount_table_placement = $this->discountBase->getConfigData('discount_table_placement', 'before_cart_form');
292
+ if($discount_table_placement == 'before_cart_form'){
293
+ add_filter('woocommerce_before_add_to_cart_form', array($this->pricingRules, 'priceTable'));
294
+ add_filter('woocommerce_before_add_to_cart_form', array($this, 'script_on_product_page'));
295
+ } else {
296
+ add_filter('woocommerce_after_add_to_cart_form', array($this->pricingRules, 'priceTable'));
297
+ add_filter('woocommerce_after_add_to_cart_form', array($this, 'script_on_product_page'));
298
+ }
299
 
300
  // Updating Log After Creating Order
301
  add_action('woocommerce_thankyou', array($this->discountBase, 'storeLog'));
317
  add_action('wp_ajax_loadWooDiscountedDiscountTable', array($this->pricingRules, 'getWooDiscountedPriceTableForVariant'));
318
  add_action('wp_ajax_nopriv_loadWooDiscountedDiscountTable', array($this->pricingRules, 'getWooDiscountedPriceTableForVariant'));
319
  add_action( 'wp_enqueue_scripts', array($this, 'includeScriptAndStyles') );
320
+
321
+ add_action('woocommerce_before_checkout_form', array($this, 'displayAppliedDiscountMessagesForCartRules'));
322
+ add_action('woocommerce_before_cart', array($this, 'displayAppliedDiscountMessagesForCartRules'));
323
  }
324
 
325
  /**
344
  $this->discountBase->handlePriceDiscount();
345
  WC()->cart->calculate_totals();
346
  }
347
+
348
+ /**
349
+ * To display applied discount messages for cart rules
350
+ * */
351
+ public function displayAppliedDiscountMessagesForCartRules(){
352
+ $message_on_apply_cart_discount = $this->discountBase->getConfigData('message_on_apply_cart_discount', 'no');
353
+ if($message_on_apply_cart_discount == "yes"){
354
+ if(!empty($this->cart_rules)){
355
+ if(!empty($this->cart_rules->matched_discounts)){
356
+ $matched_discounts = $this->cart_rules->matched_discounts;
357
+ if(!empty($matched_discounts['name'])){
358
+ foreach ($matched_discounts['name'] as $key => $matched_discount_name){
359
+ $rule_sets = $this->cart_rules->rule_sets;
360
+ $title = $rule_title = $matched_discount_name;
361
+ $rule_description = '';
362
+ if(isset($rule_sets[$key])){
363
+ $message_on_apply_cart_discount_type = $this->discountBase->getConfigData('message_on_apply_cart_discount_type', 'title');
364
+ if(!empty($rule_sets[$key]['descr'])) $rule_description = $rule_sets[$key]['descr'];
365
+ if($message_on_apply_cart_discount_type == 'title'){
366
+ $title = $matched_discount_name;
367
+ } else if($message_on_apply_cart_discount_type == 'description'){
368
+ if(!empty($rule_sets[$key]['descr'])) $title = $rule_sets[$key]['descr'];
369
+ } else {
370
+ if(!empty($rule_sets[$key]['descr'])) $title .= "<p>".$rule_sets[$key]['descr']."</p>";
371
+ }
372
+ }
373
+ $message = sprintf(__('Discount applied: %s', 'woo-discount-rules'), $title);
374
+ wc_print_notice( apply_filters('woo_discount_rules_message_on_apply_cart_rules', $message, $rule_title, $rule_description), 'success' );
375
+ }
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
  }
382
  }
383
 
394
  include_once('includes/advanced/cart-totals.php');
395
  include_once('includes/advanced/advanced-helper.php');
396
  }
397
+ }
398
+
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.15
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -308,6 +308,15 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
308
 
309
  == Changelog ==
310
 
 
 
 
 
 
 
 
 
 
311
  = 1.6.15 - 21/09/18 =
312
  * Fix - Product select box not loading correctly style issue
313
  * Feature - Cumulative option for specific products
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.16
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.16 - 08/10/18 =
312
+ * Feature - Option to display message in cart while apply discount
313
+ * Feature - Option to change the placement of discount table before / after add to cart button
314
+ * Fix - BOGO auto add to cart fix
315
+ * Fix - To load product in table template override file
316
+ * Improvement - Event apply_filters('woo_discount_rules_run_product_price_strikeout', true, $product); to handle strike out price
317
+ * Improvement - Auto select free shipping as default if enabled
318
+ * Improvement - Display current date and time in rule page
319
+
320
  = 1.6.15 - 21/09/18 =
321
  * Fix - Product select box not loading correctly style issue
322
  * Feature - Cumulative option for specific products
view/settings.php CHANGED
@@ -211,7 +211,7 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
211
  </label>
212
  </div>
213
  <div class="col-md-6">
214
- <select class="selectpicker" name="show_discount_table">
215
  <option <?php if ($data['show_discount_table'] == 'show') { ?> selected=selected <?php } ?>
216
  value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
217
  </option>
@@ -221,7 +221,25 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
221
  </select>
222
  </div>
223
  </div>
224
- <div class="row form-group">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>
@@ -239,7 +257,7 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
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>
@@ -257,7 +275,7 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
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>
@@ -406,6 +424,45 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
406
  </div>
407
  </div>
408
  <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  <div class="row form-group" style="display: none"><!-- Hide this because it is not required after v1.4.36 -->
410
  <div class="col-md-2">
411
  <label>
211
  </label>
212
  </div>
213
  <div class="col-md-6">
214
+ <select class="selectpicker" name="show_discount_table" id="show_discount_table">
215
  <option <?php if ($data['show_discount_table'] == 'show') { ?> selected=selected <?php } ?>
216
  value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
217
  </option>
221
  </select>
222
  </div>
223
  </div>
224
+ <div class="row form-group discount_table_options">
225
+ <?php $data['discount_table_placement'] = (isset($data['discount_table_placement']) ? $data['discount_table_placement'] : 'before_cart_form'); ?>
226
+ <div class="col-md-2">
227
+ <label>
228
+ <?php esc_html_e('Table placement:', 'woo-discount-rules'); ?>
229
+ </label>
230
+ </div>
231
+ <div class="col-md-6">
232
+ <select class="selectpicker" name="discount_table_placement">
233
+ <option <?php if ($data['discount_table_placement'] == 'before_cart_form') { ?> selected=selected <?php } ?>
234
+ value="before_cart_form"><?php esc_html_e('Before cart form', 'woo-discount-rules'); ?>
235
+ </option>
236
+ <option <?php if ($data['discount_table_placement'] == 'after_cart_form') { ?> selected=selected <?php } ?>
237
+ value="after_cart_form"><?php esc_html_e("After cart form", 'woo-discount-rules'); ?>
238
+ </option>
239
+ </select>
240
+ </div>
241
+ </div>
242
+ <div class="row form-group discount_table_options">
243
  <?php $data['show_discount_title_table'] = (isset($data['show_discount_title_table']) ? $data['show_discount_title_table'] : 'show'); ?>
244
  <div class="col-md-2">
245
  <label>
257
  </select>
258
  </div>
259
  </div>
260
+ <div class="row form-group discount_table_options">
261
  <?php $data['show_column_range_table'] = (isset($data['show_column_range_table']) ? $data['show_column_range_table'] : 'show'); ?>
262
  <div class="col-md-2">
263
  <label>
275
  </select>
276
  </div>
277
  </div>
278
+ <div class="row form-group discount_table_options">
279
  <?php $data['show_column_discount_table'] = (isset($data['show_column_discount_table']) ? $data['show_column_discount_table'] : 'show'); ?>
280
  <div class="col-md-2">
281
  <label>
424
  </div>
425
  </div>
426
  <?php } ?>
427
+ <div class="row form-group">
428
+ <div class="col-md-2">
429
+ <label>
430
+ <?php esc_html_e('Message on apply discount in cart', 'woo-discount-rules'); ?>
431
+ </label>
432
+ </div>
433
+ <?php $data['message_on_apply_cart_discount'] = (isset($data['message_on_apply_cart_discount']) ? $data['message_on_apply_cart_discount'] : "no"); ?>
434
+ <div class="col-md-6">
435
+ <select class="selectpicker" name="message_on_apply_cart_discount" id="message_on_apply_cart_discount">
436
+ <option <?php if ($data['message_on_apply_cart_discount'] == "no") { ?> selected=selected <?php } ?>
437
+ value="no"><?php esc_html_e('Disabled', 'woo-discount-rules'); ?>
438
+ </option>
439
+ <option <?php if ($data['message_on_apply_cart_discount'] == "yes") { ?> selected=selected <?php } ?>
440
+ value="yes"><?php esc_html_e('Enable', 'woo-discount-rules'); ?>
441
+ </option>
442
+ </select>
443
+ </div>
444
+ </div>
445
+ <div class="row form-group message_on_apply_cart_discount_options">
446
+ <div class="col-md-2">
447
+ <label>
448
+ <?php esc_html_e('Content to display in message', 'woo-discount-rules'); ?>
449
+ </label>
450
+ </div>
451
+ <?php $data['message_on_apply_cart_discount_type'] = (isset($data['message_on_apply_cart_discount_type']) ? $data['message_on_apply_cart_discount_type'] : "title"); ?>
452
+ <div class="col-md-6">
453
+ <select class="selectpicker" name="message_on_apply_cart_discount_type" id="message_on_apply_cart_discount_type">
454
+ <option <?php if ($data['message_on_apply_cart_discount_type'] == "title") { ?> selected=selected <?php } ?>
455
+ value="title"><?php esc_html_e('Title', 'woo-discount-rules'); ?>
456
+ </option>
457
+ <option <?php if ($data['message_on_apply_cart_discount_type'] == "description") { ?> selected=selected <?php } ?>
458
+ value="description"><?php esc_html_e('Description', 'woo-discount-rules'); ?>
459
+ </option>
460
+ <option <?php if ($data['message_on_apply_cart_discount_type'] == "title_and_description") { ?> selected=selected <?php } ?>
461
+ value="title_and_description"><?php esc_html_e('Title and description', 'woo-discount-rules'); ?>
462
+ </option>
463
+ </select>
464
+ </div>
465
+ </div>
466
  <div class="row form-group" style="display: none"><!-- Hide this because it is not required after v1.4.36 -->
467
  <div class="col-md-2">
468
  <label>
view/view-cart-rules.php CHANGED
@@ -44,6 +44,7 @@ $flycartWooDiscountRulesPurchase = new FlycartWooDiscountRulesPurchase();
44
  $isPro = $flycartWooDiscountRulesPurchase->isPro();
45
  $woo_settings = new FlycartWooDiscountBase();
46
  $do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not_run_while_have_third_party_coupon', 0);
 
47
  ?>
48
  <div class="container-fluid woo_discount_loader_outer">
49
  <form id="form_cart_rule">
@@ -121,6 +122,7 @@ $do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not
121
  class="form-control datepicker"
122
  value="<?php echo $date_to; ?>"
123
  placeholder="<?php esc_attr_e('To', 'woo-discount-rules'); ?>"></div>
 
124
  </div>
125
  </div>
126
  </div>
44
  $isPro = $flycartWooDiscountRulesPurchase->isPro();
45
  $woo_settings = new FlycartWooDiscountBase();
46
  $do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not_run_while_have_third_party_coupon', 0);
47
+ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAndTimeBasedOnTimeZone();
48
  ?>
49
  <div class="container-fluid woo_discount_loader_outer">
50
  <form id="form_cart_rule">
122
  class="form-control datepicker"
123
  value="<?php echo $date_to; ?>"
124
  placeholder="<?php esc_attr_e('To', 'woo-discount-rules'); ?>"></div>
125
+ <span class="wdr_current_date_and_time_string"><?php echo sprintf(esc_html__('Current date and time: %s', 'woo-discount-rules'), date('m/d/Y h:i', strtotime($current_date_and_time))); ?></span>
126
  </div>
127
  </div>
128
  </div>
view/view-pricing-rules.php CHANGED
@@ -28,6 +28,7 @@ if($isPro){
28
  }
29
  $woo_settings = new FlycartWooDiscountBase();
30
  $do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not_run_while_have_third_party_coupon', 0);
 
31
  ?>
32
  <div class="container-fluid woo_discount_loader_outer">
33
  <form id="form_price_rule">
@@ -131,6 +132,7 @@ $do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not
131
  class="form-control datepicker"
132
  value="<?php echo $date_to; ?>"
133
  placeholder="<?php esc_attr_e('To - Leave Empty if No Expiry', 'woo-discount-rules'); ?>"></div>
 
134
  </div>
135
  </div>
136
  <div align="right">
28
  }
29
  $woo_settings = new FlycartWooDiscountBase();
30
  $do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not_run_while_have_third_party_coupon', 0);
31
+ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAndTimeBasedOnTimeZone();
32
  ?>
33
  <div class="container-fluid woo_discount_loader_outer">
34
  <form id="form_price_rule">
132
  class="form-control datepicker"
133
  value="<?php echo $date_to; ?>"
134
  placeholder="<?php esc_attr_e('To - Leave Empty if No Expiry', 'woo-discount-rules'); ?>"></div>
135
+ <span class="wdr_current_date_and_time_string"><?php echo sprintf(esc_html__('Current date and time: %s', 'woo-discount-rules'), date('m/d/Y h:i', strtotime($current_date_and_time))); ?></span>
136
  </div>
137
  </div>
138
  <div align="right">
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.15
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.16
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Domain Path: /i18n/languages/