Discount Rules for WooCommerce - Version 1.9.5

Version Description

  • 19/02/20 =
  • Fix - Strikeout for On after apply discount option doesn't works with non cumulative options.
  • Improvement - Text improvements
  • Improvement - Email TLD improvement
  • Improvement - Event apply_filters('woo_discount_rules_calculate_subtotal_before_discounts_for_price_rules', false, $rule);
Download this release

Release Info

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

Code changes from version 1.9.4 to 1.9.5

i18n/languages/woo-discount-rules.pot CHANGED
@@ -12,7 +12,7 @@ msgstr ""
12
  "X-Generator: Poedit 1.8.7.1\n"
13
 
14
  #. Text in echo
15
- #: woo-discount-rules/view/view-pricing-rules.php:682
16
  msgid " Product(s) "
17
  msgstr ""
18
 
@@ -87,7 +87,7 @@ msgid "- User roles based discounts"
87
  msgstr ""
88
 
89
  #. Text in echo
90
- #: woo-discount-rules/view/view-pricing-rules.php:944
91
  msgid "100% percent"
92
  msgstr ""
93
 
@@ -97,12 +97,12 @@ msgid "<b>Eg:</b> Spend {{difference_amount}} more and get 10% discount"
97
  msgstr ""
98
 
99
  #. Text in function
100
- #: woo-discount-rules/view/view-pricing-rules.php:973
101
  msgid "<b>Example for Bundle (Set) Discount:</b> 3 for $10, 6 for $20<br>So customer can add 3 products / quantities and get them for $10<br><b>NOTE:</b> You will need to enter the entire package / bundle cost. Example: 10 (for the 3 for $10 deal)"
102
  msgstr ""
103
 
104
  #. Text in function
105
- #: woo-discount-rules/view/view-pricing-rules.php:983
106
  msgid "<b>Example for Fixed Price Per Unit:</b> Product A cost is $20. If customers buy 5 to 10, they can get at $15 each (per unit).<br>Customer adds 6 quantities of Product A. The price per unit will reduce to $15<br><b>NOTE:</b> Enter the Unit price like 15"
107
  msgstr ""
108
 
@@ -131,12 +131,12 @@ msgid "Add New Rule"
131
  msgstr ""
132
 
133
  #. Text in echo
134
- #: woo-discount-rules/view/view-pricing-rules.php:713
135
  msgid "Add quantity ranges"
136
  msgstr ""
137
 
138
  #. Text in echo
139
- #: woo-discount-rules/view/view-pricing-rules.php:754
140
  msgid "Adjustment Type"
141
  msgstr ""
142
 
@@ -152,7 +152,7 @@ msgstr ""
152
 
153
  #. Text in echo
154
  #: woo-discount-rules/view/view-pricing-rules.php:339
155
- #: woo-discount-rules/view/view-pricing-rules.php:675
156
  msgid "All"
157
  msgstr ""
158
 
@@ -173,7 +173,7 @@ msgid "An another discount plugin %s is active. Please disable this plugin, Woo
173
  msgstr ""
174
 
175
  #. Text in echo
176
- #: woo-discount-rules/view/view-pricing-rules.php:646
177
  msgid "Any"
178
  msgstr ""
179
 
@@ -210,12 +210,12 @@ msgid "Apply discount based on"
210
  msgstr ""
211
 
212
  #. Text in echo
213
- #: woo-discount-rules/view/view-pricing-rules.php:669
214
  msgid "Apply discount in category(ies)"
215
  msgstr ""
216
 
217
  #. Text in echo
218
- #: woo-discount-rules/view/view-pricing-rules.php:668
219
  msgid "Apply discount in product(s)"
220
  msgstr ""
221
 
@@ -226,12 +226,12 @@ msgid "Apply first matched rule"
226
  msgstr ""
227
 
228
  #. Text in echo
229
- #: woo-discount-rules/view/view-pricing-rules.php:413
230
  msgid "Apply if all coupon applied (Select from WooCommerce)"
231
  msgstr ""
232
 
233
  #. Text in echo
234
- #: woo-discount-rules/view/view-pricing-rules.php:412
235
  msgid "Apply if any one coupon applied (Select from WooCommerce)"
236
  msgstr ""
237
 
@@ -247,12 +247,12 @@ msgid "Atleast any one (Select from WooCommerce)"
247
  msgstr ""
248
 
249
  #. Text in echo
250
- #: woo-discount-rules/view/view-pricing-rules.php:872
251
  msgid "Auto add all selected products"
252
  msgstr ""
253
 
254
  #. Text in echo
255
- #: woo-discount-rules/view/view-pricing-rules.php:878
256
  msgid "Auto add all selected products - Automatically added to the cart <br> Same product - get discount in same product <br> Any one cheapest from selected - Get discount in one selected product <br> Any one cheapest from all products - Get discount in one cheapest product in cart <br> Cheapest in cart - selected category(ies) - cheapest product from the selected category will be discounted <br> Cheapest in cart - selected item(s) - get discount in chosen no.of quantities"
257
  msgstr ""
258
 
@@ -294,13 +294,13 @@ msgid "Bulk/Tiered pricing discounts"
294
  msgstr ""
295
 
296
  #. Text in echo
297
- #: woo-discount-rules/view/view-pricing-rules.php:788
298
- #: woo-discount-rules/view/view-pricing-rules.php:790
299
  msgid "Bundle (Set) Discount"
300
  msgstr ""
301
 
302
  #. Text in echo
303
- #: woo-discount-rules/view/view-pricing-rules.php:644
304
  msgid "Buy"
305
  msgstr ""
306
 
@@ -310,17 +310,35 @@ msgid "Buy One Get One deals can be simple to complex. Learn how to get them wor
310
  msgstr ""
311
 
312
  #. Text in echo
313
- #: woo-discount-rules/view/view-pricing-rules.php:798
314
- #: woo-discount-rules/view/view-pricing-rules.php:800
 
 
 
 
 
 
 
 
 
 
 
 
315
  msgid "Buy X get X (Same product)"
316
  msgstr ""
317
 
318
  #. Text in echo
319
- #: woo-discount-rules/view/view-pricing-rules.php:808
320
- #: woo-discount-rules/view/view-pricing-rules.php:810
321
  msgid "Buy X get Y (Auto add all selected products)"
322
  msgstr ""
323
 
 
 
 
 
 
 
324
  #. Text in echo
325
  #: woo-discount-rules/view/view-pricing-rules.php:164
326
  msgid "Buy {{min_quantity}} or more quantity and get {{discount}} as discount"
@@ -392,28 +410,22 @@ msgid "Category Combination (get discount only when Category A+ B + C are in the
392
  msgstr ""
393
 
394
  #. Text in echo
395
- #: woo-discount-rules/view/view-pricing-rules.php:686
396
  msgid "Category(ies)"
397
  msgstr ""
398
 
399
  #. Text in echo
400
- #: woo-discount-rules/view/view-pricing-rules.php:838
401
- #: woo-discount-rules/view/view-pricing-rules.php:840
402
- #: woo-discount-rules/view/view-pricing-rules.php:876
403
  msgid "Cheapest among all items in cart"
404
  msgstr ""
405
 
406
  #. Text in echo
407
- #: woo-discount-rules/view/view-pricing-rules.php:828
408
- #: woo-discount-rules/view/view-pricing-rules.php:830
409
- #: woo-discount-rules/view/view-pricing-rules.php:874
410
  msgid "Cheapest in cart - selected category(ies)"
411
  msgstr ""
412
 
413
  #. Text in echo
414
- #: woo-discount-rules/view/view-pricing-rules.php:818
415
- #: woo-discount-rules/view/view-pricing-rules.php:820
416
- #: woo-discount-rules/view/view-pricing-rules.php:875
417
  msgid "Cheapest in cart - selected item(s)"
418
  msgstr ""
419
 
@@ -448,7 +460,7 @@ msgid "Checkout page"
448
  msgstr ""
449
 
450
  #. Text in echo
451
- #: woo-discount-rules/view/view-pricing-rules.php:929
452
  msgid "Choose category(ies)"
453
  msgstr ""
454
 
@@ -458,7 +470,7 @@ msgid "Choose how discount rules should work when WooCommerce coupons (or third
458
  msgstr ""
459
 
460
  #. Text in echo
461
- #: woo-discount-rules/view/view-pricing-rules.php:919
462
  msgid "Choose product(s)"
463
  msgstr ""
464
 
@@ -480,7 +492,7 @@ msgid "Close and go back to list"
480
  msgstr ""
481
 
482
  #. Text in echo
483
- #: woo-discount-rules/view/view-pricing-rules.php:648
484
  msgid "Combine"
485
  msgstr ""
486
 
@@ -495,13 +507,13 @@ msgid "Conditions"
495
  msgstr ""
496
 
497
  #. Text in echo
498
- #: woo-discount-rules/view/view-pricing-rules.php:395
499
  msgid "Coupon"
500
  msgstr ""
501
 
502
  #. Text in function
503
  #: woo-discount-rules/view/view-cart-rules.php:697
504
- #: woo-discount-rules/view/view-pricing-rules.php:434
505
  msgid "Coupon already exists in WooCommerce. Please select another name"
506
  msgstr ""
507
 
@@ -523,7 +535,7 @@ msgstr ""
523
  #. Text in echo
524
  #: woo-discount-rules/view/view-cart-rules.php:423
525
  #: woo-discount-rules/view/view-cart-rules.php:425
526
- #: woo-discount-rules/view/view-pricing-rules.php:411
527
  msgid "Create your own coupon"
528
  msgstr ""
529
 
@@ -535,7 +547,7 @@ msgstr ""
535
 
536
  #. Text in echo
537
  #: woo-discount-rules/view/view-cart-rules.php:671
538
- #: woo-discount-rules/view/view-pricing-rules.php:619
539
  msgid "Custom"
540
  msgstr ""
541
 
@@ -630,7 +642,7 @@ msgstr ""
630
  #: woo-discount-rules/view/includes/sub-menu.php:13
631
  #: woo-discount-rules/view/template/discount-table.php:42
632
  #: woo-discount-rules/view/view-cart-rules.php:756
633
- #: woo-discount-rules/view/view-pricing-rules.php:710
634
  msgid "Discount"
635
  msgstr ""
636
 
@@ -660,12 +672,12 @@ msgid "Discount column on table :"
660
  msgstr ""
661
 
662
  #. Text in echo
663
- #: woo-discount-rules/view/view-pricing-rules.php:903
664
  msgid "Discount for number of item(s) in cart"
665
  msgstr ""
666
 
667
  #. Text in echo
668
- #: woo-discount-rules/view/view-pricing-rules.php:910
669
  msgid "Discount for number of quantity(ies)"
670
  msgstr ""
671
 
@@ -675,7 +687,7 @@ msgid "Discount identifier in the backend"
675
  msgstr ""
676
 
677
  #. Text in echo
678
- #: woo-discount-rules/view/view-pricing-rules.php:942
679
  msgid "Discount percentage"
680
  msgstr ""
681
 
@@ -701,9 +713,9 @@ msgstr ""
701
 
702
  #. Text in echo
703
  #: woo-discount-rules/view/view-pricing-rules.php:373
704
- #: woo-discount-rules/view/view-pricing-rules.php:410
705
- #: woo-discount-rules/view/view-pricing-rules.php:501
706
- #: woo-discount-rules/view/view-pricing-rules.php:550
707
  msgid "Do not use"
708
  msgstr ""
709
 
@@ -732,17 +744,17 @@ msgstr ""
732
  #. Text in echo
733
  #: woo-discount-rules/view/cart-rules.php:185
734
  #: woo-discount-rules/view/pricing-rules.php:215
735
- #: woo-discount-rules/view/view-pricing-rules.php:959
736
  msgid "Duplicate"
737
  msgstr ""
738
 
739
  #. Text in echo
740
- #: woo-discount-rules/view/view-pricing-rules.php:899
741
  msgid "Dynamic item count"
742
  msgstr ""
743
 
744
  #. Text in echo
745
- #: woo-discount-rules/view/view-pricing-rules.php:647
746
  msgid "Each"
747
  msgstr ""
748
 
@@ -813,17 +825,17 @@ msgid "Enable rules"
813
  msgstr ""
814
 
815
  #. Text in echo
816
- #: woo-discount-rules/view/view-pricing-rules.php:953
817
  msgid "Enter only numeric values. Eg: <b>50</b> for 50% discount"
818
  msgstr ""
819
 
820
  #. Text in echo
821
- #: woo-discount-rules/view/view-pricing-rules.php:578
822
  msgid "Enter the amount"
823
  msgstr ""
824
 
825
  #. Text in echo
826
- #: woo-discount-rules/view/view-pricing-rules.php:653
827
  msgid "Equal"
828
  msgstr ""
829
 
@@ -862,33 +874,33 @@ msgstr ""
862
  #. Text in echo
863
  #: woo-discount-rules/view/view-cart-rules.php:371
864
  #: woo-discount-rules/view/view-cart-rules.php:373
865
- #: woo-discount-rules/view/view-pricing-rules.php:551
866
  msgid "First Order discount"
867
  msgstr ""
868
 
869
  #. Text in echo
870
- #: woo-discount-rules/view/view-pricing-rules.php:676
871
  msgid "First quantity(s)"
872
  msgstr ""
873
 
874
  #. Text in echo
875
- #: woo-discount-rules/view/view-pricing-rules.php:1001
876
  msgid "Fixed"
877
  msgstr ""
878
 
879
  #. Text in echo
880
- #: woo-discount-rules/view/view-pricing-rules.php:778
881
- #: woo-discount-rules/view/view-pricing-rules.php:780
882
  msgid "Fixed Price Per Unit"
883
  msgstr ""
884
 
885
  #. Text in echo
886
- #: woo-discount-rules/view/view-pricing-rules.php:900
887
  msgid "Fixed item count (not recommended)"
888
  msgstr ""
889
 
890
  #. Text in echo
891
- #: woo-discount-rules/view/view-pricing-rules.php:902
892
  msgid "Fixed item count - You need to provide item count manually. Dynamic item count - System will choose dynamically based on cart"
893
  msgstr ""
894
 
@@ -924,7 +936,7 @@ msgid "Free product discount"
924
  msgstr ""
925
 
926
  #. Text in echo
927
- #: woo-discount-rules/view/view-pricing-rules.php:880
928
  msgid "Free quantity"
929
  msgstr ""
930
 
@@ -942,13 +954,13 @@ msgstr ""
942
  #. Text in echo
943
  #: woo-discount-rules/view/view-cart-rules.php:135
944
  #: woo-discount-rules/view/view-pricing-rules.php:144
945
- #: woo-discount-rules/view/view-pricing-rules.php:654
946
  msgid "From"
947
  msgstr ""
948
 
949
  #. Text in echo
950
  #: woo-discount-rules/view/view-cart-rules.php:663
951
- #: woo-discount-rules/view/view-pricing-rules.php:611
952
  msgid "From all previous orders"
953
  msgstr ""
954
 
@@ -973,7 +985,7 @@ msgstr ""
973
 
974
  #. Text in echo
975
  #: woo-discount-rules/view/view-cart-rules.php:647
976
- #: woo-discount-rules/view/view-pricing-rules.php:592
977
  msgid "Greater than or equal to"
978
  msgstr ""
979
 
@@ -983,7 +995,7 @@ msgid "Guest"
983
  msgstr ""
984
 
985
  #. Text in function
986
- #: woo-discount-rules/view/view-pricing-rules.php:697
987
  msgid "Guide for product dependent rules"
988
  msgstr ""
989
 
@@ -993,7 +1005,7 @@ msgid "Guide to create cart rules"
993
  msgstr ""
994
 
995
  #. Text in function
996
- #: woo-discount-rules/view/view-pricing-rules.php:990
997
  msgid "Guide to create perfect BOGO rules"
998
  msgstr ""
999
 
@@ -1058,12 +1070,12 @@ msgid "Installation and Intro:"
1058
  msgstr ""
1059
 
1060
  #. Text in echo
1061
- #: woo-discount-rules/view/view-pricing-rules.php:903
1062
  msgid "Item count"
1063
  msgstr ""
1064
 
1065
  #. Text in echo
1066
- #: woo-discount-rules/view/view-pricing-rules.php:910
1067
  msgid "Item quantity"
1068
  msgstr ""
1069
 
@@ -1075,43 +1087,43 @@ msgstr ""
1075
 
1076
  #. Text in echo
1077
  #: woo-discount-rules/view/view-cart-rules.php:670
1078
- #: woo-discount-rules/view/view-pricing-rules.php:618
1079
  msgid "Last 1 year"
1080
  msgstr ""
1081
 
1082
  #. Text in echo
1083
  #: woo-discount-rules/view/view-cart-rules.php:665
1084
- #: woo-discount-rules/view/view-pricing-rules.php:613
1085
  msgid "Last 14 days"
1086
  msgstr ""
1087
 
1088
  #. Text in echo
1089
  #: woo-discount-rules/view/view-cart-rules.php:669
1090
- #: woo-discount-rules/view/view-pricing-rules.php:617
1091
  msgid "Last 180 days"
1092
  msgstr ""
1093
 
1094
  #. Text in echo
1095
  #: woo-discount-rules/view/view-cart-rules.php:666
1096
- #: woo-discount-rules/view/view-pricing-rules.php:614
1097
  msgid "Last 30 days"
1098
  msgstr ""
1099
 
1100
  #. Text in echo
1101
  #: woo-discount-rules/view/view-cart-rules.php:667
1102
- #: woo-discount-rules/view/view-pricing-rules.php:615
1103
  msgid "Last 60 days"
1104
  msgstr ""
1105
 
1106
  #. Text in echo
1107
  #: woo-discount-rules/view/view-cart-rules.php:664
1108
- #: woo-discount-rules/view/view-pricing-rules.php:612
1109
  msgid "Last 7 days"
1110
  msgstr ""
1111
 
1112
  #. Text in echo
1113
  #: woo-discount-rules/view/view-cart-rules.php:668
1114
- #: woo-discount-rules/view/view-pricing-rules.php:616
1115
  msgid "Last 90 days"
1116
  msgstr ""
1117
 
@@ -1147,8 +1159,8 @@ msgstr ""
1147
 
1148
  #. Text in echo
1149
  #: woo-discount-rules/view/view-cart-rules.php:648
1150
- #: woo-discount-rules/view/view-pricing-rules.php:593
1151
- #: woo-discount-rules/view/view-pricing-rules.php:652
1152
  msgid "Less than or equal to"
1153
  msgstr ""
1154
 
@@ -1173,7 +1185,7 @@ msgid "License key seems to be Invalid. Please enter a valid license key"
1173
  msgstr ""
1174
 
1175
  #. Text in echo
1176
- #: woo-discount-rules/view/view-pricing-rules.php:945
1177
  msgid "Limited percent"
1178
  msgstr ""
1179
 
@@ -1183,12 +1195,12 @@ msgid "Looking for more features? Upgrade to PRO"
1183
  msgstr ""
1184
 
1185
  #. Text in echo
1186
- #: woo-discount-rules/view/view-pricing-rules.php:578
1187
  msgid "Make sure you have created the coupon already"
1188
  msgstr ""
1189
 
1190
  #. Text in echo
1191
- #: woo-discount-rules/view/view-pricing-rules.php:748
1192
  msgid "Max Quantity"
1193
  msgstr ""
1194
 
@@ -1209,12 +1221,12 @@ msgid "Method to Apply."
1209
  msgstr ""
1210
 
1211
  #. Text in echo
1212
- #: woo-discount-rules/view/view-pricing-rules.php:741
1213
  msgid "Min Quantity"
1214
  msgstr ""
1215
 
1216
  #. Text in echo
1217
- #: woo-discount-rules/view/view-pricing-rules.php:651
1218
  msgid "More than or equal to"
1219
  msgstr ""
1220
 
@@ -1239,7 +1251,7 @@ msgstr ""
1239
  #: woo-discount-rules/view/view-cart-rules.php:145
1240
  #: woo-discount-rules/view/view-cart-rules.php:750
1241
  #: woo-discount-rules/view/view-pricing-rules.php:183
1242
- #: woo-discount-rules/view/view-pricing-rules.php:703
1243
  msgid "Next"
1244
  msgstr ""
1245
 
@@ -1265,9 +1277,9 @@ msgstr ""
1265
  #: woo-discount-rules/view/view-cart-rules.php:559
1266
  #: woo-discount-rules/view/view-pricing-rules.php:238
1267
  #: woo-discount-rules/view/view-pricing-rules.php:254
1268
- #: woo-discount-rules/view/view-pricing-rules.php:604
1269
- #: woo-discount-rules/view/view-pricing-rules.php:688
1270
- #: woo-discount-rules/view/view-pricing-rules.php:930
1271
  msgid "None selected"
1272
  msgstr ""
1273
 
@@ -1284,26 +1296,26 @@ msgstr ""
1284
  #. Text in echo
1285
  #: woo-discount-rules/view/view-cart-rules.php:391
1286
  #: woo-discount-rules/view/view-cart-rules.php:393
1287
- #: woo-discount-rules/view/view-pricing-rules.php:553
1288
  msgid "Number of previous orders made"
1289
  msgstr ""
1290
 
1291
  #. Text in echo
1292
  #: woo-discount-rules/view/view-cart-rules.php:401
1293
  #: woo-discount-rules/view/view-cart-rules.php:403
1294
- #: woo-discount-rules/view/view-pricing-rules.php:554
1295
  msgid "Number of previous orders made with following products"
1296
  msgstr ""
1297
 
1298
  #. Text in echo
1299
- #: woo-discount-rules/view/view-pricing-rules.php:880
1300
  msgid "Number of quantity(ies) in each selected product(s)"
1301
  msgstr ""
1302
 
1303
  #. Text in echo
1304
  #: woo-discount-rules/view/view-cart-rules.php:411
1305
  #: woo-discount-rules/view/view-cart-rules.php:413
1306
- #: woo-discount-rules/view/view-pricing-rules.php:555
1307
  msgid "Number of quantity(s) in previous orders made with following products"
1308
  msgstr ""
1309
 
@@ -1335,13 +1347,13 @@ msgid "Order"
1335
  msgstr ""
1336
 
1337
  #. Text in echo
1338
- #: woo-discount-rules/view/view-pricing-rules.php:1000
1339
  msgid "Percent"
1340
  msgstr ""
1341
 
1342
  #. Text in echo
1343
  #: woo-discount-rules/view/view-cart-rules.php:776
1344
- #: woo-discount-rules/view/view-pricing-rules.php:760
1345
  msgid "Percentage Discount"
1346
  msgstr ""
1347
 
@@ -1374,16 +1386,16 @@ msgstr ""
1374
  #. Text in echo
1375
  #: woo-discount-rules/view/view-cart-rules.php:749
1376
  #: woo-discount-rules/view/view-cart-rules.php:846
1377
- #: woo-discount-rules/view/view-pricing-rules.php:702
1378
- #: woo-discount-rules/view/view-pricing-rules.php:1007
1379
  msgid "Previous"
1380
  msgstr ""
1381
 
1382
  #. Text in echo
1383
  #: woo-discount-rules/view/view-cart-rules.php:782
1384
  #: woo-discount-rules/view/view-cart-rules.php:784
1385
- #: woo-discount-rules/view/view-pricing-rules.php:768
1386
- #: woo-discount-rules/view/view-pricing-rules.php:770
1387
  msgid "Price Discount"
1388
  msgstr ""
1389
 
@@ -1435,7 +1447,7 @@ msgid "Product page"
1435
  msgstr ""
1436
 
1437
  #. Text in echo
1438
- #: woo-discount-rules/view/view-pricing-rules.php:662
1439
  msgid "Product(s) from"
1440
  msgstr ""
1441
 
@@ -1466,7 +1478,7 @@ msgstr ""
1466
 
1467
  #. Text in echo
1468
  #: woo-discount-rules/view/view-cart-rules.php:365
1469
- #: woo-discount-rules/view/view-pricing-rules.php:537
1470
  msgid "Purchase History"
1471
  msgstr ""
1472
 
@@ -1478,14 +1490,14 @@ msgstr ""
1478
  #. Text in echo
1479
  #: woo-discount-rules/view/view-cart-rules.php:381
1480
  #: woo-discount-rules/view/view-cart-rules.php:383
1481
- #: woo-discount-rules/view/view-pricing-rules.php:552
1482
  msgid "Purchased amount"
1483
  msgstr ""
1484
 
1485
  #. Text in echo
1486
- #: woo-discount-rules/view/view-pricing-rules.php:656
1487
- #: woo-discount-rules/view/view-pricing-rules.php:659
1488
- #: woo-discount-rules/view/view-pricing-rules.php:679
1489
  msgid "Quantity"
1490
  msgstr ""
1491
 
@@ -1515,8 +1527,8 @@ msgid "Range column on table :"
1515
  msgstr ""
1516
 
1517
  #. Text in echo
1518
- #: woo-discount-rules/view/view-pricing-rules.php:975
1519
- #: woo-discount-rules/view/view-pricing-rules.php:985
1520
  msgid "Read docs"
1521
  msgstr ""
1522
 
@@ -1532,7 +1544,7 @@ msgstr ""
1532
 
1533
  #. Text in echo
1534
  #: woo-discount-rules/view/view-cart-rules.php:701
1535
- #: woo-discount-rules/view/view-pricing-rules.php:962
1536
  msgid "Remove"
1537
  msgstr ""
1538
 
@@ -1590,7 +1602,7 @@ msgid "Sale price"
1590
  msgstr ""
1591
 
1592
  #. Text in echo
1593
- #: woo-discount-rules/view/view-pricing-rules.php:873
1594
  msgid "Same product"
1595
  msgstr ""
1596
 
@@ -1706,7 +1718,7 @@ msgid "Shown on quantity update (dynamic)"
1706
  msgstr ""
1707
 
1708
  #. Text in echo
1709
- #: woo-discount-rules/view/view-pricing-rules.php:677
1710
  msgid "Skip first quantity(s)"
1711
  msgstr ""
1712
 
@@ -1745,7 +1757,7 @@ msgid "Status"
1745
  msgstr ""
1746
 
1747
  #. Text in echo
1748
- #: woo-discount-rules/view/view-pricing-rules.php:485
1749
  msgid "Subtotal"
1750
  msgstr ""
1751
 
@@ -1755,7 +1767,7 @@ msgid "Subtotal at least"
1755
  msgstr ""
1756
 
1757
  #. Text in echo
1758
- #: woo-discount-rules/view/view-pricing-rules.php:502
1759
  msgid "Subtotal atleast"
1760
  msgstr ""
1761
 
@@ -1782,13 +1794,13 @@ msgstr ""
1782
  #. Text in echo
1783
  #: woo-discount-rules/view/settings_cart_rules.php:140
1784
  #: woo-discount-rules/view/settings_price_rules.php:311
1785
- #: woo-discount-rules/view/view-pricing-rules.php:578
1786
- #: woo-discount-rules/view/view-pricing-rules.php:855
1787
  msgid "Supported in PRO version"
1788
  msgstr ""
1789
 
1790
  #. Text in echo
1791
- #: woo-discount-rules/view/view-pricing-rules.php:578
1792
  msgid "Supported in WooCommerce 3.x"
1793
  msgstr ""
1794
 
@@ -1898,18 +1910,18 @@ msgid "Used when advanced table display option is set in the plugin settings"
1898
  msgstr ""
1899
 
1900
  #. Text in function
1901
- #: woo-discount-rules/view/view-pricing-rules.php:540
1902
  msgid "Useful for providing discounts based on previous purchase history.<br><b>Example:</b> First order discount, discount based on customer’s total spent so far. <a href=\"%s\">Read docs</a>."
1903
  msgstr ""
1904
 
1905
  #. Text in function
1906
- #: woo-discount-rules/view/view-pricing-rules.php:398
1907
  msgid "Useful if you wish to activate this discount rule via coupon code.<br>You can create your own coupon code here or select coupons created from WooCommerce -> Coupons. <a href=\"%s\">Read docs</a>."
1908
  msgstr ""
1909
 
1910
  #. Text in function
1911
- #: woo-discount-rules/view/view-pricing-rules.php:488
1912
- msgid "Useful when you want to limit the rule based on subtotal. (Use this only when absolutely necessary.)<br>See cart based discount rule tab (link to cart based rule tab) for effective subtotal based discount rules."
1913
  msgstr ""
1914
 
1915
  #. Text in echo
@@ -1952,8 +1964,8 @@ msgstr ""
1952
 
1953
  #. Text in echo
1954
  #: woo-discount-rules/view/view-cart-rules.php:462
1955
- #: woo-discount-rules/view/view-pricing-rules.php:848
1956
- #: woo-discount-rules/view/view-pricing-rules.php:1002
1957
  msgid "Value"
1958
  msgstr ""
1959
 
@@ -2019,32 +2031,32 @@ msgid "Your Unique License Key"
2019
  msgstr ""
2020
 
2021
  #. Text in echo
2022
- #: woo-discount-rules/view/view-pricing-rules.php:673
2023
  msgid "and get discount on "
2024
  msgstr ""
2025
 
2026
  #. Text in echo
2027
  #: woo-discount-rules/view/view-cart-rules.php:650
2028
- #: woo-discount-rules/view/view-pricing-rules.php:596
2029
  msgid "and the order status should be"
2030
  msgstr ""
2031
 
2032
  #. Text in echo
2033
  #: woo-discount-rules/view/view-cart-rules.php:92
2034
  #: woo-discount-rules/view/view-pricing-rules.php:74
2035
- #: woo-discount-rules/view/view-pricing-rules.php:746
2036
- #: woo-discount-rules/view/view-pricing-rules.php:915
2037
  msgid "ex. 1"
2038
  msgstr ""
2039
 
2040
  #. Text in echo
2041
- #: woo-discount-rules/view/view-pricing-rules.php:953
2042
  msgid "ex. 10"
2043
  msgstr ""
2044
 
2045
  #. Text in echo
2046
- #: woo-discount-rules/view/view-pricing-rules.php:753
2047
- #: woo-discount-rules/view/view-pricing-rules.php:853
2048
  msgid "ex. 50"
2049
  msgstr ""
2050
 
@@ -2056,17 +2068,17 @@ msgstr ""
2056
 
2057
  #. Text in echo
2058
  #: woo-discount-rules/view/view-cart-rules.php:674
2059
- #: woo-discount-rules/view/view-pricing-rules.php:623
2060
  msgid "in days"
2061
  msgstr ""
2062
 
2063
  #. Text in echo
2064
- #: woo-discount-rules/view/view-pricing-rules.php:870
2065
  msgid "receive discount for"
2066
  msgstr ""
2067
 
2068
  #. Text in echo
2069
- #: woo-discount-rules/view/view-pricing-rules.php:658
2070
  msgid "to"
2071
  msgstr ""
2072
 
@@ -2128,4 +2140,100 @@ msgstr ""
2128
  #. Text in echo
2129
  #: woo-discount-rules/view/settings_promotion.php:47
2130
  msgid "{{total_discount_price}} -> Total discount applied"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2131
  msgstr ""
12
  "X-Generator: Poedit 1.8.7.1\n"
13
 
14
  #. Text in echo
15
+ #: woo-discount-rules/view/view-pricing-rules.php:680
16
  msgid " Product(s) "
17
  msgstr ""
18
 
87
  msgstr ""
88
 
89
  #. Text in echo
90
+ #: woo-discount-rules/view/view-pricing-rules.php:956
91
  msgid "100% percent"
92
  msgstr ""
93
 
97
  msgstr ""
98
 
99
  #. Text in function
100
+ #: woo-discount-rules/view/view-pricing-rules.php:985
101
  msgid "<b>Example for Bundle (Set) Discount:</b> 3 for $10, 6 for $20<br>So customer can add 3 products / quantities and get them for $10<br><b>NOTE:</b> You will need to enter the entire package / bundle cost. Example: 10 (for the 3 for $10 deal)"
102
  msgstr ""
103
 
104
  #. Text in function
105
+ #: woo-discount-rules/view/view-pricing-rules.php:995
106
  msgid "<b>Example for Fixed Price Per Unit:</b> Product A cost is $20. If customers buy 5 to 10, they can get at $15 each (per unit).<br>Customer adds 6 quantities of Product A. The price per unit will reduce to $15<br><b>NOTE:</b> Enter the Unit price like 15"
107
  msgstr ""
108
 
131
  msgstr ""
132
 
133
  #. Text in echo
134
+ #: woo-discount-rules/view/view-pricing-rules.php:711
135
  msgid "Add quantity ranges"
136
  msgstr ""
137
 
138
  #. Text in echo
139
+ #: woo-discount-rules/view/view-pricing-rules.php:752
140
  msgid "Adjustment Type"
141
  msgstr ""
142
 
152
 
153
  #. Text in echo
154
  #: woo-discount-rules/view/view-pricing-rules.php:339
155
+ #: woo-discount-rules/view/view-pricing-rules.php:673
156
  msgid "All"
157
  msgstr ""
158
 
173
  msgstr ""
174
 
175
  #. Text in echo
176
+ #: woo-discount-rules/view/view-pricing-rules.php:644
177
  msgid "Any"
178
  msgstr ""
179
 
210
  msgstr ""
211
 
212
  #. Text in echo
213
+ #: woo-discount-rules/view/view-pricing-rules.php:667
214
  msgid "Apply discount in category(ies)"
215
  msgstr ""
216
 
217
  #. Text in echo
218
+ #: woo-discount-rules/view/view-pricing-rules.php:666
219
  msgid "Apply discount in product(s)"
220
  msgstr ""
221
 
226
  msgstr ""
227
 
228
  #. Text in echo
229
+ #: woo-discount-rules/view/view-pricing-rules.php:412
230
  msgid "Apply if all coupon applied (Select from WooCommerce)"
231
  msgstr ""
232
 
233
  #. Text in echo
234
+ #: woo-discount-rules/view/view-pricing-rules.php:411
235
  msgid "Apply if any one coupon applied (Select from WooCommerce)"
236
  msgstr ""
237
 
247
  msgstr ""
248
 
249
  #. Text in echo
250
+ #: woo-discount-rules/view/view-pricing-rules.php:884
251
  msgid "Auto add all selected products"
252
  msgstr ""
253
 
254
  #. Text in echo
255
+ #: woo-discount-rules/view/view-pricing-rules.php:890
256
  msgid "Auto add all selected products - Automatically added to the cart <br> Same product - get discount in same product <br> Any one cheapest from selected - Get discount in one selected product <br> Any one cheapest from all products - Get discount in one cheapest product in cart <br> Cheapest in cart - selected category(ies) - cheapest product from the selected category will be discounted <br> Cheapest in cart - selected item(s) - get discount in chosen no.of quantities"
257
  msgstr ""
258
 
294
  msgstr ""
295
 
296
  #. Text in echo
297
+ #: woo-discount-rules/view/view-pricing-rules.php:814
298
+ #: woo-discount-rules/view/view-pricing-rules.php:816
299
  msgid "Bundle (Set) Discount"
300
  msgstr ""
301
 
302
  #. Text in echo
303
+ #: woo-discount-rules/view/view-pricing-rules.php:642
304
  msgid "Buy"
305
  msgstr ""
306
 
310
  msgstr ""
311
 
312
  #. Text in echo
313
+ #: woo-discount-rules/view/view-pricing-rules.php:854
314
+ #: woo-discount-rules/view/view-pricing-rules.php:856
315
+ msgid "Buy X Get Y - Selected Categories (Cheapest in cart)"
316
+ msgstr ""
317
+
318
+ #. Text in echo
319
+ #: woo-discount-rules/view/view-pricing-rules.php:844
320
+ #: woo-discount-rules/view/view-pricing-rules.php:846
321
+ msgid "Buy X Get Y - Selected item(s) (Cheapest in cart)"
322
+ msgstr ""
323
+
324
+ #. Text in echo
325
+ #: woo-discount-rules/view/view-pricing-rules.php:824
326
+ #: woo-discount-rules/view/view-pricing-rules.php:826
327
  msgid "Buy X get X (Same product)"
328
  msgstr ""
329
 
330
  #. Text in echo
331
+ #: woo-discount-rules/view/view-pricing-rules.php:834
332
+ #: woo-discount-rules/view/view-pricing-rules.php:836
333
  msgid "Buy X get Y (Auto add all selected products)"
334
  msgstr ""
335
 
336
+ #. Text in echo
337
+ #: woo-discount-rules/view/view-pricing-rules.php:864
338
+ #: woo-discount-rules/view/view-pricing-rules.php:866
339
+ msgid "Buy X get Y - Cheapest among all items in cart"
340
+ msgstr ""
341
+
342
  #. Text in echo
343
  #: woo-discount-rules/view/view-pricing-rules.php:164
344
  msgid "Buy {{min_quantity}} or more quantity and get {{discount}} as discount"
410
  msgstr ""
411
 
412
  #. Text in echo
413
+ #: woo-discount-rules/view/view-pricing-rules.php:684
414
  msgid "Category(ies)"
415
  msgstr ""
416
 
417
  #. Text in echo
418
+ #: woo-discount-rules/view/view-pricing-rules.php:888
 
 
419
  msgid "Cheapest among all items in cart"
420
  msgstr ""
421
 
422
  #. Text in echo
423
+ #: woo-discount-rules/view/view-pricing-rules.php:886
 
 
424
  msgid "Cheapest in cart - selected category(ies)"
425
  msgstr ""
426
 
427
  #. Text in echo
428
+ #: woo-discount-rules/view/view-pricing-rules.php:887
 
 
429
  msgid "Cheapest in cart - selected item(s)"
430
  msgstr ""
431
 
460
  msgstr ""
461
 
462
  #. Text in echo
463
+ #: woo-discount-rules/view/view-pricing-rules.php:941
464
  msgid "Choose category(ies)"
465
  msgstr ""
466
 
470
  msgstr ""
471
 
472
  #. Text in echo
473
+ #: woo-discount-rules/view/view-pricing-rules.php:931
474
  msgid "Choose product(s)"
475
  msgstr ""
476
 
492
  msgstr ""
493
 
494
  #. Text in echo
495
+ #: woo-discount-rules/view/view-pricing-rules.php:646
496
  msgid "Combine"
497
  msgstr ""
498
 
507
  msgstr ""
508
 
509
  #. Text in echo
510
+ #: woo-discount-rules/view/view-pricing-rules.php:394
511
  msgid "Coupon"
512
  msgstr ""
513
 
514
  #. Text in function
515
  #: woo-discount-rules/view/view-cart-rules.php:697
516
+ #: woo-discount-rules/view/view-pricing-rules.php:433
517
  msgid "Coupon already exists in WooCommerce. Please select another name"
518
  msgstr ""
519
 
535
  #. Text in echo
536
  #: woo-discount-rules/view/view-cart-rules.php:423
537
  #: woo-discount-rules/view/view-cart-rules.php:425
538
+ #: woo-discount-rules/view/view-pricing-rules.php:410
539
  msgid "Create your own coupon"
540
  msgstr ""
541
 
547
 
548
  #. Text in echo
549
  #: woo-discount-rules/view/view-cart-rules.php:671
550
+ #: woo-discount-rules/view/view-pricing-rules.php:617
551
  msgid "Custom"
552
  msgstr ""
553
 
642
  #: woo-discount-rules/view/includes/sub-menu.php:13
643
  #: woo-discount-rules/view/template/discount-table.php:42
644
  #: woo-discount-rules/view/view-cart-rules.php:756
645
+ #: woo-discount-rules/view/view-pricing-rules.php:708
646
  msgid "Discount"
647
  msgstr ""
648
 
672
  msgstr ""
673
 
674
  #. Text in echo
675
+ #: woo-discount-rules/view/view-pricing-rules.php:915
676
  msgid "Discount for number of item(s) in cart"
677
  msgstr ""
678
 
679
  #. Text in echo
680
+ #: woo-discount-rules/view/view-pricing-rules.php:922
681
  msgid "Discount for number of quantity(ies)"
682
  msgstr ""
683
 
687
  msgstr ""
688
 
689
  #. Text in echo
690
+ #: woo-discount-rules/view/view-pricing-rules.php:954
691
  msgid "Discount percentage"
692
  msgstr ""
693
 
713
 
714
  #. Text in echo
715
  #: woo-discount-rules/view/view-pricing-rules.php:373
716
+ #: woo-discount-rules/view/view-pricing-rules.php:409
717
+ #: woo-discount-rules/view/view-pricing-rules.php:500
718
+ #: woo-discount-rules/view/view-pricing-rules.php:549
719
  msgid "Do not use"
720
  msgstr ""
721
 
744
  #. Text in echo
745
  #: woo-discount-rules/view/cart-rules.php:185
746
  #: woo-discount-rules/view/pricing-rules.php:215
747
+ #: woo-discount-rules/view/view-pricing-rules.php:971
748
  msgid "Duplicate"
749
  msgstr ""
750
 
751
  #. Text in echo
752
+ #: woo-discount-rules/view/view-pricing-rules.php:911
753
  msgid "Dynamic item count"
754
  msgstr ""
755
 
756
  #. Text in echo
757
+ #: woo-discount-rules/view/view-pricing-rules.php:645
758
  msgid "Each"
759
  msgstr ""
760
 
825
  msgstr ""
826
 
827
  #. Text in echo
828
+ #: woo-discount-rules/view/view-pricing-rules.php:965
829
  msgid "Enter only numeric values. Eg: <b>50</b> for 50% discount"
830
  msgstr ""
831
 
832
  #. Text in echo
833
+ #: woo-discount-rules/view/view-pricing-rules.php:576
834
  msgid "Enter the amount"
835
  msgstr ""
836
 
837
  #. Text in echo
838
+ #: woo-discount-rules/view/view-pricing-rules.php:651
839
  msgid "Equal"
840
  msgstr ""
841
 
874
  #. Text in echo
875
  #: woo-discount-rules/view/view-cart-rules.php:371
876
  #: woo-discount-rules/view/view-cart-rules.php:373
877
+ #: woo-discount-rules/view/view-pricing-rules.php:550
878
  msgid "First Order discount"
879
  msgstr ""
880
 
881
  #. Text in echo
882
+ #: woo-discount-rules/view/view-pricing-rules.php:674
883
  msgid "First quantity(s)"
884
  msgstr ""
885
 
886
  #. Text in echo
887
+ #: woo-discount-rules/view/view-pricing-rules.php:1013
888
  msgid "Fixed"
889
  msgstr ""
890
 
891
  #. Text in echo
892
+ #: woo-discount-rules/view/view-pricing-rules.php:804
893
+ #: woo-discount-rules/view/view-pricing-rules.php:806
894
  msgid "Fixed Price Per Unit"
895
  msgstr ""
896
 
897
  #. Text in echo
898
+ #: woo-discount-rules/view/view-pricing-rules.php:912
899
  msgid "Fixed item count (not recommended)"
900
  msgstr ""
901
 
902
  #. Text in echo
903
+ #: woo-discount-rules/view/view-pricing-rules.php:914
904
  msgid "Fixed item count - You need to provide item count manually. Dynamic item count - System will choose dynamically based on cart"
905
  msgstr ""
906
 
936
  msgstr ""
937
 
938
  #. Text in echo
939
+ #: woo-discount-rules/view/view-pricing-rules.php:892
940
  msgid "Free quantity"
941
  msgstr ""
942
 
954
  #. Text in echo
955
  #: woo-discount-rules/view/view-cart-rules.php:135
956
  #: woo-discount-rules/view/view-pricing-rules.php:144
957
+ #: woo-discount-rules/view/view-pricing-rules.php:652
958
  msgid "From"
959
  msgstr ""
960
 
961
  #. Text in echo
962
  #: woo-discount-rules/view/view-cart-rules.php:663
963
+ #: woo-discount-rules/view/view-pricing-rules.php:609
964
  msgid "From all previous orders"
965
  msgstr ""
966
 
985
 
986
  #. Text in echo
987
  #: woo-discount-rules/view/view-cart-rules.php:647
988
+ #: woo-discount-rules/view/view-pricing-rules.php:590
989
  msgid "Greater than or equal to"
990
  msgstr ""
991
 
995
  msgstr ""
996
 
997
  #. Text in function
998
+ #: woo-discount-rules/view/view-pricing-rules.php:695
999
  msgid "Guide for product dependent rules"
1000
  msgstr ""
1001
 
1005
  msgstr ""
1006
 
1007
  #. Text in function
1008
+ #: woo-discount-rules/view/view-pricing-rules.php:1002
1009
  msgid "Guide to create perfect BOGO rules"
1010
  msgstr ""
1011
 
1070
  msgstr ""
1071
 
1072
  #. Text in echo
1073
+ #: woo-discount-rules/view/view-pricing-rules.php:915
1074
  msgid "Item count"
1075
  msgstr ""
1076
 
1077
  #. Text in echo
1078
+ #: woo-discount-rules/view/view-pricing-rules.php:922
1079
  msgid "Item quantity"
1080
  msgstr ""
1081
 
1087
 
1088
  #. Text in echo
1089
  #: woo-discount-rules/view/view-cart-rules.php:670
1090
+ #: woo-discount-rules/view/view-pricing-rules.php:616
1091
  msgid "Last 1 year"
1092
  msgstr ""
1093
 
1094
  #. Text in echo
1095
  #: woo-discount-rules/view/view-cart-rules.php:665
1096
+ #: woo-discount-rules/view/view-pricing-rules.php:611
1097
  msgid "Last 14 days"
1098
  msgstr ""
1099
 
1100
  #. Text in echo
1101
  #: woo-discount-rules/view/view-cart-rules.php:669
1102
+ #: woo-discount-rules/view/view-pricing-rules.php:615
1103
  msgid "Last 180 days"
1104
  msgstr ""
1105
 
1106
  #. Text in echo
1107
  #: woo-discount-rules/view/view-cart-rules.php:666
1108
+ #: woo-discount-rules/view/view-pricing-rules.php:612
1109
  msgid "Last 30 days"
1110
  msgstr ""
1111
 
1112
  #. Text in echo
1113
  #: woo-discount-rules/view/view-cart-rules.php:667
1114
+ #: woo-discount-rules/view/view-pricing-rules.php:613
1115
  msgid "Last 60 days"
1116
  msgstr ""
1117
 
1118
  #. Text in echo
1119
  #: woo-discount-rules/view/view-cart-rules.php:664
1120
+ #: woo-discount-rules/view/view-pricing-rules.php:610
1121
  msgid "Last 7 days"
1122
  msgstr ""
1123
 
1124
  #. Text in echo
1125
  #: woo-discount-rules/view/view-cart-rules.php:668
1126
+ #: woo-discount-rules/view/view-pricing-rules.php:614
1127
  msgid "Last 90 days"
1128
  msgstr ""
1129
 
1159
 
1160
  #. Text in echo
1161
  #: woo-discount-rules/view/view-cart-rules.php:648
1162
+ #: woo-discount-rules/view/view-pricing-rules.php:591
1163
+ #: woo-discount-rules/view/view-pricing-rules.php:650
1164
  msgid "Less than or equal to"
1165
  msgstr ""
1166
 
1185
  msgstr ""
1186
 
1187
  #. Text in echo
1188
+ #: woo-discount-rules/view/view-pricing-rules.php:957
1189
  msgid "Limited percent"
1190
  msgstr ""
1191
 
1195
  msgstr ""
1196
 
1197
  #. Text in echo
1198
+ #: woo-discount-rules/view/view-pricing-rules.php:576
1199
  msgid "Make sure you have created the coupon already"
1200
  msgstr ""
1201
 
1202
  #. Text in echo
1203
+ #: woo-discount-rules/view/view-pricing-rules.php:746
1204
  msgid "Max Quantity"
1205
  msgstr ""
1206
 
1221
  msgstr ""
1222
 
1223
  #. Text in echo
1224
+ #: woo-discount-rules/view/view-pricing-rules.php:739
1225
  msgid "Min Quantity"
1226
  msgstr ""
1227
 
1228
  #. Text in echo
1229
+ #: woo-discount-rules/view/view-pricing-rules.php:649
1230
  msgid "More than or equal to"
1231
  msgstr ""
1232
 
1251
  #: woo-discount-rules/view/view-cart-rules.php:145
1252
  #: woo-discount-rules/view/view-cart-rules.php:750
1253
  #: woo-discount-rules/view/view-pricing-rules.php:183
1254
+ #: woo-discount-rules/view/view-pricing-rules.php:701
1255
  msgid "Next"
1256
  msgstr ""
1257
 
1277
  #: woo-discount-rules/view/view-cart-rules.php:559
1278
  #: woo-discount-rules/view/view-pricing-rules.php:238
1279
  #: woo-discount-rules/view/view-pricing-rules.php:254
1280
+ #: woo-discount-rules/view/view-pricing-rules.php:602
1281
+ #: woo-discount-rules/view/view-pricing-rules.php:686
1282
+ #: woo-discount-rules/view/view-pricing-rules.php:942
1283
  msgid "None selected"
1284
  msgstr ""
1285
 
1296
  #. Text in echo
1297
  #: woo-discount-rules/view/view-cart-rules.php:391
1298
  #: woo-discount-rules/view/view-cart-rules.php:393
1299
+ #: woo-discount-rules/view/view-pricing-rules.php:552
1300
  msgid "Number of previous orders made"
1301
  msgstr ""
1302
 
1303
  #. Text in echo
1304
  #: woo-discount-rules/view/view-cart-rules.php:401
1305
  #: woo-discount-rules/view/view-cart-rules.php:403
1306
+ #: woo-discount-rules/view/view-pricing-rules.php:553
1307
  msgid "Number of previous orders made with following products"
1308
  msgstr ""
1309
 
1310
  #. Text in echo
1311
+ #: woo-discount-rules/view/view-pricing-rules.php:892
1312
  msgid "Number of quantity(ies) in each selected product(s)"
1313
  msgstr ""
1314
 
1315
  #. Text in echo
1316
  #: woo-discount-rules/view/view-cart-rules.php:411
1317
  #: woo-discount-rules/view/view-cart-rules.php:413
1318
+ #: woo-discount-rules/view/view-pricing-rules.php:554
1319
  msgid "Number of quantity(s) in previous orders made with following products"
1320
  msgstr ""
1321
 
1347
  msgstr ""
1348
 
1349
  #. Text in echo
1350
+ #: woo-discount-rules/view/view-pricing-rules.php:1012
1351
  msgid "Percent"
1352
  msgstr ""
1353
 
1354
  #. Text in echo
1355
  #: woo-discount-rules/view/view-cart-rules.php:776
1356
+ #: woo-discount-rules/view/view-pricing-rules.php:786
1357
  msgid "Percentage Discount"
1358
  msgstr ""
1359
 
1386
  #. Text in echo
1387
  #: woo-discount-rules/view/view-cart-rules.php:749
1388
  #: woo-discount-rules/view/view-cart-rules.php:846
1389
+ #: woo-discount-rules/view/view-pricing-rules.php:700
1390
+ #: woo-discount-rules/view/view-pricing-rules.php:1019
1391
  msgid "Previous"
1392
  msgstr ""
1393
 
1394
  #. Text in echo
1395
  #: woo-discount-rules/view/view-cart-rules.php:782
1396
  #: woo-discount-rules/view/view-cart-rules.php:784
1397
+ #: woo-discount-rules/view/view-pricing-rules.php:794
1398
+ #: woo-discount-rules/view/view-pricing-rules.php:796
1399
  msgid "Price Discount"
1400
  msgstr ""
1401
 
1447
  msgstr ""
1448
 
1449
  #. Text in echo
1450
+ #: woo-discount-rules/view/view-pricing-rules.php:660
1451
  msgid "Product(s) from"
1452
  msgstr ""
1453
 
1478
 
1479
  #. Text in echo
1480
  #: woo-discount-rules/view/view-cart-rules.php:365
1481
+ #: woo-discount-rules/view/view-pricing-rules.php:536
1482
  msgid "Purchase History"
1483
  msgstr ""
1484
 
1490
  #. Text in echo
1491
  #: woo-discount-rules/view/view-cart-rules.php:381
1492
  #: woo-discount-rules/view/view-cart-rules.php:383
1493
+ #: woo-discount-rules/view/view-pricing-rules.php:551
1494
  msgid "Purchased amount"
1495
  msgstr ""
1496
 
1497
  #. Text in echo
1498
+ #: woo-discount-rules/view/view-pricing-rules.php:654
1499
+ #: woo-discount-rules/view/view-pricing-rules.php:657
1500
+ #: woo-discount-rules/view/view-pricing-rules.php:677
1501
  msgid "Quantity"
1502
  msgstr ""
1503
 
1527
  msgstr ""
1528
 
1529
  #. Text in echo
1530
+ #: woo-discount-rules/view/view-pricing-rules.php:987
1531
+ #: woo-discount-rules/view/view-pricing-rules.php:997
1532
  msgid "Read docs"
1533
  msgstr ""
1534
 
1544
 
1545
  #. Text in echo
1546
  #: woo-discount-rules/view/view-cart-rules.php:701
1547
+ #: woo-discount-rules/view/view-pricing-rules.php:974
1548
  msgid "Remove"
1549
  msgstr ""
1550
 
1602
  msgstr ""
1603
 
1604
  #. Text in echo
1605
+ #: woo-discount-rules/view/view-pricing-rules.php:885
1606
  msgid "Same product"
1607
  msgstr ""
1608
 
1718
  msgstr ""
1719
 
1720
  #. Text in echo
1721
+ #: woo-discount-rules/view/view-pricing-rules.php:675
1722
  msgid "Skip first quantity(s)"
1723
  msgstr ""
1724
 
1757
  msgstr ""
1758
 
1759
  #. Text in echo
1760
+ #: woo-discount-rules/view/view-pricing-rules.php:484
1761
  msgid "Subtotal"
1762
  msgstr ""
1763
 
1767
  msgstr ""
1768
 
1769
  #. Text in echo
1770
+ #: woo-discount-rules/view/view-pricing-rules.php:501
1771
  msgid "Subtotal atleast"
1772
  msgstr ""
1773
 
1794
  #. Text in echo
1795
  #: woo-discount-rules/view/settings_cart_rules.php:140
1796
  #: woo-discount-rules/view/settings_price_rules.php:311
1797
+ #: woo-discount-rules/view/view-pricing-rules.php:576
1798
+ #: woo-discount-rules/view/view-pricing-rules.php:753
1799
  msgid "Supported in PRO version"
1800
  msgstr ""
1801
 
1802
  #. Text in echo
1803
+ #: woo-discount-rules/view/view-pricing-rules.php:576
1804
  msgid "Supported in WooCommerce 3.x"
1805
  msgstr ""
1806
 
1910
  msgstr ""
1911
 
1912
  #. Text in function
1913
+ #: woo-discount-rules/view/view-pricing-rules.php:539
1914
  msgid "Useful for providing discounts based on previous purchase history.<br><b>Example:</b> First order discount, discount based on customer’s total spent so far. <a href=\"%s\">Read docs</a>."
1915
  msgstr ""
1916
 
1917
  #. Text in function
1918
+ #: woo-discount-rules/view/view-pricing-rules.php:397
1919
  msgid "Useful if you wish to activate this discount rule via coupon code.<br>You can create your own coupon code here or select coupons created from WooCommerce -> Coupons. <a href=\"%s\">Read docs</a>."
1920
  msgstr ""
1921
 
1922
  #. Text in function
1923
+ #: woo-discount-rules/view/view-pricing-rules.php:487
1924
+ msgid "Useful when you want to limit the rule based on subtotal. (Use this only when absolutely necessary.)<br>See cart based discount rule tab (<a href=\"%s\" target=\"_blank\">cart based rule</a>) for effective subtotal based discount rules."
1925
  msgstr ""
1926
 
1927
  #. Text in echo
1964
 
1965
  #. Text in echo
1966
  #: woo-discount-rules/view/view-cart-rules.php:462
1967
+ #: woo-discount-rules/view/view-pricing-rules.php:874
1968
+ #: woo-discount-rules/view/view-pricing-rules.php:1014
1969
  msgid "Value"
1970
  msgstr ""
1971
 
2031
  msgstr ""
2032
 
2033
  #. Text in echo
2034
+ #: woo-discount-rules/view/view-pricing-rules.php:671
2035
  msgid "and get discount on "
2036
  msgstr ""
2037
 
2038
  #. Text in echo
2039
  #: woo-discount-rules/view/view-cart-rules.php:650
2040
+ #: woo-discount-rules/view/view-pricing-rules.php:594
2041
  msgid "and the order status should be"
2042
  msgstr ""
2043
 
2044
  #. Text in echo
2045
  #: woo-discount-rules/view/view-cart-rules.php:92
2046
  #: woo-discount-rules/view/view-pricing-rules.php:74
2047
+ #: woo-discount-rules/view/view-pricing-rules.php:744
2048
+ #: woo-discount-rules/view/view-pricing-rules.php:927
2049
  msgid "ex. 1"
2050
  msgstr ""
2051
 
2052
  #. Text in echo
2053
+ #: woo-discount-rules/view/view-pricing-rules.php:965
2054
  msgid "ex. 10"
2055
  msgstr ""
2056
 
2057
  #. Text in echo
2058
+ #: woo-discount-rules/view/view-pricing-rules.php:751
2059
+ #: woo-discount-rules/view/view-pricing-rules.php:879
2060
  msgid "ex. 50"
2061
  msgstr ""
2062
 
2068
 
2069
  #. Text in echo
2070
  #: woo-discount-rules/view/view-cart-rules.php:674
2071
+ #: woo-discount-rules/view/view-pricing-rules.php:621
2072
  msgid "in days"
2073
  msgstr ""
2074
 
2075
  #. Text in echo
2076
+ #: woo-discount-rules/view/view-pricing-rules.php:882
2077
  msgid "receive discount for"
2078
  msgstr ""
2079
 
2080
  #. Text in echo
2081
+ #: woo-discount-rules/view/view-pricing-rules.php:656
2082
  msgid "to"
2083
  msgstr ""
2084
 
2140
  #. Text in echo
2141
  #: woo-discount-rules/view/settings_promotion.php:47
2142
  msgid "{{total_discount_price}} -> Total discount applied"
2143
+ msgstr ""
2144
+
2145
+ #. Text in echo
2146
+ #: woo-discount-rules/view/view-pricing-rules.php:716
2147
+ msgid "Bundle (Set) Discount should NOT be mixed with any other adjustment types when adding ranges. Example: If your first range\\"
2148
+ msgstr ""
2149
+
2150
+ #. Text in echo
2151
+ #: woo-discount-rules/includes/survey.php:288
2152
+ msgid "Close"
2153
+ msgstr ""
2154
+
2155
+ #. Text in function
2156
+ #: woo-discount-rules/includes/survey.php:293
2157
+ msgid "Discount Rules for WooCommerce"
2158
+ msgstr ""
2159
+
2160
+ #. Text in function
2161
+ #: woo-discount-rules/includes/survey.php:332
2162
+ msgid "I am switching to a different discount plugin."
2163
+ msgstr ""
2164
+
2165
+ #. Text in function
2166
+ #: woo-discount-rules/includes/survey.php:332
2167
+ msgid "I could not get my discount rule to work."
2168
+ msgstr ""
2169
+
2170
+ #. Text in function
2171
+ #: woo-discount-rules/includes/survey.php:332
2172
+ msgid "I no longer use this plugin."
2173
+ msgstr ""
2174
+
2175
+ #. Text in function
2176
+ #: woo-discount-rules/includes/survey.php:332
2177
+ msgid "I was instructed to deactivate by Flycart Support."
2178
+ msgstr ""
2179
+
2180
+ #. Text in function
2181
+ #: woo-discount-rules/includes/survey.php:293
2182
+ msgid "If you have a moment, please share why you are deactivating %s:"
2183
+ msgstr ""
2184
+
2185
+ #. Text in function
2186
+ #: woo-discount-rules/includes/survey.php:332
2187
+ msgid "It does not meet my discount requirements."
2188
+ msgstr ""
2189
+
2190
+ #. Text in function
2191
+ #: woo-discount-rules/includes/survey.php:332
2192
+ msgid "Other"
2193
+ msgstr ""
2194
+
2195
+ #. Text in function
2196
+ #: woo-discount-rules/includes/survey.php:82
2197
+ msgid "Please select an option"
2198
+ msgstr ""
2199
+
2200
+ #. Text in function
2201
+ #: woo-discount-rules/includes/survey.php:332
2202
+ msgid "Please share the reason"
2203
+ msgstr ""
2204
+
2205
+ #. Text in function
2206
+ #: woo-discount-rules/includes/survey.php:332
2207
+ msgid "Plugin is complex."
2208
+ msgstr ""
2209
+
2210
+ #. Text in function
2211
+ #: woo-discount-rules/includes/survey.php:287
2212
+ msgid "Quick Feedback"
2213
+ msgstr ""
2214
+
2215
+ #. Text in function
2216
+ #: woo-discount-rules/includes/survey.php:85
2217
+ msgid "Sending Feedback"
2218
+ msgstr ""
2219
+
2220
+ #. Text in function
2221
+ #: woo-discount-rules/includes/survey.php:327
2222
+ msgid "Skip & Deactivate"
2223
+ msgstr ""
2224
+
2225
+ #. Text in function
2226
+ #: woo-discount-rules/includes/survey.php:325
2227
+ msgid "Submit & Deactivate"
2228
+ msgstr ""
2229
+
2230
+ #. Text in echo
2231
+ #: woo-discount-rules/view/view-cart-rules.php:75
2232
+ #: woo-discount-rules/view/view-pricing-rules.php:57
2233
+ msgid "This rule is not running currently: "
2234
+ msgstr ""
2235
+
2236
+ #. Text in function
2237
+ #: woo-discount-rules/includes/survey.php:332
2238
+ msgid "Upgrading to PRO."
2239
  msgstr ""
includes/cart-rules.php CHANGED
@@ -1199,7 +1199,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
1199
  $tld = $this->getTLDFromEmail($user_email);
1200
  else
1201
  $tld = $this->getDomainFromEmail($user_email);
1202
- if(in_array($tld, $rule)){
1203
  return true;
1204
  }
1205
  } else if(get_current_user_id()){
@@ -1209,7 +1209,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
1209
  $tld = $this->getTLDFromEmail($user_email);
1210
  else
1211
  $tld = $this->getDomainFromEmail($user_email);
1212
- if(in_array($tld, $rule)){
1213
  return true;
1214
  }
1215
  } else {
@@ -1220,7 +1220,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
1220
  $tld = $this->getTLDFromEmail($user_email);
1221
  else
1222
  $tld = $this->getDomainFromEmail($user_email);
1223
- if(in_array($tld, $rule)){
1224
  return true;
1225
  }
1226
  }
@@ -2115,11 +2115,35 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
2115
  if(count($emailDomainArray)>1){
2116
  unset($emailDomainArray[0]);
2117
  }
2118
- return implode('.', $emailDomainArray);
 
 
 
 
2119
  }
 
2120
  return $emailArray[0];
2121
  }
2122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2123
  /**
2124
  * Get tld from email
2125
  * */
@@ -2544,7 +2568,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
2544
  $tld = $this->getTLDFromEmail($user_email);
2545
  else
2546
  $tld = $this->getDomainFromEmail($user_email);
2547
- if(in_array($tld, $rule)){
2548
  return true;
2549
  }
2550
  } else if(get_current_user_id()){
@@ -2554,7 +2578,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
2554
  $tld = $this->getTLDFromEmail($user_email);
2555
  else
2556
  $tld = $this->getDomainFromEmail($user_email);
2557
- if(in_array($tld, $rule)){
2558
  return true;
2559
  }
2560
  } else {
@@ -2565,7 +2589,7 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
2565
  $tld = $this->getTLDFromEmail($user_email);
2566
  else
2567
  $tld = $this->getDomainFromEmail($user_email);
2568
- if(in_array($tld, $rule)){
2569
  return true;
2570
  }
2571
  }
1199
  $tld = $this->getTLDFromEmail($user_email);
1200
  else
1201
  $tld = $this->getDomainFromEmail($user_email);
1202
+ if($this->validateTLD($tld, $rule)){
1203
  return true;
1204
  }
1205
  } else if(get_current_user_id()){
1209
  $tld = $this->getTLDFromEmail($user_email);
1210
  else
1211
  $tld = $this->getDomainFromEmail($user_email);
1212
+ if($this->validateTLD($tld, $rule)){
1213
  return true;
1214
  }
1215
  } else {
1220
  $tld = $this->getTLDFromEmail($user_email);
1221
  else
1222
  $tld = $this->getDomainFromEmail($user_email);
1223
+ if($this->validateTLD($tld, $rule)){
1224
  return true;
1225
  }
1226
  }
2115
  if(count($emailDomainArray)>1){
2116
  unset($emailDomainArray[0]);
2117
  }
2118
+ if(count($emailDomainArray) > 1){
2119
+ return array(end($emailDomainArray), implode('.', $emailDomainArray));
2120
+ } else {
2121
+ return implode('.', $emailDomainArray);
2122
+ }
2123
  }
2124
+
2125
  return $emailArray[0];
2126
  }
2127
 
2128
+ /**
2129
+ * validate tld from email
2130
+ * */
2131
+ protected function validateTLD($tlds, $rule){
2132
+ if(is_array($tlds)){
2133
+ foreach($tlds as $tld){
2134
+ if(in_array($tld, $rule)){
2135
+ return true;
2136
+ }
2137
+ }
2138
+ } else {
2139
+ if(in_array($tlds, $rule)){
2140
+ return true;
2141
+ }
2142
+ }
2143
+
2144
+ return false;
2145
+ }
2146
+
2147
  /**
2148
  * Get tld from email
2149
  * */
2568
  $tld = $this->getTLDFromEmail($user_email);
2569
  else
2570
  $tld = $this->getDomainFromEmail($user_email);
2571
+ if($this->validateTLD($tld, $rule)){
2572
  return true;
2573
  }
2574
  } else if(get_current_user_id()){
2578
  $tld = $this->getTLDFromEmail($user_email);
2579
  else
2580
  $tld = $this->getDomainFromEmail($user_email);
2581
+ if($this->validateTLD($tld, $rule)){
2582
  return true;
2583
  }
2584
  } else {
2589
  $tld = $this->getTLDFromEmail($user_email);
2590
  else
2591
  $tld = $this->getDomainFromEmail($user_email);
2592
+ if($this->validateTLD($tld, $rule)){
2593
  return true;
2594
  }
2595
  }
includes/discount-base.php CHANGED
@@ -1032,9 +1032,9 @@ if (!class_exists('FlycartWooDiscountBase')) {
1032
  'same_product' => esc_html__('Same product', 'woo-discount-rules'),
1033
  'any_one_cheapest_from_selected' => esc_html__('Any one cheapest from selected', 'woo-discount-rules'),
1034
  'any_one_cheapest_from_all_products' => esc_html__('Any one cheapest from all products', 'woo-discount-rules'),
1035
- 'more_than_one_cheapest_from_selected_category' => esc_html__('Cheapest in cart - selected category(ies)', 'woo-discount-rules'),
1036
- 'more_than_one_cheapest_from_selected' => esc_html__('Cheapest in cart - selected item(s)', 'woo-discount-rules'),
1037
- 'more_than_one_cheapest_from_all' => esc_html__('Cheapest among all items in cart', 'woo-discount-rules'),
1038
  'free_quantity' => esc_html__('Free quantity', 'woo-discount-rules'),
1039
  'number_of_quantities_in_each_products' => esc_html__('Number of quantity(ies) in each selected product(s)', 'woo-discount-rules'),
1040
  'fixed_item_count' => esc_html__('Fixed item count (not recommended)', 'woo-discount-rules'),
1032
  'same_product' => esc_html__('Same product', 'woo-discount-rules'),
1033
  'any_one_cheapest_from_selected' => esc_html__('Any one cheapest from selected', 'woo-discount-rules'),
1034
  'any_one_cheapest_from_all_products' => esc_html__('Any one cheapest from all products', 'woo-discount-rules'),
1035
+ 'more_than_one_cheapest_from_selected_category' => esc_html__('Buy X Get Y - Selected Categories (Cheapest in cart)', 'woo-discount-rules'),
1036
+ 'more_than_one_cheapest_from_selected' => esc_html__('Buy X Get Y - Selected item(s) (Cheapest in cart)', 'woo-discount-rules'),
1037
+ 'more_than_one_cheapest_from_all' => esc_html__('Buy X get Y - Cheapest among all items in cart', 'woo-discount-rules'),
1038
  'free_quantity' => esc_html__('Free quantity', 'woo-discount-rules'),
1039
  'number_of_quantities_in_each_products' => esc_html__('Number of quantity(ies) in each selected product(s)', 'woo-discount-rules'),
1040
  'fixed_item_count' => esc_html__('Fixed item count (not recommended)', 'woo-discount-rules'),
includes/pricing-rules.php CHANGED
@@ -1108,8 +1108,13 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1108
  if(isset($rule->subtotal_to_apply_option)){
1109
  if($rule->subtotal_to_apply_option == 'atleast'){
1110
  if(isset($rule->subtotal_to_apply) && $rule->subtotal_to_apply > 0){
1111
- //get_calculated_item_subtotal_manually
1112
- $sub_total = FlycartWooDiscountRulesGeneralHelper::get_calculated_item_subtotal_manually($rule);//FlycartWooDiscountRulesAdvancedHelper::get_calculated_item_subtotal();
 
 
 
 
 
1113
  if(!($rule->subtotal_to_apply <= $sub_total)){
1114
  $allowed = 0;
1115
  }
@@ -1412,6 +1417,15 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1412
  $is_cumulative = true;
1413
  if($bogo) $quantity = $this->getProductQuantityForCumulativeSpecificProducts($item, 0, $rule, $rule['type']['specific_products']);
1414
  else $quantity = $this->getProductQuantityForCumulativeSpecificProducts($item, $product_page, $rule, $rule['type']['specific_products']);
 
 
 
 
 
 
 
 
 
1415
  }
1416
  $discount_amount = $this->getAdjustmentAmount($item, $quantity, $this->array_first($rule['discount']), $rule, $product_page, $bogo, array(), $is_cumulative);
1417
  $applied_rules[$i] = $this->formatRulesToApply($discount_amount, $rule['name'], $index, $item['product_id'], $id);
@@ -1511,7 +1525,17 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
1511
  $is_cumulative = true;
1512
  if($bogo) $quantity = $this->getProductQuantityForCumulativeProducts($item, 0, $rule);
1513
  else $quantity = $this->getProductQuantityForCumulativeProducts($item, $product_page, $rule);
 
 
 
 
 
 
 
 
 
1514
  }
 
1515
  $discount_amount = $this->getAdjustmentAmount($item, $quantity, $this->array_first($rule['discount']), $rule, $product_page, $bogo, $rule['product_to_exclude'], $is_cumulative);
1516
  $applied_rules[$i] = $this->formatRulesToApply($discount_amount, $rule['name'], $index, $item['product_id'], $id);
1517
  }
1108
  if(isset($rule->subtotal_to_apply_option)){
1109
  if($rule->subtotal_to_apply_option == 'atleast'){
1110
  if(isset($rule->subtotal_to_apply) && $rule->subtotal_to_apply > 0){
1111
+ $sub_total_before_discount = apply_filters('woo_discount_rules_calculate_subtotal_before_discounts_for_price_rules', false, $rule);
1112
+ if($sub_total_before_discount){
1113
+ $sub_total = FlycartWooDiscountRulesAdvancedHelper::get_calculated_item_subtotal();
1114
+ } else {
1115
+ //get_calculated_item_subtotal_manually
1116
+ $sub_total = FlycartWooDiscountRulesGeneralHelper::get_calculated_item_subtotal_manually($rule);
1117
+ }
1118
  if(!($rule->subtotal_to_apply <= $sub_total)){
1119
  $allowed = 0;
1120
  }
1417
  $is_cumulative = true;
1418
  if($bogo) $quantity = $this->getProductQuantityForCumulativeSpecificProducts($item, 0, $rule, $rule['type']['specific_products']);
1419
  else $quantity = $this->getProductQuantityForCumulativeSpecificProducts($item, $product_page, $rule, $rule['type']['specific_products']);
1420
+ } else {
1421
+ if($product_page && !$bogo){
1422
+ if(FlycartWooDiscountRulesGeneralHelper::addAQuantityForProductStrikeOut()){
1423
+ } else {
1424
+ if($quantity > 0){
1425
+ $quantity = $quantity-1;
1426
+ }
1427
+ }
1428
+ }
1429
  }
1430
  $discount_amount = $this->getAdjustmentAmount($item, $quantity, $this->array_first($rule['discount']), $rule, $product_page, $bogo, array(), $is_cumulative);
1431
  $applied_rules[$i] = $this->formatRulesToApply($discount_amount, $rule['name'], $index, $item['product_id'], $id);
1525
  $is_cumulative = true;
1526
  if($bogo) $quantity = $this->getProductQuantityForCumulativeProducts($item, 0, $rule);
1527
  else $quantity = $this->getProductQuantityForCumulativeProducts($item, $product_page, $rule);
1528
+ } else {
1529
+ if($product_page && !$bogo){
1530
+ if(FlycartWooDiscountRulesGeneralHelper::addAQuantityForProductStrikeOut()){
1531
+ } else {
1532
+ if($quantity > 0){
1533
+ $quantity = $quantity-1;
1534
+ }
1535
+ }
1536
+ }
1537
  }
1538
+
1539
  $discount_amount = $this->getAdjustmentAmount($item, $quantity, $this->array_first($rule['discount']), $rule, $product_page, $bogo, $rule['product_to_exclude'], $is_cumulative);
1540
  $applied_rules[$i] = $this->formatRulesToApply($discount_amount, $rule['name'], $index, $item['product_id'], $id);
1541
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flycart.org/
4
  Tags: woocommerce, coupons, discounts, dynamic pricing, Buy One Get One Free, pricing deals, bulk discount, discount
5
  Requires at least: 4.4.1
6
  Tested up to: 5.3
7
- Stable tag: 1.9.4
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -336,6 +336,12 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
336
 
337
  == Changelog ==
338
 
 
 
 
 
 
 
339
  = 1.9.4 - 05/02/20 =
340
  * Fix - Each category option in cart rules doesn't consider product exclude option.
341
  * Fix - 7.3 compatible fix warning issue.
4
  Tags: woocommerce, coupons, discounts, dynamic pricing, Buy One Get One Free, pricing deals, bulk discount, discount
5
  Requires at least: 4.4.1
6
  Tested up to: 5.3
7
+ Stable tag: 1.9.5
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
336
 
337
  == Changelog ==
338
 
339
+ = 1.9.5 - 19/02/20 =
340
+ * Fix - Strikeout for On after apply discount option doesn't works with non cumulative options.
341
+ * Improvement - Text improvements
342
+ * Improvement - Email TLD improvement
343
+ * Improvement - Event apply_filters('woo_discount_rules_calculate_subtotal_before_discounts_for_price_rules', false, $rule);
344
+
345
  = 1.9.4 - 05/02/20 =
346
  * Fix - Each category option in cart rules doesn't consider product exclude option.
347
  * Fix - 7.3 compatible fix warning issue.
view/view-cart-rules.php CHANGED
@@ -72,7 +72,7 @@ $has_large_no_of_coupon = FlycartWooDiscountBase::hasLargeNumberOfCoupon();
72
  ?>
73
  <div class="notice inline notice notice-warning notice-alt">
74
  <p>
75
- <b><?php esc_html_e("This rule is not running currently: "); ?></b><?php echo $validateDateString; ?>
76
  </p>
77
  </div>
78
  <br>
72
  ?>
73
  <div class="notice inline notice notice-warning notice-alt">
74
  <p>
75
+ <b><?php esc_html_e("This rule is not running currently: ", 'woo-discount-rules'); ?></b><?php echo $validateDateString; ?>
76
  </p>
77
  </div>
78
  <br>
view/view-pricing-rules.php CHANGED
@@ -54,7 +54,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
54
  ?>
55
  <div class="notice inline notice notice-warning notice-alt">
56
  <p>
57
- <b><?php esc_html_e("This rule is not running currently: "); ?></b><?php echo $validateDateString; ?>
58
  </p>
59
  </div>
60
  <br>
@@ -841,9 +841,9 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
841
  }
842
  if ($opt == 'more_than_one_cheapest') { ?> selected=selected <?php } ?>>
843
  <?php if (!$pro) { ?>
844
- <?php esc_html_e('Cheapest in cart - selected item(s)', 'woo-discount-rules'); ?> <b><?php echo $suffix; ?></b>
845
  <?php } else { ?>
846
- <?php esc_html_e('Cheapest in cart - selected item(s)', 'woo-discount-rules'); ?>
847
  <?php } ?>
848
  </option>
849
  <option
@@ -851,9 +851,9 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
851
  }
852
  if ($opt == 'more_than_one_cheapest_from_cat') { ?> selected=selected <?php } ?>>
853
  <?php if (!$pro) { ?>
854
- <?php esc_html_e('Cheapest in cart - selected category(ies)', 'woo-discount-rules'); ?> <b><?php echo $suffix; ?></b>
855
  <?php } else { ?>
856
- <?php esc_html_e('Cheapest in cart - selected category(ies)', 'woo-discount-rules'); ?>
857
  <?php } ?>
858
  </option>
859
  <option
@@ -861,9 +861,9 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
861
  }
862
  if ($opt == 'more_than_one_cheapest_from_all') { ?> selected=selected <?php } ?>>
863
  <?php if (!$pro) { ?>
864
- <?php esc_html_e('Cheapest among all items in cart', 'woo-discount-rules'); ?> <b><?php echo $suffix; ?></b>
865
  <?php } else { ?>
866
- <?php esc_html_e('Cheapest among all items in cart', 'woo-discount-rules'); ?>
867
  <?php } ?>
868
  </option>
869
  </select></label>
54
  ?>
55
  <div class="notice inline notice notice-warning notice-alt">
56
  <p>
57
+ <b><?php esc_html_e("This rule is not running currently: ", 'woo-discount-rules'); ?></b><?php echo $validateDateString; ?>
58
  </p>
59
  </div>
60
  <br>
841
  }
842
  if ($opt == 'more_than_one_cheapest') { ?> selected=selected <?php } ?>>
843
  <?php if (!$pro) { ?>
844
+ <?php esc_html_e('Buy X Get Y - Selected item(s) (Cheapest in cart)', 'woo-discount-rules'); ?> <b><?php echo $suffix; ?></b>
845
  <?php } else { ?>
846
+ <?php esc_html_e('Buy X Get Y - Selected item(s) (Cheapest in cart)', 'woo-discount-rules'); ?>
847
  <?php } ?>
848
  </option>
849
  <option
851
  }
852
  if ($opt == 'more_than_one_cheapest_from_cat') { ?> selected=selected <?php } ?>>
853
  <?php if (!$pro) { ?>
854
+ <?php esc_html_e('Buy X Get Y - Selected Categories (Cheapest in cart)', 'woo-discount-rules'); ?> <b><?php echo $suffix; ?></b>
855
  <?php } else { ?>
856
+ <?php esc_html_e('Buy X Get Y - Selected Categories (Cheapest in cart)', 'woo-discount-rules'); ?>
857
  <?php } ?>
858
  </option>
859
  <option
861
  }
862
  if ($opt == 'more_than_one_cheapest_from_all') { ?> selected=selected <?php } ?>>
863
  <?php if (!$pro) { ?>
864
+ <?php esc_html_e('Buy X get Y - Cheapest among all items in cart', 'woo-discount-rules'); ?> <b><?php echo $suffix; ?></b>
865
  <?php } else { ?>
866
+ <?php esc_html_e('Buy X get Y - Cheapest among all items in cart', 'woo-discount-rules'); ?>
867
  <?php } ?>
868
  </option>
869
  </select></label>
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.9.4
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.9.5
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Domain Path: /i18n/languages/