Discount Rules for WooCommerce - Version 2.3.9

Version Description

  • 21/10/21 =
  • Feature - Option to hide other shipping methods when free shipping is available.
  • Improvement - Skip invisible variant price for doing strikeout.
  • Improvement - Alternative for recalculate discount before apply coupon event.
  • Improvement - Taxonomy cache improvement.
  • Improvement - Compatible for facebook for woocommerce.
  • Improvement - Display discount info based on tax in discount bar.
  • Improvement - Removed customize-table.css and added though inline.
  • Improvement - Load the awdr_pro.js in footer.
  • Improvement - Strikeout price for product addon.
  • Improvement - Onsale shortcode index doesn't update on empty value.
  • Improvement - Event: advanced_woo_discount_rules_do_process_discounts_of_each_rule.
  • Improvement - Event: advanced_woo_discount_rules_coupon_value.
  • Improvement - Event: Additional param in advanced_woo_discount_rules_line_item_subtotal_saved_text.
  • Fix - First order condition doesn't worked for mix guest and login
  • Fix - Handle auto add products based on language while having wpml.
  • Fix - Product not auto added when previously added is not in stock.
  • Fix - Fatal error while getting product id.
  • Fix - Buy X get X not applies while having less quantity.
  • Fix - Displaying strikeout in reverse.
  • Fix - Wrong discount quantity on some cases in cart.
  • Fix - Error while auto add (on product doesn't exists).
  • Fix - Free shipping with other exclusive rule.
Download this release

Release Info

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

Code changes from version 2.3.8 to 2.3.9

i18n/languages/woo-discount-rules.pot CHANGED
@@ -4,8 +4,8 @@ msgstr ""
4
  "Content-Type: text/plain; charset=UTF-8\n"
5
  "Content-Transfer-Encoding: 8bit\n"
6
  "Project-Id-Version: Woo Discount Rules\n"
7
- "POT-Creation-Date: 2021-07-20\n"
8
- "PO-Revision-Date: 2021-07-20n"
9
  "Language-Team: Flycart\n"
10
  "MIME-Version: 1.0\n"
11
  "Language: \n"
@@ -18,7 +18,7 @@ msgstr ""
18
  msgid "Authentication required"
19
  msgstr ""
20
 
21
- #: common.php:17 v2/App/Controllers/Admin/WDRAjax.php:767
22
  msgid "Invalid request"
23
  msgstr ""
24
 
@@ -193,10 +193,10 @@ msgstr ""
193
  #: v2/App/Views/Admin/Tabs/settings.php:24
194
  #: v2/App/Views/Admin/Tabs/settings.php:65
195
  #: v2/App/Views/Admin/Tabs/settings.php:138
196
- #: v2/App/Views/Admin/Tabs/settings.php:202
197
- #: v2/App/Views/Admin/Tabs/settings.php:273
198
- #: v2/App/Views/Admin/Tabs/settings.php:392
199
- #: v2/App/Views/Admin/Tabs/settings.php:476
200
  msgid "Read Docs"
201
  msgstr ""
202
 
@@ -317,7 +317,7 @@ msgstr ""
317
  #: v1/view/settings_promotion.php:22 v1/view/settings_promotion.php:62
318
  #: v1/view/settings_promotion.php:97 v1/view/settings_promotion.php:132
319
  #: v2/App/Views/Admin/Tabs/DiscountRule.php:252
320
- #: v2/App/Views/Admin/Tabs/settings.php:396
321
  msgid "Disabled"
322
  msgstr ""
323
 
@@ -779,7 +779,7 @@ msgstr ""
779
  #: v1/includes/discount-base.php:1173 v1/view/settings_price_rules.php:208
780
  #: v1/view/settings_price_rules.php:226 v1/view/settings_price_rules.php:244
781
  #: v1/view/settings_price_rules.php:262
782
- #: v2/App/Views/Admin/Tabs/settings.php:637
783
  msgid "Show"
784
  msgstr ""
785
 
@@ -1018,7 +1018,7 @@ msgid ""
1018
  msgstr ""
1019
 
1020
  #: v1/includes/discount-base.php:1302
1021
- #: v2/App/Controllers/ManageDiscount.php:1192
1022
  #, php-format
1023
  msgid ""
1024
  "Sorry, it is not possible to apply coupon <b>\"%s\"</b> as you already have "
@@ -1440,7 +1440,7 @@ msgstr ""
1440
  #: v1/view/includes/cart-menu.php:13 v1/view/includes/sub-menu.php:13
1441
  #: v1/view/template/discount-table.php:42 v1/view/view-cart-rules.php:756
1442
  #: v1/view/view-pricing-rules.php:708 v2/App/Controllers/Admin/Settings.php:463
1443
- #: v2/App/Helpers/Rule.php:1227 v2/App/Views/Admin/Rules/Discounts/Bulk.php:59
1444
  #: v2/App/Views/Admin/Rules/Manage.php:209
1445
  msgid "Discount"
1446
  msgstr ""
@@ -1498,7 +1498,7 @@ msgstr ""
1498
  msgid "Performance"
1499
  msgstr ""
1500
 
1501
- #: v1/view/settings.php:42 v2/App/Views/Admin/Tabs/settings.php:356
1502
  msgid "Promotion"
1503
  msgstr ""
1504
 
@@ -1625,13 +1625,13 @@ msgstr ""
1625
  #: v2/App/Views/Admin/Tabs/settings.php:87
1626
  #: v2/App/Views/Admin/Tabs/settings.php:103
1627
  #: v2/App/Views/Admin/Tabs/settings.php:118
1628
- #: v2/App/Views/Admin/Tabs/settings.php:207
1629
- #: v2/App/Views/Admin/Tabs/settings.php:302
1630
- #: v2/App/Views/Admin/Tabs/settings.php:331
1631
- #: v2/App/Views/Admin/Tabs/settings.php:423
1632
- #: v2/App/Views/Admin/Tabs/settings.php:561
1633
- #: v2/App/Views/Admin/Tabs/settings.php:578
1634
- #: v2/App/Views/Admin/Tabs/settings.php:595
1635
  msgid "Yes"
1636
  msgstr ""
1637
 
@@ -1647,13 +1647,13 @@ msgstr ""
1647
  #: v2/App/Views/Admin/Tabs/settings.php:91
1648
  #: v2/App/Views/Admin/Tabs/settings.php:107
1649
  #: v2/App/Views/Admin/Tabs/settings.php:122
1650
- #: v2/App/Views/Admin/Tabs/settings.php:210
1651
- #: v2/App/Views/Admin/Tabs/settings.php:306
1652
- #: v2/App/Views/Admin/Tabs/settings.php:337
1653
- #: v2/App/Views/Admin/Tabs/settings.php:428
1654
- #: v2/App/Views/Admin/Tabs/settings.php:566
1655
- #: v2/App/Views/Admin/Tabs/settings.php:583
1656
- #: v2/App/Views/Admin/Tabs/settings.php:600
1657
  msgid "No"
1658
  msgstr ""
1659
 
@@ -1765,24 +1765,24 @@ msgid "Show Price discount on product pages :"
1765
  msgstr ""
1766
 
1767
  #: v1/view/settings_price_rules.php:128
1768
- #: v2/App/Views/Admin/Tabs/settings.php:277
1769
  msgid "Show when a rule condition is matched"
1770
  msgstr ""
1771
 
1772
  #: v1/view/settings_price_rules.php:131
1773
- #: v2/App/Views/Admin/Tabs/settings.php:278
1774
  msgid "Show after a rule condition is matched"
1775
  msgstr ""
1776
 
1777
  #: v1/view/settings_price_rules.php:134
1778
- #: v2/App/Views/Admin/Tabs/settings.php:279
1779
  msgid "Shown on quantity update (dynamic)"
1780
  msgstr ""
1781
 
1782
  #: v1/view/settings_price_rules.php:137 v1/view/settings_price_rules.php:211
1783
  #: v1/view/settings_price_rules.php:229 v1/view/settings_price_rules.php:247
1784
  #: v1/view/settings_price_rules.php:265
1785
- #: v2/App/Views/Admin/Tabs/settings.php:640
1786
  msgid "Don't Show"
1787
  msgstr ""
1788
 
@@ -1891,19 +1891,19 @@ msgstr ""
1891
  msgid "Display savings text (for price rules)"
1892
  msgstr ""
1893
 
1894
- #: v1/view/settings_promotion.php:25 v2/App/Views/Admin/Tabs/settings.php:397
1895
  msgid "On each line item"
1896
  msgstr ""
1897
 
1898
- #: v1/view/settings_promotion.php:28 v2/App/Views/Admin/Tabs/settings.php:398
1899
  msgid "On after total"
1900
  msgstr ""
1901
 
1902
- #: v1/view/settings_promotion.php:31 v2/App/Views/Admin/Tabs/settings.php:399
1903
  msgid "Both in line item and after total"
1904
  msgstr ""
1905
 
1906
- #: v1/view/settings_promotion.php:39 v2/App/Views/Admin/Tabs/settings.php:406
1907
  msgid "Savings text to show"
1908
  msgstr ""
1909
 
@@ -1940,19 +1940,19 @@ msgid ""
1940
  "discounts)"
1941
  msgstr ""
1942
 
1943
- #: v1/view/settings_promotion.php:134 v2/App/Views/Admin/Tabs/settings.php:382
1944
  msgid "Shop page"
1945
  msgstr ""
1946
 
1947
- #: v1/view/settings_promotion.php:137 v2/App/Views/Admin/Tabs/settings.php:383
1948
  msgid "Product page"
1949
  msgstr ""
1950
 
1951
- #: v1/view/settings_promotion.php:140 v2/App/Views/Admin/Tabs/settings.php:384
1952
  msgid "Cart page"
1953
  msgstr ""
1954
 
1955
- #: v1/view/settings_promotion.php:143 v2/App/Views/Admin/Tabs/settings.php:385
1956
  msgid "Checkout page"
1957
  msgstr ""
1958
 
@@ -1987,7 +1987,7 @@ msgstr ""
1987
 
1988
  #: v1/view/template/loop/sale-flash.php:23
1989
  #: v1/view/template/single-product/sale-flash.php:23
1990
- #: v2/App/Views/Admin/Tabs/settings.php:182
1991
  #: v2/App/Views/Templates/loop/sale-flash.php:23
1992
  #: v2/App/Views/Templates/single-product/sale-flash.php:23
1993
  msgid "Sale!"
@@ -2406,7 +2406,7 @@ msgid "Do not use"
2406
  msgstr ""
2407
 
2408
  #: v1/view/view-pricing-rules.php:394 v2/App/Helpers/Helper.php:171
2409
- #: v2/App/Views/Admin/Tabs/settings.php:317
2410
  msgid "Coupon"
2411
  msgstr ""
2412
 
@@ -2607,6 +2607,16 @@ msgstr ""
2607
  msgid "Limitation: Strikeout for add-on price and subtotal in product page."
2608
  msgstr ""
2609
 
 
 
 
 
 
 
 
 
 
 
2610
  #: v2/App/Compatibility/ProductAddOnsByWooCommerce.php:108
2611
  msgid "Show discount price in product pages for WooCommerce Product Add Ons."
2612
  msgstr ""
@@ -2622,7 +2632,7 @@ msgstr ""
2622
  #: v2/App/Conditions/CartLineItemsCount.php:16
2623
  #: v2/App/Conditions/CartSubTotal.php:19 v2/App/Helpers/ProOptions.php:80
2624
  #: v2/App/Helpers/ProOptions.php:136 v2/App/Helpers/ProOptions.php:144
2625
- #: v2/App/Helpers/ProOptions.php:152 v2/App/Views/Admin/Tabs/settings.php:290
2626
  msgid "Cart"
2627
  msgstr ""
2628
 
@@ -2702,7 +2712,7 @@ msgid "Copied!"
2702
  msgstr ""
2703
 
2704
  #: v2/App/Controllers/Admin/Settings.php:453
2705
- #: v2/App/Views/Admin/Tabs/settings.php:541
2706
  msgid "Copy ShortCode"
2707
  msgstr ""
2708
 
@@ -3036,7 +3046,7 @@ msgstr ""
3036
  msgid "All Rules (except cart adjustment type)"
3037
  msgstr ""
3038
 
3039
- #: v2/App/Controllers/Admin/WDRAjax.php:728
3040
  msgid "Search State"
3041
  msgstr ""
3042
 
@@ -3070,31 +3080,31 @@ msgstr ""
3070
  msgid "Bulk Discount"
3071
  msgstr ""
3072
 
3073
- #: v2/App/Controllers/ManageDiscount.php:148
3074
  msgid "<span class=\"onsale\">{{percentage}}%</span>"
3075
  msgstr ""
3076
 
3077
- #: v2/App/Controllers/ManageDiscount.php:159
3078
  msgid "<span class=\"onsale\">Sale!</span>"
3079
  msgstr ""
3080
 
3081
- #: v2/App/Controllers/ManageDiscount.php:729
3082
- #: v2/App/Controllers/ManageDiscount.php:940
3083
- #: v2/App/Controllers/ManageDiscount.php:943 v2/App/Helpers/Helper.php:271
3084
  #: v2/App/Helpers/Helper.php:272
3085
  msgid "Cart discount"
3086
  msgstr ""
3087
 
3088
- #: v2/App/Controllers/ManageDiscount.php:1206
3089
  msgid "Coupon code applied successfully."
3090
  msgstr ""
3091
 
3092
- #: v2/App/Controllers/ManageDiscount.php:1626
3093
- #: v2/App/Views/Admin/Tabs/settings.php:439
3094
  msgid "Discount <strong>{{title}}</strong> has been applied to your cart."
3095
  msgstr ""
3096
 
3097
- #: v2/App/Controllers/ManageDiscount.php:1752
3098
  msgid "You saved {{total_discount}}"
3099
  msgstr ""
3100
 
@@ -3347,13 +3357,13 @@ msgstr ""
3347
  msgid "Bundle (Set) Discount - PRO -"
3348
  msgstr ""
3349
 
3350
- #: v2/App/Helpers/Rule.php:1305 v2/App/Helpers/Rule.php:1405
3351
  #: v2/App/Views/Admin/Tabs/ImportExport.php:101
3352
  msgid "Untitled Rule"
3353
  msgstr ""
3354
 
3355
  #: v2/App/Helpers/Validation.php:146 v2/App/Helpers/Validation.php:151
3356
- #: v2/App/Helpers/Validation.php:348 v2/App/Helpers/Validation.php:543
3357
  msgid "Invalid characters"
3358
  msgstr ""
3359
 
@@ -3390,7 +3400,7 @@ msgstr ""
3390
  msgid "Invalid inputs"
3391
  msgstr ""
3392
 
3393
- #: v2/App/Helpers/Validation.php:517
3394
  msgid "Validation error"
3395
  msgstr ""
3396
 
@@ -3444,23 +3454,23 @@ msgid ""
3444
  "Woocommerce after main content(Archive / Shop / Cat Pages / single product)"
3445
  msgstr ""
3446
 
3447
- #: v2/App/Helpers/Woocommerce.php:981 v2/App/Views/Admin/Tabs/settings.php:228
3448
- #: v2/App/Views/Admin/Tabs/settings.php:246
3449
  msgid "Woocommerce before single product"
3450
  msgstr ""
3451
 
3452
- #: v2/App/Helpers/Woocommerce.php:982 v2/App/Views/Admin/Tabs/settings.php:230
3453
- #: v2/App/Views/Admin/Tabs/settings.php:248
3454
  msgid "Woocommerce before single product summary"
3455
  msgstr ""
3456
 
3457
- #: v2/App/Helpers/Woocommerce.php:983 v2/App/Views/Admin/Tabs/settings.php:229
3458
- #: v2/App/Views/Admin/Tabs/settings.php:247
3459
  msgid "Woocommerce after single product summary"
3460
  msgstr ""
3461
 
3462
- #: v2/App/Helpers/Woocommerce.php:984 v2/App/Views/Admin/Tabs/settings.php:227
3463
- #: v2/App/Views/Admin/Tabs/settings.php:245
3464
  msgid "Woocommerce after single product"
3465
  msgstr ""
3466
 
@@ -3668,7 +3678,7 @@ msgid "Preview"
3668
  msgstr ""
3669
 
3670
  #: v2/App/Views/Admin/Rules/DiscountBatch/Main.php:22
3671
- #: v2/App/Views/Admin/Tabs/settings.php:621
3672
  msgid "Note:"
3673
  msgstr ""
3674
 
@@ -3789,7 +3799,7 @@ msgid "Discount Type"
3789
  msgstr ""
3790
 
3791
  #: v2/App/Views/Admin/Rules/Discounts/Bulk.php:63
3792
- #: v2/App/Views/Admin/Tabs/settings.php:687
3793
  msgid "Discount Value"
3794
  msgstr ""
3795
 
@@ -4317,7 +4327,7 @@ msgid "BOGO Adjustment"
4317
  msgstr ""
4318
 
4319
  #: v2/App/Views/Admin/Tabs/Recipe.php:54
4320
- #: v2/App/Views/Admin/Tabs/settings.php:530
4321
  msgid ""
4322
  "Unlock this feature by <a href='https://www.flycart.org/products/wordpress/"
4323
  "woocommerce-discount-rules?utm_source=woo-discount-rules-"
@@ -4536,410 +4546,410 @@ msgstr ""
4536
  msgid "Customize the sale badge"
4537
  msgstr ""
4538
 
4539
- #: v2/App/Views/Admin/Tabs/settings.php:172
4540
  msgid ""
4541
  "I would like to display percentage in sale badge (Displays only when rule "
4542
  "matches else displays default sale badge content)."
4543
  msgstr ""
4544
 
4545
- #: v2/App/Views/Admin/Tabs/settings.php:177
4546
  msgid "Sale badge content"
4547
  msgstr ""
4548
 
4549
- #: v2/App/Views/Admin/Tabs/settings.php:178
4550
- #: v2/App/Views/Admin/Tabs/settings.php:190
4551
  msgid ""
4552
  "You can use HTML inside. <br><b>IMPORTANT NOTE:</b> This customized sale "
4553
  "badge will be applicable only for products that are part of the discount "
4554
  "rules configured in this plugin <b>Eg:</b><span class=\"onsale\">Sale!</span>"
4555
  msgstr ""
4556
 
4557
- #: v2/App/Views/Admin/Tabs/settings.php:189
4558
  msgid "Sale badge percentage content"
4559
  msgstr ""
4560
 
4561
- #: v2/App/Views/Admin/Tabs/settings.php:194
4562
  msgid "{{percentage}}%"
4563
  msgstr ""
4564
 
4565
- #: v2/App/Views/Admin/Tabs/settings.php:201
4566
  msgid "Show discount table "
4567
  msgstr ""
4568
 
4569
- #: v2/App/Views/Admin/Tabs/settings.php:202
4570
  msgid "Show discount table on product page"
4571
  msgstr ""
4572
 
4573
- #: v2/App/Views/Admin/Tabs/settings.php:211
4574
- #: v2/App/Views/Admin/Tabs/settings.php:616
4575
  msgid "Customize Discount Table"
4576
  msgstr ""
4577
 
4578
- #: v2/App/Views/Admin/Tabs/settings.php:218
4579
  msgid "Position to show discount table"
4580
  msgstr ""
4581
 
4582
- #: v2/App/Views/Admin/Tabs/settings.php:219
4583
  msgid "Position to show discount table on product page"
4584
  msgstr ""
4585
 
4586
- #: v2/App/Views/Admin/Tabs/settings.php:223
4587
- #: v2/App/Views/Admin/Tabs/settings.php:241
4588
  msgid "Woocommerce before add to cart form"
4589
  msgstr ""
4590
 
4591
- #: v2/App/Views/Admin/Tabs/settings.php:224
4592
- #: v2/App/Views/Admin/Tabs/settings.php:242
4593
  msgid "Woocommerce product meta end"
4594
  msgstr ""
4595
 
4596
- #: v2/App/Views/Admin/Tabs/settings.php:225
4597
- #: v2/App/Views/Admin/Tabs/settings.php:243
4598
  msgid "Woocommerce product meta start"
4599
  msgstr ""
4600
 
4601
- #: v2/App/Views/Admin/Tabs/settings.php:226
4602
- #: v2/App/Views/Admin/Tabs/settings.php:244
4603
  msgid "Woocommerce after add to cart form"
4604
  msgstr ""
4605
 
4606
- #: v2/App/Views/Admin/Tabs/settings.php:236
4607
  msgid "Position to show discount bar"
4608
  msgstr ""
4609
 
4610
- #: v2/App/Views/Admin/Tabs/settings.php:237
4611
  msgid "Position to show discount bar on product page"
4612
  msgstr ""
4613
 
4614
- #: v2/App/Views/Admin/Tabs/settings.php:254
4615
  msgid "Show strikeout price"
4616
  msgstr ""
4617
 
4618
- #: v2/App/Views/Admin/Tabs/settings.php:255
4619
  msgid "Show product strikeout price on"
4620
  msgstr ""
4621
 
4622
- #: v2/App/Views/Admin/Tabs/settings.php:260
4623
  msgid "On shop page?"
4624
  msgstr ""
4625
 
4626
- #: v2/App/Views/Admin/Tabs/settings.php:263
4627
  msgid "On product page?"
4628
  msgstr ""
4629
 
4630
- #: v2/App/Views/Admin/Tabs/settings.php:266
4631
  msgid "On category page?"
4632
  msgstr ""
4633
 
4634
- #: v2/App/Views/Admin/Tabs/settings.php:272
4635
  msgid "Show Strikeout when"
4636
  msgstr ""
4637
 
4638
- #: v2/App/Views/Admin/Tabs/settings.php:273
4639
  msgid "Show Strikeout when this option is matched"
4640
  msgstr ""
4641
 
4642
- #: v2/App/Views/Admin/Tabs/settings.php:296
4643
  msgid "Show strikeout on cart"
4644
  msgstr ""
4645
 
4646
- #: v2/App/Views/Admin/Tabs/settings.php:297
4647
  msgid "Show price strikeout on cart"
4648
  msgstr ""
4649
 
4650
- #: v2/App/Views/Admin/Tabs/settings.php:311
4651
  msgid "Apply cart discount as"
4652
  msgstr ""
4653
 
4654
- #: v2/App/Views/Admin/Tabs/settings.php:312
4655
  msgid "Apply cart discount as fee/coupon"
4656
  msgstr ""
4657
 
4658
- #: v2/App/Views/Admin/Tabs/settings.php:316
4659
  msgid "Fee"
4660
  msgstr ""
4661
 
4662
- #: v2/App/Views/Admin/Tabs/settings.php:323
4663
  msgid "Combine all cart discounts"
4664
  msgstr ""
4665
 
4666
- #: v2/App/Views/Admin/Tabs/settings.php:324
4667
  msgid "Combine all cart discounts in single discount label"
4668
  msgstr ""
4669
 
4670
- #: v2/App/Views/Admin/Tabs/settings.php:343
4671
- #: v2/App/Views/Admin/Tabs/settings.php:344
4672
  msgid "Discount label for combined discounts"
4673
  msgstr ""
4674
 
4675
- #: v2/App/Views/Admin/Tabs/settings.php:361
4676
  msgid "Condition based promotion"
4677
  msgstr ""
4678
 
4679
- #: v2/App/Views/Admin/Tabs/settings.php:362
4680
  msgid ""
4681
  "Display Condition based promotion messages in cart/product/shop pages<br>If "
4682
  "enabled an option to add promotion message will displays on each rule(when "
4683
  "promotion condition is added)"
4684
  msgstr ""
4685
 
4686
- #: v2/App/Views/Admin/Tabs/settings.php:367
4687
  msgid "Subtotal Promotion?"
4688
  msgstr ""
4689
 
4690
- #: v2/App/Views/Admin/Tabs/settings.php:370
4691
  msgid "Cart Quantity Promotion?"
4692
  msgstr ""
4693
 
4694
- #: v2/App/Views/Admin/Tabs/settings.php:376
4695
  msgid "Condition based promo text"
4696
  msgstr ""
4697
 
4698
- #: v2/App/Views/Admin/Tabs/settings.php:377
4699
  msgid ""
4700
  "Condition based promo text (available only for subtotal based discounts) "
4701
  msgstr ""
4702
 
4703
- #: v2/App/Views/Admin/Tabs/settings.php:381
4704
  msgid "Select the page to display promotion message"
4705
  msgstr ""
4706
 
4707
- #: v2/App/Views/Admin/Tabs/settings.php:391
4708
  msgid "Display you saved text"
4709
  msgstr ""
4710
 
4711
- #: v2/App/Views/Admin/Tabs/settings.php:392
4712
  msgid "Display you saved text when rule applied"
4713
  msgstr ""
4714
 
4715
- #: v2/App/Views/Admin/Tabs/settings.php:407
4716
  msgid "You save text to show when rule applied"
4717
  msgstr ""
4718
 
4719
- #: v2/App/Views/Admin/Tabs/settings.php:416
4720
  msgid "Show a discount applied message on cart?"
4721
  msgstr ""
4722
 
4723
- #: v2/App/Views/Admin/Tabs/settings.php:417
4724
  msgid "Show message in cart page on rule applied"
4725
  msgstr ""
4726
 
4727
- #: v2/App/Views/Admin/Tabs/settings.php:433
4728
  msgid "Applied rule message text on cart"
4729
  msgstr ""
4730
 
4731
- #: v2/App/Views/Admin/Tabs/settings.php:434
4732
  msgid "Text to show when rule applied"
4733
  msgstr ""
4734
 
4735
- #: v2/App/Views/Admin/Tabs/settings.php:476
4736
  msgid "On-Sale page"
4737
  msgstr ""
4738
 
4739
- #: v2/App/Views/Admin/Tabs/settings.php:482
4740
  msgid "Select rules for the On Sale Page"
4741
  msgstr ""
4742
 
4743
- #: v2/App/Views/Admin/Tabs/settings.php:496
4744
  msgid "Type the name of the rule to select it"
4745
  msgstr ""
4746
 
4747
- #: v2/App/Views/Admin/Tabs/settings.php:504
4748
  msgid "All active rules"
4749
  msgstr ""
4750
 
4751
- #: v2/App/Views/Admin/Tabs/settings.php:528
4752
  msgid "Save and Build Index"
4753
  msgstr ""
4754
 
4755
- #: v2/App/Views/Admin/Tabs/settings.php:538
4756
  msgid ""
4757
  "ShortCode to load all products which has discount through Woo Discount Rules"
4758
  msgstr ""
4759
 
4760
- #: v2/App/Views/Admin/Tabs/settings.php:547
4761
  msgid "Third party plugin conflict fixes & options"
4762
  msgstr ""
4763
 
4764
- #: v2/App/Views/Admin/Tabs/settings.php:548
4765
  msgid ""
4766
  "Use these advanced options ONLY when you use a third party plugin that "
4767
  "interacts with product pricing & discounts and only when you DONT see the "
4768
  "discounts applying. Otherwise these options should be left as NO."
4769
  msgstr ""
4770
 
4771
- #: v2/App/Views/Admin/Tabs/settings.php:549
4772
  msgid ""
4773
  "IMPORTANT: Please consult with our support team by opening a ticket at <a "
4774
  "href=\"https://www.flycart.org/support\" target=\"_blank\">https://www."
4775
  "flycart.org/support</a> before you use these options."
4776
  msgstr ""
4777
 
4778
- #: v2/App/Views/Admin/Tabs/settings.php:554
4779
  msgid ""
4780
  "Do you have custom prices set using another plugin or custom code? (Example: "
4781
  "A wholesale price or a country specific pricing)"
4782
  msgstr ""
4783
 
4784
- #: v2/App/Views/Admin/Tabs/settings.php:555
4785
  msgid ""
4786
  "If you have custom prices for your products like using another plugin and if "
4787
  "you do not see the discount NOT applied, enable this option."
4788
  msgstr ""
4789
 
4790
- #: v2/App/Views/Admin/Tabs/settings.php:571
4791
  msgid "Disable re-calculating the cart total on cart page"
4792
  msgstr ""
4793
 
4794
- #: v2/App/Views/Admin/Tabs/settings.php:572
4795
  msgid ""
4796
  "This will be helpful if you see the discounts not working. It could be "
4797
  "because other plugins might be force re-calculating the totals in cart."
4798
  msgstr ""
4799
 
4800
- #: v2/App/Views/Admin/Tabs/settings.php:588
4801
  msgid "Disable re-calculating the total when applying the coupon."
4802
  msgstr ""
4803
 
4804
- #: v2/App/Views/Admin/Tabs/settings.php:589
4805
  msgid ""
4806
  "This will be useful, if you see the discounts being removed after the coupon "
4807
  "applies... or the discount does not work after applying a coupon."
4808
  msgstr ""
4809
 
4810
- #: v2/App/Views/Admin/Tabs/settings.php:619
4811
  msgid "Settings Saved"
4812
  msgstr ""
4813
 
4814
- #: v2/App/Views/Admin/Tabs/settings.php:620
4815
  msgid "Oops! Something went wrong."
4816
  msgstr ""
4817
 
4818
- #: v2/App/Views/Admin/Tabs/settings.php:621
4819
  msgid " This table contains sample content for design purpose."
4820
  msgstr ""
4821
 
4822
- #: v2/App/Views/Admin/Tabs/settings.php:631
4823
  msgid "Table Header"
4824
  msgstr ""
4825
 
4826
- #: v2/App/Views/Admin/Tabs/settings.php:632
4827
  msgid "Show/Hide table header column names"
4828
  msgstr ""
4829
 
4830
- #: v2/App/Views/Admin/Tabs/settings.php:645
4831
  msgid "Title column Name on table"
4832
  msgstr ""
4833
 
4834
- #: v2/App/Views/Admin/Tabs/settings.php:646
4835
  msgid "Give name for rule title column"
4836
  msgstr ""
4837
 
4838
- #: v2/App/Views/Admin/Tabs/settings.php:657
4839
  msgid "Discount column Name on table"
4840
  msgstr ""
4841
 
4842
- #: v2/App/Views/Admin/Tabs/settings.php:658
4843
  msgid "Give name for discount column"
4844
  msgstr ""
4845
 
4846
- #: v2/App/Views/Admin/Tabs/settings.php:669
4847
  msgid "Range column Name on table"
4848
  msgstr ""
4849
 
4850
- #: v2/App/Views/Admin/Tabs/settings.php:670
4851
  msgid "Give name for range column"
4852
  msgstr ""
4853
 
4854
- #: v2/App/Views/Admin/Tabs/settings.php:681
4855
  msgid "Discount column value on table"
4856
  msgstr ""
4857
 
4858
- #: v2/App/Views/Admin/Tabs/settings.php:682
4859
  msgid "Show Discount value/price in table"
4860
  msgstr ""
4861
 
4862
- #: v2/App/Views/Admin/Tabs/settings.php:690
4863
  msgid "Discounted Price"
4864
  msgstr ""
4865
 
4866
- #: v2/App/Views/Admin/Tabs/settings.php:765
4867
- #: v2/App/Views/Admin/Tabs/settings.php:788
4868
  msgid "Bulk Rule"
4869
  msgstr ""
4870
 
4871
- #: v2/App/Views/Admin/Tabs/settings.php:773
4872
- #: v2/App/Views/Admin/Tabs/settings.php:819
4873
- #: v2/App/Views/Admin/Tabs/settings.php:886
4874
- #: v2/App/Views/Templates/discount_table.php:118
4875
  msgid " flat"
4876
  msgstr ""
4877
 
4878
- #: v2/App/Views/Admin/Tabs/settings.php:779
4879
  msgid "1 - 5"
4880
  msgstr ""
4881
 
4882
- #: v2/App/Views/Admin/Tabs/settings.php:802
4883
  msgid "11 - 15"
4884
  msgstr ""
4885
 
4886
- #: v2/App/Views/Admin/Tabs/settings.php:811
4887
  msgid "Bulk Flat discount"
4888
  msgstr ""
4889
 
4890
- #: v2/App/Views/Admin/Tabs/settings.php:825
4891
  msgid "50 - 60"
4892
  msgstr ""
4893
 
4894
- #: v2/App/Views/Admin/Tabs/settings.php:834
4895
  msgid "Bulk percentage discount"
4896
  msgstr ""
4897
 
4898
- #: v2/App/Views/Admin/Tabs/settings.php:847
4899
  msgid "70 - 80"
4900
  msgstr ""
4901
 
4902
- #: v2/App/Views/Admin/Tabs/settings.php:856
4903
  #, php-format
4904
  msgid "Bulk % discount"
4905
  msgstr ""
4906
 
4907
- #: v2/App/Views/Admin/Tabs/settings.php:869
4908
  msgid "450 - 500"
4909
  msgstr ""
4910
 
4911
- #: v2/App/Views/Admin/Tabs/settings.php:878
4912
  msgid "Bulk flat"
4913
  msgstr ""
4914
 
4915
- #: v2/App/Views/Admin/Tabs/settings.php:892
4916
  msgid "600 - 700"
4917
  msgstr ""
4918
 
4919
- #: v2/App/Views/Admin/Tabs/settings.php:901
4920
  msgid "set percentage discount"
4921
  msgstr ""
4922
 
4923
- #: v2/App/Views/Admin/Tabs/settings.php:914
4924
  msgid "5"
4925
  msgstr ""
4926
 
4927
- #: v2/App/Views/Admin/Tabs/settings.php:923
4928
  msgid "Fixed discount for set"
4929
  msgstr ""
4930
 
4931
- #: v2/App/Views/Admin/Tabs/settings.php:936
4932
  msgid "10"
4933
  msgstr ""
4934
 
4935
- #: v2/App/Views/Admin/Tabs/settings.php:945
4936
  msgid "set flat discount"
4937
  msgstr ""
4938
 
4939
- #: v2/App/Views/Admin/Tabs/settings.php:958
4940
  msgid "15"
4941
  msgstr ""
4942
 
4943
- #: v2/App/Views/Templates/discount_table.php:113
4944
  msgid " (in cart)"
4945
  msgstr ""
4
  "Content-Type: text/plain; charset=UTF-8\n"
5
  "Content-Transfer-Encoding: 8bit\n"
6
  "Project-Id-Version: Woo Discount Rules\n"
7
+ "POT-Creation-Date: 2021-10-20\n"
8
+ "PO-Revision-Date: 2021-10-20n"
9
  "Language-Team: Flycart\n"
10
  "MIME-Version: 1.0\n"
11
  "Language: \n"
18
  msgid "Authentication required"
19
  msgstr ""
20
 
21
+ #: common.php:17 v2/App/Controllers/Admin/WDRAjax.php:779
22
  msgid "Invalid request"
23
  msgstr ""
24
 
193
  #: v2/App/Views/Admin/Tabs/settings.php:24
194
  #: v2/App/Views/Admin/Tabs/settings.php:65
195
  #: v2/App/Views/Admin/Tabs/settings.php:138
196
+ #: v2/App/Views/Admin/Tabs/settings.php:204
197
+ #: v2/App/Views/Admin/Tabs/settings.php:275
198
+ #: v2/App/Views/Admin/Tabs/settings.php:394
199
+ #: v2/App/Views/Admin/Tabs/settings.php:478
200
  msgid "Read Docs"
201
  msgstr ""
202
 
317
  #: v1/view/settings_promotion.php:22 v1/view/settings_promotion.php:62
318
  #: v1/view/settings_promotion.php:97 v1/view/settings_promotion.php:132
319
  #: v2/App/Views/Admin/Tabs/DiscountRule.php:252
320
+ #: v2/App/Views/Admin/Tabs/settings.php:398
321
  msgid "Disabled"
322
  msgstr ""
323
 
779
  #: v1/includes/discount-base.php:1173 v1/view/settings_price_rules.php:208
780
  #: v1/view/settings_price_rules.php:226 v1/view/settings_price_rules.php:244
781
  #: v1/view/settings_price_rules.php:262
782
+ #: v2/App/Views/Admin/Tabs/settings.php:639
783
  msgid "Show"
784
  msgstr ""
785
 
1018
  msgstr ""
1019
 
1020
  #: v1/includes/discount-base.php:1302
1021
+ #: v2/App/Controllers/ManageDiscount.php:1222
1022
  #, php-format
1023
  msgid ""
1024
  "Sorry, it is not possible to apply coupon <b>\"%s\"</b> as you already have "
1440
  #: v1/view/includes/cart-menu.php:13 v1/view/includes/sub-menu.php:13
1441
  #: v1/view/template/discount-table.php:42 v1/view/view-cart-rules.php:756
1442
  #: v1/view/view-pricing-rules.php:708 v2/App/Controllers/Admin/Settings.php:463
1443
+ #: v2/App/Helpers/Rule.php:1230 v2/App/Views/Admin/Rules/Discounts/Bulk.php:59
1444
  #: v2/App/Views/Admin/Rules/Manage.php:209
1445
  msgid "Discount"
1446
  msgstr ""
1498
  msgid "Performance"
1499
  msgstr ""
1500
 
1501
+ #: v1/view/settings.php:42 v2/App/Views/Admin/Tabs/settings.php:358
1502
  msgid "Promotion"
1503
  msgstr ""
1504
 
1625
  #: v2/App/Views/Admin/Tabs/settings.php:87
1626
  #: v2/App/Views/Admin/Tabs/settings.php:103
1627
  #: v2/App/Views/Admin/Tabs/settings.php:118
1628
+ #: v2/App/Views/Admin/Tabs/settings.php:209
1629
+ #: v2/App/Views/Admin/Tabs/settings.php:304
1630
+ #: v2/App/Views/Admin/Tabs/settings.php:333
1631
+ #: v2/App/Views/Admin/Tabs/settings.php:425
1632
+ #: v2/App/Views/Admin/Tabs/settings.php:563
1633
+ #: v2/App/Views/Admin/Tabs/settings.php:580
1634
+ #: v2/App/Views/Admin/Tabs/settings.php:597
1635
  msgid "Yes"
1636
  msgstr ""
1637
 
1647
  #: v2/App/Views/Admin/Tabs/settings.php:91
1648
  #: v2/App/Views/Admin/Tabs/settings.php:107
1649
  #: v2/App/Views/Admin/Tabs/settings.php:122
1650
+ #: v2/App/Views/Admin/Tabs/settings.php:212
1651
+ #: v2/App/Views/Admin/Tabs/settings.php:308
1652
+ #: v2/App/Views/Admin/Tabs/settings.php:339
1653
+ #: v2/App/Views/Admin/Tabs/settings.php:430
1654
+ #: v2/App/Views/Admin/Tabs/settings.php:568
1655
+ #: v2/App/Views/Admin/Tabs/settings.php:585
1656
+ #: v2/App/Views/Admin/Tabs/settings.php:602
1657
  msgid "No"
1658
  msgstr ""
1659
 
1765
  msgstr ""
1766
 
1767
  #: v1/view/settings_price_rules.php:128
1768
+ #: v2/App/Views/Admin/Tabs/settings.php:279
1769
  msgid "Show when a rule condition is matched"
1770
  msgstr ""
1771
 
1772
  #: v1/view/settings_price_rules.php:131
1773
+ #: v2/App/Views/Admin/Tabs/settings.php:280
1774
  msgid "Show after a rule condition is matched"
1775
  msgstr ""
1776
 
1777
  #: v1/view/settings_price_rules.php:134
1778
+ #: v2/App/Views/Admin/Tabs/settings.php:281
1779
  msgid "Shown on quantity update (dynamic)"
1780
  msgstr ""
1781
 
1782
  #: v1/view/settings_price_rules.php:137 v1/view/settings_price_rules.php:211
1783
  #: v1/view/settings_price_rules.php:229 v1/view/settings_price_rules.php:247
1784
  #: v1/view/settings_price_rules.php:265
1785
+ #: v2/App/Views/Admin/Tabs/settings.php:642
1786
  msgid "Don't Show"
1787
  msgstr ""
1788
 
1891
  msgid "Display savings text (for price rules)"
1892
  msgstr ""
1893
 
1894
+ #: v1/view/settings_promotion.php:25 v2/App/Views/Admin/Tabs/settings.php:399
1895
  msgid "On each line item"
1896
  msgstr ""
1897
 
1898
+ #: v1/view/settings_promotion.php:28 v2/App/Views/Admin/Tabs/settings.php:400
1899
  msgid "On after total"
1900
  msgstr ""
1901
 
1902
+ #: v1/view/settings_promotion.php:31 v2/App/Views/Admin/Tabs/settings.php:401
1903
  msgid "Both in line item and after total"
1904
  msgstr ""
1905
 
1906
+ #: v1/view/settings_promotion.php:39 v2/App/Views/Admin/Tabs/settings.php:408
1907
  msgid "Savings text to show"
1908
  msgstr ""
1909
 
1940
  "discounts)"
1941
  msgstr ""
1942
 
1943
+ #: v1/view/settings_promotion.php:134 v2/App/Views/Admin/Tabs/settings.php:384
1944
  msgid "Shop page"
1945
  msgstr ""
1946
 
1947
+ #: v1/view/settings_promotion.php:137 v2/App/Views/Admin/Tabs/settings.php:385
1948
  msgid "Product page"
1949
  msgstr ""
1950
 
1951
+ #: v1/view/settings_promotion.php:140 v2/App/Views/Admin/Tabs/settings.php:386
1952
  msgid "Cart page"
1953
  msgstr ""
1954
 
1955
+ #: v1/view/settings_promotion.php:143 v2/App/Views/Admin/Tabs/settings.php:387
1956
  msgid "Checkout page"
1957
  msgstr ""
1958
 
1987
 
1988
  #: v1/view/template/loop/sale-flash.php:23
1989
  #: v1/view/template/single-product/sale-flash.php:23
1990
+ #: v2/App/Views/Admin/Tabs/settings.php:184
1991
  #: v2/App/Views/Templates/loop/sale-flash.php:23
1992
  #: v2/App/Views/Templates/single-product/sale-flash.php:23
1993
  msgid "Sale!"
2406
  msgstr ""
2407
 
2408
  #: v1/view/view-pricing-rules.php:394 v2/App/Helpers/Helper.php:171
2409
+ #: v2/App/Views/Admin/Tabs/settings.php:319
2410
  msgid "Coupon"
2411
  msgstr ""
2412
 
2607
  msgid "Limitation: Strikeout for add-on price and subtotal in product page."
2608
  msgstr ""
2609
 
2610
+ #: v2/App/Compatibility/FacebookForWoocommerceByFacebook.php:44
2611
+ msgid "Add compatible for Facebook for WooCommerce"
2612
+ msgstr ""
2613
+
2614
+ #: v2/App/Compatibility/FacebookForWoocommerceByFacebook.php:47
2615
+ msgid ""
2616
+ "Support only for rule type Product Adjustment and Bulk Discount (which has "
2617
+ "minimum quantity as 1)."
2618
+ msgstr ""
2619
+
2620
  #: v2/App/Compatibility/ProductAddOnsByWooCommerce.php:108
2621
  msgid "Show discount price in product pages for WooCommerce Product Add Ons."
2622
  msgstr ""
2632
  #: v2/App/Conditions/CartLineItemsCount.php:16
2633
  #: v2/App/Conditions/CartSubTotal.php:19 v2/App/Helpers/ProOptions.php:80
2634
  #: v2/App/Helpers/ProOptions.php:136 v2/App/Helpers/ProOptions.php:144
2635
+ #: v2/App/Helpers/ProOptions.php:152 v2/App/Views/Admin/Tabs/settings.php:292
2636
  msgid "Cart"
2637
  msgstr ""
2638
 
2712
  msgstr ""
2713
 
2714
  #: v2/App/Controllers/Admin/Settings.php:453
2715
+ #: v2/App/Views/Admin/Tabs/settings.php:543
2716
  msgid "Copy ShortCode"
2717
  msgstr ""
2718
 
3046
  msgid "All Rules (except cart adjustment type)"
3047
  msgstr ""
3048
 
3049
+ #: v2/App/Controllers/Admin/WDRAjax.php:740
3050
  msgid "Search State"
3051
  msgstr ""
3052
 
3080
  msgid "Bulk Discount"
3081
  msgstr ""
3082
 
3083
+ #: v2/App/Controllers/ManageDiscount.php:166
3084
  msgid "<span class=\"onsale\">{{percentage}}%</span>"
3085
  msgstr ""
3086
 
3087
+ #: v2/App/Controllers/ManageDiscount.php:177
3088
  msgid "<span class=\"onsale\">Sale!</span>"
3089
  msgstr ""
3090
 
3091
+ #: v2/App/Controllers/ManageDiscount.php:750
3092
+ #: v2/App/Controllers/ManageDiscount.php:970
3093
+ #: v2/App/Controllers/ManageDiscount.php:973 v2/App/Helpers/Helper.php:271
3094
  #: v2/App/Helpers/Helper.php:272
3095
  msgid "Cart discount"
3096
  msgstr ""
3097
 
3098
+ #: v2/App/Controllers/ManageDiscount.php:1236
3099
  msgid "Coupon code applied successfully."
3100
  msgstr ""
3101
 
3102
+ #: v2/App/Controllers/ManageDiscount.php:1656
3103
+ #: v2/App/Views/Admin/Tabs/settings.php:441
3104
  msgid "Discount <strong>{{title}}</strong> has been applied to your cart."
3105
  msgstr ""
3106
 
3107
+ #: v2/App/Controllers/ManageDiscount.php:1782
3108
  msgid "You saved {{total_discount}}"
3109
  msgstr ""
3110
 
3357
  msgid "Bundle (Set) Discount - PRO -"
3358
  msgstr ""
3359
 
3360
+ #: v2/App/Helpers/Rule.php:1308 v2/App/Helpers/Rule.php:1408
3361
  #: v2/App/Views/Admin/Tabs/ImportExport.php:101
3362
  msgid "Untitled Rule"
3363
  msgstr ""
3364
 
3365
  #: v2/App/Helpers/Validation.php:146 v2/App/Helpers/Validation.php:151
3366
+ #: v2/App/Helpers/Validation.php:348 v2/App/Helpers/Validation.php:544
3367
  msgid "Invalid characters"
3368
  msgstr ""
3369
 
3400
  msgid "Invalid inputs"
3401
  msgstr ""
3402
 
3403
+ #: v2/App/Helpers/Validation.php:518
3404
  msgid "Validation error"
3405
  msgstr ""
3406
 
3454
  "Woocommerce after main content(Archive / Shop / Cat Pages / single product)"
3455
  msgstr ""
3456
 
3457
+ #: v2/App/Helpers/Woocommerce.php:981 v2/App/Views/Admin/Tabs/settings.php:230
3458
+ #: v2/App/Views/Admin/Tabs/settings.php:248
3459
  msgid "Woocommerce before single product"
3460
  msgstr ""
3461
 
3462
+ #: v2/App/Helpers/Woocommerce.php:982 v2/App/Views/Admin/Tabs/settings.php:232
3463
+ #: v2/App/Views/Admin/Tabs/settings.php:250
3464
  msgid "Woocommerce before single product summary"
3465
  msgstr ""
3466
 
3467
+ #: v2/App/Helpers/Woocommerce.php:983 v2/App/Views/Admin/Tabs/settings.php:231
3468
+ #: v2/App/Views/Admin/Tabs/settings.php:249
3469
  msgid "Woocommerce after single product summary"
3470
  msgstr ""
3471
 
3472
+ #: v2/App/Helpers/Woocommerce.php:984 v2/App/Views/Admin/Tabs/settings.php:229
3473
+ #: v2/App/Views/Admin/Tabs/settings.php:247
3474
  msgid "Woocommerce after single product"
3475
  msgstr ""
3476
 
3678
  msgstr ""
3679
 
3680
  #: v2/App/Views/Admin/Rules/DiscountBatch/Main.php:22
3681
+ #: v2/App/Views/Admin/Tabs/settings.php:623
3682
  msgid "Note:"
3683
  msgstr ""
3684
 
3799
  msgstr ""
3800
 
3801
  #: v2/App/Views/Admin/Rules/Discounts/Bulk.php:63
3802
+ #: v2/App/Views/Admin/Tabs/settings.php:689
3803
  msgid "Discount Value"
3804
  msgstr ""
3805
 
4327
  msgstr ""
4328
 
4329
  #: v2/App/Views/Admin/Tabs/Recipe.php:54
4330
+ #: v2/App/Views/Admin/Tabs/settings.php:532
4331
  msgid ""
4332
  "Unlock this feature by <a href='https://www.flycart.org/products/wordpress/"
4333
  "woocommerce-discount-rules?utm_source=woo-discount-rules-"
4546
  msgid "Customize the sale badge"
4547
  msgstr ""
4548
 
4549
+ #: v2/App/Views/Admin/Tabs/settings.php:173
4550
  msgid ""
4551
  "I would like to display percentage in sale badge (Displays only when rule "
4552
  "matches else displays default sale badge content)."
4553
  msgstr ""
4554
 
4555
+ #: v2/App/Views/Admin/Tabs/settings.php:179
4556
  msgid "Sale badge content"
4557
  msgstr ""
4558
 
4559
+ #: v2/App/Views/Admin/Tabs/settings.php:180
4560
+ #: v2/App/Views/Admin/Tabs/settings.php:192
4561
  msgid ""
4562
  "You can use HTML inside. <br><b>IMPORTANT NOTE:</b> This customized sale "
4563
  "badge will be applicable only for products that are part of the discount "
4564
  "rules configured in this plugin <b>Eg:</b><span class=\"onsale\">Sale!</span>"
4565
  msgstr ""
4566
 
4567
+ #: v2/App/Views/Admin/Tabs/settings.php:191
4568
  msgid "Sale badge percentage content"
4569
  msgstr ""
4570
 
4571
+ #: v2/App/Views/Admin/Tabs/settings.php:196
4572
  msgid "{{percentage}}%"
4573
  msgstr ""
4574
 
4575
+ #: v2/App/Views/Admin/Tabs/settings.php:203
4576
  msgid "Show discount table "
4577
  msgstr ""
4578
 
4579
+ #: v2/App/Views/Admin/Tabs/settings.php:204
4580
  msgid "Show discount table on product page"
4581
  msgstr ""
4582
 
4583
+ #: v2/App/Views/Admin/Tabs/settings.php:213
4584
+ #: v2/App/Views/Admin/Tabs/settings.php:618
4585
  msgid "Customize Discount Table"
4586
  msgstr ""
4587
 
4588
+ #: v2/App/Views/Admin/Tabs/settings.php:220
4589
  msgid "Position to show discount table"
4590
  msgstr ""
4591
 
4592
+ #: v2/App/Views/Admin/Tabs/settings.php:221
4593
  msgid "Position to show discount table on product page"
4594
  msgstr ""
4595
 
4596
+ #: v2/App/Views/Admin/Tabs/settings.php:225
4597
+ #: v2/App/Views/Admin/Tabs/settings.php:243
4598
  msgid "Woocommerce before add to cart form"
4599
  msgstr ""
4600
 
4601
+ #: v2/App/Views/Admin/Tabs/settings.php:226
4602
+ #: v2/App/Views/Admin/Tabs/settings.php:244
4603
  msgid "Woocommerce product meta end"
4604
  msgstr ""
4605
 
4606
+ #: v2/App/Views/Admin/Tabs/settings.php:227
4607
+ #: v2/App/Views/Admin/Tabs/settings.php:245
4608
  msgid "Woocommerce product meta start"
4609
  msgstr ""
4610
 
4611
+ #: v2/App/Views/Admin/Tabs/settings.php:228
4612
+ #: v2/App/Views/Admin/Tabs/settings.php:246
4613
  msgid "Woocommerce after add to cart form"
4614
  msgstr ""
4615
 
4616
+ #: v2/App/Views/Admin/Tabs/settings.php:238
4617
  msgid "Position to show discount bar"
4618
  msgstr ""
4619
 
4620
+ #: v2/App/Views/Admin/Tabs/settings.php:239
4621
  msgid "Position to show discount bar on product page"
4622
  msgstr ""
4623
 
4624
+ #: v2/App/Views/Admin/Tabs/settings.php:256
4625
  msgid "Show strikeout price"
4626
  msgstr ""
4627
 
4628
+ #: v2/App/Views/Admin/Tabs/settings.php:257
4629
  msgid "Show product strikeout price on"
4630
  msgstr ""
4631
 
4632
+ #: v2/App/Views/Admin/Tabs/settings.php:262
4633
  msgid "On shop page?"
4634
  msgstr ""
4635
 
4636
+ #: v2/App/Views/Admin/Tabs/settings.php:265
4637
  msgid "On product page?"
4638
  msgstr ""
4639
 
4640
+ #: v2/App/Views/Admin/Tabs/settings.php:268
4641
  msgid "On category page?"
4642
  msgstr ""
4643
 
4644
+ #: v2/App/Views/Admin/Tabs/settings.php:274
4645
  msgid "Show Strikeout when"
4646
  msgstr ""
4647
 
4648
+ #: v2/App/Views/Admin/Tabs/settings.php:275
4649
  msgid "Show Strikeout when this option is matched"
4650
  msgstr ""
4651
 
4652
+ #: v2/App/Views/Admin/Tabs/settings.php:298
4653
  msgid "Show strikeout on cart"
4654
  msgstr ""
4655
 
4656
+ #: v2/App/Views/Admin/Tabs/settings.php:299
4657
  msgid "Show price strikeout on cart"
4658
  msgstr ""
4659
 
4660
+ #: v2/App/Views/Admin/Tabs/settings.php:313
4661
  msgid "Apply cart discount as"
4662
  msgstr ""
4663
 
4664
+ #: v2/App/Views/Admin/Tabs/settings.php:314
4665
  msgid "Apply cart discount as fee/coupon"
4666
  msgstr ""
4667
 
4668
+ #: v2/App/Views/Admin/Tabs/settings.php:318
4669
  msgid "Fee"
4670
  msgstr ""
4671
 
4672
+ #: v2/App/Views/Admin/Tabs/settings.php:325
4673
  msgid "Combine all cart discounts"
4674
  msgstr ""
4675
 
4676
+ #: v2/App/Views/Admin/Tabs/settings.php:326
4677
  msgid "Combine all cart discounts in single discount label"
4678
  msgstr ""
4679
 
4680
+ #: v2/App/Views/Admin/Tabs/settings.php:345
4681
+ #: v2/App/Views/Admin/Tabs/settings.php:346
4682
  msgid "Discount label for combined discounts"
4683
  msgstr ""
4684
 
4685
+ #: v2/App/Views/Admin/Tabs/settings.php:363
4686
  msgid "Condition based promotion"
4687
  msgstr ""
4688
 
4689
+ #: v2/App/Views/Admin/Tabs/settings.php:364
4690
  msgid ""
4691
  "Display Condition based promotion messages in cart/product/shop pages<br>If "
4692
  "enabled an option to add promotion message will displays on each rule(when "
4693
  "promotion condition is added)"
4694
  msgstr ""
4695
 
4696
+ #: v2/App/Views/Admin/Tabs/settings.php:369
4697
  msgid "Subtotal Promotion?"
4698
  msgstr ""
4699
 
4700
+ #: v2/App/Views/Admin/Tabs/settings.php:372
4701
  msgid "Cart Quantity Promotion?"
4702
  msgstr ""
4703
 
4704
+ #: v2/App/Views/Admin/Tabs/settings.php:378
4705
  msgid "Condition based promo text"
4706
  msgstr ""
4707
 
4708
+ #: v2/App/Views/Admin/Tabs/settings.php:379
4709
  msgid ""
4710
  "Condition based promo text (available only for subtotal based discounts) "
4711
  msgstr ""
4712
 
4713
+ #: v2/App/Views/Admin/Tabs/settings.php:383
4714
  msgid "Select the page to display promotion message"
4715
  msgstr ""
4716
 
4717
+ #: v2/App/Views/Admin/Tabs/settings.php:393
4718
  msgid "Display you saved text"
4719
  msgstr ""
4720
 
4721
+ #: v2/App/Views/Admin/Tabs/settings.php:394
4722
  msgid "Display you saved text when rule applied"
4723
  msgstr ""
4724
 
4725
+ #: v2/App/Views/Admin/Tabs/settings.php:409
4726
  msgid "You save text to show when rule applied"
4727
  msgstr ""
4728
 
4729
+ #: v2/App/Views/Admin/Tabs/settings.php:418
4730
  msgid "Show a discount applied message on cart?"
4731
  msgstr ""
4732
 
4733
+ #: v2/App/Views/Admin/Tabs/settings.php:419
4734
  msgid "Show message in cart page on rule applied"
4735
  msgstr ""
4736
 
4737
+ #: v2/App/Views/Admin/Tabs/settings.php:435
4738
  msgid "Applied rule message text on cart"
4739
  msgstr ""
4740
 
4741
+ #: v2/App/Views/Admin/Tabs/settings.php:436
4742
  msgid "Text to show when rule applied"
4743
  msgstr ""
4744
 
4745
+ #: v2/App/Views/Admin/Tabs/settings.php:478
4746
  msgid "On-Sale page"
4747
  msgstr ""
4748
 
4749
+ #: v2/App/Views/Admin/Tabs/settings.php:484
4750
  msgid "Select rules for the On Sale Page"
4751
  msgstr ""
4752
 
4753
+ #: v2/App/Views/Admin/Tabs/settings.php:498
4754
  msgid "Type the name of the rule to select it"
4755
  msgstr ""
4756
 
4757
+ #: v2/App/Views/Admin/Tabs/settings.php:506
4758
  msgid "All active rules"
4759
  msgstr ""
4760
 
4761
+ #: v2/App/Views/Admin/Tabs/settings.php:530
4762
  msgid "Save and Build Index"
4763
  msgstr ""
4764
 
4765
+ #: v2/App/Views/Admin/Tabs/settings.php:540
4766
  msgid ""
4767
  "ShortCode to load all products which has discount through Woo Discount Rules"
4768
  msgstr ""
4769
 
4770
+ #: v2/App/Views/Admin/Tabs/settings.php:549
4771
  msgid "Third party plugin conflict fixes & options"
4772
  msgstr ""
4773
 
4774
+ #: v2/App/Views/Admin/Tabs/settings.php:550
4775
  msgid ""
4776
  "Use these advanced options ONLY when you use a third party plugin that "
4777
  "interacts with product pricing & discounts and only when you DONT see the "
4778
  "discounts applying. Otherwise these options should be left as NO."
4779
  msgstr ""
4780
 
4781
+ #: v2/App/Views/Admin/Tabs/settings.php:551
4782
  msgid ""
4783
  "IMPORTANT: Please consult with our support team by opening a ticket at <a "
4784
  "href=\"https://www.flycart.org/support\" target=\"_blank\">https://www."
4785
  "flycart.org/support</a> before you use these options."
4786
  msgstr ""
4787
 
4788
+ #: v2/App/Views/Admin/Tabs/settings.php:556
4789
  msgid ""
4790
  "Do you have custom prices set using another plugin or custom code? (Example: "
4791
  "A wholesale price or a country specific pricing)"
4792
  msgstr ""
4793
 
4794
+ #: v2/App/Views/Admin/Tabs/settings.php:557
4795
  msgid ""
4796
  "If you have custom prices for your products like using another plugin and if "
4797
  "you do not see the discount NOT applied, enable this option."
4798
  msgstr ""
4799
 
4800
+ #: v2/App/Views/Admin/Tabs/settings.php:573
4801
  msgid "Disable re-calculating the cart total on cart page"
4802
  msgstr ""
4803
 
4804
+ #: v2/App/Views/Admin/Tabs/settings.php:574
4805
  msgid ""
4806
  "This will be helpful if you see the discounts not working. It could be "
4807
  "because other plugins might be force re-calculating the totals in cart."
4808
  msgstr ""
4809
 
4810
+ #: v2/App/Views/Admin/Tabs/settings.php:590
4811
  msgid "Disable re-calculating the total when applying the coupon."
4812
  msgstr ""
4813
 
4814
+ #: v2/App/Views/Admin/Tabs/settings.php:591
4815
  msgid ""
4816
  "This will be useful, if you see the discounts being removed after the coupon "
4817
  "applies... or the discount does not work after applying a coupon."
4818
  msgstr ""
4819
 
4820
+ #: v2/App/Views/Admin/Tabs/settings.php:621
4821
  msgid "Settings Saved"
4822
  msgstr ""
4823
 
4824
+ #: v2/App/Views/Admin/Tabs/settings.php:622
4825
  msgid "Oops! Something went wrong."
4826
  msgstr ""
4827
 
4828
+ #: v2/App/Views/Admin/Tabs/settings.php:623
4829
  msgid " This table contains sample content for design purpose."
4830
  msgstr ""
4831
 
4832
+ #: v2/App/Views/Admin/Tabs/settings.php:633
4833
  msgid "Table Header"
4834
  msgstr ""
4835
 
4836
+ #: v2/App/Views/Admin/Tabs/settings.php:634
4837
  msgid "Show/Hide table header column names"
4838
  msgstr ""
4839
 
4840
+ #: v2/App/Views/Admin/Tabs/settings.php:647
4841
  msgid "Title column Name on table"
4842
  msgstr ""
4843
 
4844
+ #: v2/App/Views/Admin/Tabs/settings.php:648
4845
  msgid "Give name for rule title column"
4846
  msgstr ""
4847
 
4848
+ #: v2/App/Views/Admin/Tabs/settings.php:659
4849
  msgid "Discount column Name on table"
4850
  msgstr ""
4851
 
4852
+ #: v2/App/Views/Admin/Tabs/settings.php:660
4853
  msgid "Give name for discount column"
4854
  msgstr ""
4855
 
4856
+ #: v2/App/Views/Admin/Tabs/settings.php:671
4857
  msgid "Range column Name on table"
4858
  msgstr ""
4859
 
4860
+ #: v2/App/Views/Admin/Tabs/settings.php:672
4861
  msgid "Give name for range column"
4862
  msgstr ""
4863
 
4864
+ #: v2/App/Views/Admin/Tabs/settings.php:683
4865
  msgid "Discount column value on table"
4866
  msgstr ""
4867
 
4868
+ #: v2/App/Views/Admin/Tabs/settings.php:684
4869
  msgid "Show Discount value/price in table"
4870
  msgstr ""
4871
 
4872
+ #: v2/App/Views/Admin/Tabs/settings.php:692
4873
  msgid "Discounted Price"
4874
  msgstr ""
4875
 
4876
+ #: v2/App/Views/Admin/Tabs/settings.php:767
4877
+ #: v2/App/Views/Admin/Tabs/settings.php:790
4878
  msgid "Bulk Rule"
4879
  msgstr ""
4880
 
4881
+ #: v2/App/Views/Admin/Tabs/settings.php:775
4882
+ #: v2/App/Views/Admin/Tabs/settings.php:821
4883
+ #: v2/App/Views/Admin/Tabs/settings.php:888
4884
+ #: v2/App/Views/Templates/discount_table.php:131
4885
  msgid " flat"
4886
  msgstr ""
4887
 
4888
+ #: v2/App/Views/Admin/Tabs/settings.php:781
4889
  msgid "1 - 5"
4890
  msgstr ""
4891
 
4892
+ #: v2/App/Views/Admin/Tabs/settings.php:804
4893
  msgid "11 - 15"
4894
  msgstr ""
4895
 
4896
+ #: v2/App/Views/Admin/Tabs/settings.php:813
4897
  msgid "Bulk Flat discount"
4898
  msgstr ""
4899
 
4900
+ #: v2/App/Views/Admin/Tabs/settings.php:827
4901
  msgid "50 - 60"
4902
  msgstr ""
4903
 
4904
+ #: v2/App/Views/Admin/Tabs/settings.php:836
4905
  msgid "Bulk percentage discount"
4906
  msgstr ""
4907
 
4908
+ #: v2/App/Views/Admin/Tabs/settings.php:849
4909
  msgid "70 - 80"
4910
  msgstr ""
4911
 
4912
+ #: v2/App/Views/Admin/Tabs/settings.php:858
4913
  #, php-format
4914
  msgid "Bulk % discount"
4915
  msgstr ""
4916
 
4917
+ #: v2/App/Views/Admin/Tabs/settings.php:871
4918
  msgid "450 - 500"
4919
  msgstr ""
4920
 
4921
+ #: v2/App/Views/Admin/Tabs/settings.php:880
4922
  msgid "Bulk flat"
4923
  msgstr ""
4924
 
4925
+ #: v2/App/Views/Admin/Tabs/settings.php:894
4926
  msgid "600 - 700"
4927
  msgstr ""
4928
 
4929
+ #: v2/App/Views/Admin/Tabs/settings.php:903
4930
  msgid "set percentage discount"
4931
  msgstr ""
4932
 
4933
+ #: v2/App/Views/Admin/Tabs/settings.php:916
4934
  msgid "5"
4935
  msgstr ""
4936
 
4937
+ #: v2/App/Views/Admin/Tabs/settings.php:925
4938
  msgid "Fixed discount for set"
4939
  msgstr ""
4940
 
4941
+ #: v2/App/Views/Admin/Tabs/settings.php:938
4942
  msgid "10"
4943
  msgstr ""
4944
 
4945
+ #: v2/App/Views/Admin/Tabs/settings.php:947
4946
  msgid "set flat discount"
4947
  msgstr ""
4948
 
4949
+ #: v2/App/Views/Admin/Tabs/settings.php:960
4950
  msgid "15"
4951
  msgstr ""
4952
 
4953
+ #: v2/App/Views/Templates/discount_table.php:126
4954
  msgid " (in cart)"
4955
  msgstr ""
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.8
7
- Stable tag: 2.3.8
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -336,6 +336,30 @@ Note : Enable recursive checkbox if the discounts should be applied in sequentia
336
 
337
  == Changelog ==
338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  = 2.3.8 - 22/07/21 =
340
  * Feature - Option to display percentage in sale badge.
341
  * Improvement - Optimize the term query to improve performance.
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.8
7
+ Stable tag: 2.3.9
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
336
 
337
  == Changelog ==
338
 
339
+ = 2.3.9 - 21/10/21 =
340
+ * Feature - Option to hide other shipping methods when free shipping is available.
341
+ * Improvement - Skip invisible variant price for doing strikeout.
342
+ * Improvement - Alternative for recalculate discount before apply coupon event.
343
+ * Improvement - Taxonomy cache improvement.
344
+ * Improvement - Compatible for facebook for woocommerce.
345
+ * Improvement - Display discount info based on tax in discount bar.
346
+ * Improvement - Removed customize-table.css and added though inline.
347
+ * Improvement - Load the awdr_pro.js in footer.
348
+ * Improvement - Strikeout price for product addon.
349
+ * Improvement - Onsale shortcode index doesn't update on empty value.
350
+ * Improvement - Event: advanced_woo_discount_rules_do_process_discounts_of_each_rule.
351
+ * Improvement - Event: advanced_woo_discount_rules_coupon_value.
352
+ * Improvement - Event: Additional param in advanced_woo_discount_rules_line_item_subtotal_saved_text.
353
+ * Fix - First order condition doesn't worked for mix guest and login
354
+ * Fix - Handle auto add products based on language while having wpml.
355
+ * Fix - Product not auto added when previously added is not in stock.
356
+ * Fix - Fatal error while getting product id.
357
+ * Fix - Buy X get X not applies while having less quantity.
358
+ * Fix - Displaying strikeout in reverse.
359
+ * Fix - Wrong discount quantity on some cases in cart.
360
+ * Fix - Error while auto add (on product doesn't exists).
361
+ * Fix - Free shipping with other exclusive rule.
362
+
363
  = 2.3.8 - 22/07/21 =
364
  * Feature - Option to display percentage in sale badge.
365
  * Improvement - Optimize the term query to improve performance.
v2/App/Compatibility/FacebookForWoocommerceByFacebook.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ namespace Wdr\App\Compatibility;
4
+
5
+ use Wdr\App\Helpers\Woocommerce;
6
+
7
+ if (!defined('ABSPATH')) exit;
8
+
9
+ class FacebookForWoocommerceByFacebook extends Base
10
+ {
11
+ protected $key = 'compatible_fb_facebook';
12
+
13
+ /**
14
+ * Do compatibility script
15
+ * */
16
+ public function run(){
17
+ $value = $this->config->getConfigData($this->key, 0);
18
+ if($value){
19
+ add_filter('wc_facebook_product_price', function ($price, $facebook_price, $product){
20
+ if ( !$facebook_price ){
21
+ $product_price = Woocommerce::getProductPrice($product);
22
+ $discounted_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $product_price, $product, 1, 0, 'discounted_price', true, false);
23
+ if($discounted_price !== false){
24
+ $price = (int)round($discounted_price*100);
25
+ }
26
+ }
27
+
28
+ return $price;
29
+ }, 10, 3);
30
+ }
31
+ }
32
+
33
+ /**
34
+ * load fields
35
+ * */
36
+ public function loadFields(&$available){
37
+ $value = $this->config->getConfigData($this->key, 0);
38
+ if ( is_plugin_active( 'facebook-for-woocommerce/facebook-for-woocommerce.php' ) || ($value == 1)) {
39
+ $available = true;
40
+ ?>
41
+ <div class="awdr-compatible-field">
42
+ <label>
43
+ <input type="checkbox" name="wdrc[<?php echo $this->key; ?>]" id="<?php echo $this->key; ?>" value="1" <?php if ($value == 1) { ?> checked <?php } ?>>
44
+ <?php esc_html_e('Add compatible for Facebook for WooCommerce', 'woo-discount-rules'); ?>
45
+ </label>
46
+ <br>
47
+ <span class="wdr_desc_text awdr-clear-both"><?php esc_html_e('Support only for rule type Product Adjustment and Bulk Discount (which has minimum quantity as 1).', 'woo-discount-rules'); ?></span>
48
+ </div>
49
+ <?php
50
+ }
51
+ }
52
+ }
v2/App/Conditions/Base.php CHANGED
@@ -315,7 +315,7 @@ abstract class Base
315
  */
316
  function findNotInListProduct($product, $cart_item, $comparision_value, $type, $options){
317
  $filter_helper = new Filter();
318
- $product_id = $product->get_id();
319
  $not_in_list_product = false;
320
  switch ($type){
321
  case 'product_category':
@@ -407,10 +407,10 @@ abstract class Base
407
  if(in_array($type, array_keys(Woocommerce::getCustomProductTaxonomies()))){
408
  $product_parent = Woocommerce::getProductParentId($product_id);
409
  $product_id = !empty($product_parent) ? $product_parent : $product_id;
410
- if(isset(Woocommerce::$product_taxonomy_terms[$product_id])){
411
- $term_ids = Woocommerce::$product_taxonomy_terms[$product_id];
412
  } else {
413
- $term_ids = Woocommerce::$product_taxonomy_terms[$product_id] = wp_get_post_terms($product_id, $type, array("fields" => "ids"));
414
  }
415
  $not_in_list_product = count(array_intersect($term_ids, $comparision_value)) > 0;
416
  }
315
  */
316
  function findNotInListProduct($product, $cart_item, $comparision_value, $type, $options){
317
  $filter_helper = new Filter();
318
+ $product_id = Woocommerce::getProductId($product);
319
  $not_in_list_product = false;
320
  switch ($type){
321
  case 'product_category':
407
  if(in_array($type, array_keys(Woocommerce::getCustomProductTaxonomies()))){
408
  $product_parent = Woocommerce::getProductParentId($product_id);
409
  $product_id = !empty($product_parent) ? $product_parent : $product_id;
410
+ if(isset(Woocommerce::$product_taxonomy_terms[$product_id]) && isset(Woocommerce::$product_taxonomy_terms[$product_id][$type])){
411
+ $term_ids = Woocommerce::$product_taxonomy_terms[$product_id][$type];
412
  } else {
413
+ $term_ids = Woocommerce::$product_taxonomy_terms[$product_id][$type] = wp_get_post_terms($product_id, $type, array("fields" => "ids"));
414
  }
415
  $not_in_list_product = count(array_intersect($term_ids, $comparision_value)) > 0;
416
  }
v2/App/Controllers/Admin/WDRAjax.php CHANGED
@@ -116,10 +116,18 @@ class WDRAjax extends Base
116
  if($product){
117
  $price = Woocommerce::getProductPrice($product);
118
  $custom_price = $this->input->post('custom_price', '');
 
 
 
 
119
  if(function_exists('wc_get_price_thousand_separator')){
120
  $price_thousand_separator = wc_get_price_thousand_separator();
121
  $custom_price = str_replace($price_thousand_separator, "", $custom_price);
122
  }
 
 
 
 
123
  $custom_price = floatval($custom_price);
124
  $result = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $price, $product, $quantity, $custom_price, 'all', true);
125
  if(!empty($result)){
@@ -684,6 +692,10 @@ class WDRAjax extends Base
684
  $price_html = self::$manage_discount->getPriceHtml($price_html, $product, $product_qty, true);
685
  remove_filter('woocommerce_get_price_html', array(Router::$manage_discount, 'getPriceHtml'), 100);
686
  $original_html = self::$woocommerce_helper->getPriceHtml($product);
 
 
 
 
687
  }
688
  }
689
 
@@ -733,9 +745,9 @@ class WDRAjax extends Base
733
  $states = $getStatesList[$country];
734
  foreach ($states as $id => $text) {
735
  if( is_array($selected_state) && !empty($selected_state) && in_array($id, $selected_state)){
736
- $state_options .= "<option value={$id} selected>{$text}</option>";
737
  }else{
738
- $state_options .= "<option value={$id}>{$text}</option>";
739
  }
740
 
741
  }
116
  if($product){
117
  $price = Woocommerce::getProductPrice($product);
118
  $custom_price = $this->input->post('custom_price', '');
119
+ $custom_price = str_replace('&nbsp;', '', $custom_price);
120
+ //A non breaking space is U+00A0 (Unicode) but encoded as C2A0 in UTF-8
121
+ $custom_price = preg_replace('~\x{00a0}~siu', '', $custom_price);
122
+ $custom_price = trim($custom_price);
123
  if(function_exists('wc_get_price_thousand_separator')){
124
  $price_thousand_separator = wc_get_price_thousand_separator();
125
  $custom_price = str_replace($price_thousand_separator, "", $custom_price);
126
  }
127
+ if(function_exists('wc_get_price_decimal_separator')){
128
+ $price_decimal_separator = wc_get_price_decimal_separator();
129
+ $custom_price = str_replace($price_decimal_separator, ".", $custom_price);
130
+ }
131
  $custom_price = floatval($custom_price);
132
  $result = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $price, $product, $quantity, $custom_price, 'all', true);
133
  if(!empty($result)){
692
  $price_html = self::$manage_discount->getPriceHtml($price_html, $product, $product_qty, true);
693
  remove_filter('woocommerce_get_price_html', array(Router::$manage_discount, 'getPriceHtml'), 100);
694
  $original_html = self::$woocommerce_helper->getPriceHtml($product);
695
+ if(empty($price_html)){
696
+ $price_html = $original_html;
697
+ }
698
+ $price_html = apply_filters('advanced_woo_discount_rules_dynamic_get_price_html', $price_html, $product, $awdr_request = true);
699
  }
700
  }
701
 
745
  $states = $getStatesList[$country];
746
  foreach ($states as $id => $text) {
747
  if( is_array($selected_state) && !empty($selected_state) && in_array($id, $selected_state)){
748
+ $state_options .= "<option value='" . $id ."' selected>{$text}</option>";
749
  }else{
750
+ $state_options .= "<option value='" . $id ."' > {$text} </option>";
751
  }
752
 
753
  }
v2/App/Controllers/Configuration.php CHANGED
@@ -72,6 +72,7 @@ class Configuration
72
  'wdr_override_custom_price' => 0, // 0,1
73
  'disable_recalculate_total' => 0, // 0,1
74
  'disable_recalculate_total_when_coupon_apply' => 0, // 0,1
 
75
  );
76
  private static $default_advanced_section_config = array(
77
  'wdr_override_custom_price' => 0, // 0,1
72
  'wdr_override_custom_price' => 0, // 0,1
73
  'disable_recalculate_total' => 0, // 0,1
74
  'disable_recalculate_total_when_coupon_apply' => 0, // 0,1
75
+ 'wdr_hide_other_shipping' => 0, // 0,1
76
  );
77
  private static $default_advanced_section_config = array(
78
  'wdr_override_custom_price' => 0, // 0,1
v2/App/Controllers/DiscountCalculator.php CHANGED
@@ -5,6 +5,7 @@ namespace Wdr\App\Controllers;
5
  use Wdr\App\Helpers\Helper;
6
  use Wdr\App\Helpers\Rule;
7
  use Wdr\App\Helpers\Woocommerce;
 
8
 
9
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
10
 
@@ -31,7 +32,7 @@ class DiscountCalculator extends Base
31
  * @param bool $ajax_price
32
  * @return array|bool
33
  */
34
- function getProductPriceToDisplay($product, $quantity, $is_cart = false, $ajax_price = false, $cart_item = array())
35
  {
36
 
37
  $this->is_cart = $is_cart;
@@ -45,7 +46,7 @@ class DiscountCalculator extends Base
45
  if (!$product) {
46
  return false;
47
  }
48
- return $this->mayApplyPriceDiscount($product, $quantity, $custom_price = 0, $ajax_price, $cart_item, $is_cart);
49
  }
50
 
51
  /**
@@ -244,7 +245,7 @@ class DiscountCalculator extends Base
244
  $value = (isset($product_adjustments->value) && !empty($product_adjustments->value)) ? $product_adjustments->value : 0;
245
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
246
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
247
- $this->advancedLayoutTextFormation($advanced_layout, $rule, $product_adjustments->type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color);
248
  }
249
  }
250
  if ($has_cart_discount) {
@@ -256,7 +257,7 @@ class DiscountCalculator extends Base
256
  $value = (isset($cart_discount->value) && !empty($cart_discount->value)) ? $cart_discount->value : 0;
257
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
258
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
259
- $this->advancedLayoutTextFormation($advanced_layout, $rule, $cart_discount->type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color);
260
  }
261
  }
262
  }
@@ -276,7 +277,7 @@ class DiscountCalculator extends Base
276
  $value = (isset($range->value) && !empty($range->value)) ? $range->value : 0;
277
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
278
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
279
- $this->advancedLayoutTextFormation($advanced_layout, $rule, $discount_type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $min, $max);
280
  }
281
  }
282
  }
@@ -286,7 +287,7 @@ class DiscountCalculator extends Base
286
  $discount_method = "free_shipping";
287
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
288
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
289
- $this->advancedLayoutTextFormation($advanced_layout, $rule, 'free_shipping', $discount_method, $product_price, '0', '0', $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, 0, 0);
290
  }
291
  }
292
  //}
@@ -315,7 +316,7 @@ class DiscountCalculator extends Base
315
  * @param $discount_method
316
  * @param $max
317
  */
318
- function advancedLayoutTextFormation(&$advanced_layout, $rule, $type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $min = 0, $max = 0)
319
  {
320
  $discount_text = '';
321
  $discounted_price_text = '';
@@ -340,6 +341,7 @@ class DiscountCalculator extends Base
340
  }
341
  $discount = $product_price - $discounted_price;
342
  $discount_text = Woocommerce::formatPrice($discount);
 
343
  $discounted_price_text = Woocommerce::formatPrice($discounted_price);
344
  }
345
  break;
@@ -350,6 +352,7 @@ class DiscountCalculator extends Base
350
  $discount = 0;
351
  }
352
  $discount_text = $value . '%';
 
353
  $discounted_price_text = Woocommerce::formatPrice($discount);
354
  }
355
  break;
@@ -364,6 +367,8 @@ class DiscountCalculator extends Base
364
  if($discount < 0){
365
  $discount = 0;
366
  }
 
 
367
  $discount_text = Woocommerce::formatPrice($value);
368
  $discounted_price_text = Woocommerce::formatPrice($discount);
369
  }
@@ -526,7 +531,7 @@ class DiscountCalculator extends Base
526
  * @param $cart_item
527
  * @return array|bool
528
  */
529
- function mayApplyPriceDiscount($product, $quantity, $custom_price = 0, $ajax_price = false, $cart_item = array(), $is_cart=true, $manual_request = false)
530
  {
531
  $this->filterExclusiveRule($quantity, $ajax_price, $is_cart, $manual_request);
532
  if (!empty(self::$rules) && !empty($product)) {
@@ -536,7 +541,7 @@ class DiscountCalculator extends Base
536
  $product_price = self::$woocommerce_helper->getProductRegularPrice($product);
537
  } else {
538
  $product_price = self::$woocommerce_helper->getProductPrice($product);
539
- if($product_price <= 0){
540
  if(isset($product->awdr_product_original_price) && !empty($product->awdr_product_original_price)){
541
  $product_price = $product->awdr_product_original_price;
542
  }
@@ -927,6 +932,15 @@ class DiscountCalculator extends Base
927
  $discount_lines[] = array('quantity' => $remaining_qty, 'discount' => $current_discount_amount, 'original_price' => $product_price, 'discounted_price' => ($product_price-$current_discount_amount));
928
  $remaining_qty -= $remaining_qty;
929
  $applied_qty += $remaining_qty;
 
 
 
 
 
 
 
 
 
930
  }
931
  }
932
  }
@@ -1054,6 +1068,10 @@ class DiscountCalculator extends Base
1054
  * @return array
1055
  */
1056
  public static function getFreeshippingMethod(){
 
 
 
 
1057
  foreach (self::$rules as $rule) {
1058
  $language_helper_object = self::$language_helper;
1059
  $chosen_languages = $rule->getLanguages();
5
  use Wdr\App\Helpers\Helper;
6
  use Wdr\App\Helpers\Rule;
7
  use Wdr\App\Helpers\Woocommerce;
8
+ use Wdr\App\Router;
9
 
10
  if (!defined('ABSPATH')) exit; // Exit if accessed directly
11
 
32
  * @param bool $ajax_price
33
  * @return array|bool
34
  */
35
+ function getProductPriceToDisplay($product, $quantity, $is_cart = false, $ajax_price = false, $cart_item = array(), $on_coupon_validate = false)
36
  {
37
 
38
  $this->is_cart = $is_cart;
46
  if (!$product) {
47
  return false;
48
  }
49
+ return $this->mayApplyPriceDiscount($product, $quantity, $custom_price = 0, $ajax_price, $cart_item, $is_cart, false, $on_coupon_validate);
50
  }
51
 
52
  /**
245
  $value = (isset($product_adjustments->value) && !empty($product_adjustments->value)) ? $product_adjustments->value : 0;
246
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
247
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
248
+ $this->advancedLayoutTextFormation($advanced_layout, $rule, $product_adjustments->type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $product);
249
  }
250
  }
251
  if ($has_cart_discount) {
257
  $value = (isset($cart_discount->value) && !empty($cart_discount->value)) ? $cart_discount->value : 0;
258
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
259
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
260
+ $this->advancedLayoutTextFormation($advanced_layout, $rule, $cart_discount->type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $product);
261
  }
262
  }
263
  }
277
  $value = (isset($range->value) && !empty($range->value)) ? $range->value : 0;
278
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
279
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
280
+ $this->advancedLayoutTextFormation($advanced_layout, $rule, $discount_type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $product, $min, $max);
281
  }
282
  }
283
  }
287
  $discount_method = "free_shipping";
288
  $badge_bg_color = $rule->getAdvancedDiscountMessage('badge_color_picker', '#ffffff');
289
  $badge_text_color = $rule->getAdvancedDiscountMessage('badge_text_color_picker', '#000000');
290
+ $this->advancedLayoutTextFormation($advanced_layout, $rule, 'free_shipping', $discount_method, $product_price, '0', '0', $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $product, 0, 0);
291
  }
292
  }
293
  //}
316
  * @param $discount_method
317
  * @param $max
318
  */
319
+ function advancedLayoutTextFormation(&$advanced_layout, $rule, $type, $discount_method, $product_price, $value, $discount_price, $discounted_title_text, $html_content, $badge_bg_color, $badge_text_color, $product, $min = 0, $max = 0)
320
  {
321
  $discount_text = '';
322
  $discounted_price_text = '';
341
  }
342
  $discount = $product_price - $discounted_price;
343
  $discount_text = Woocommerce::formatPrice($discount);
344
+ $discounted_price = $this->mayHaveTax($product, $discounted_price);
345
  $discounted_price_text = Woocommerce::formatPrice($discounted_price);
346
  }
347
  break;
352
  $discount = 0;
353
  }
354
  $discount_text = $value . '%';
355
+ $discount = $this->mayHaveTax($product, $discount);
356
  $discounted_price_text = Woocommerce::formatPrice($discount);
357
  }
358
  break;
367
  if($discount < 0){
368
  $discount = 0;
369
  }
370
+ $discount = $this->mayHaveTax($product, $discount);
371
+ $value = $this->mayHaveTax($product, $value);
372
  $discount_text = Woocommerce::formatPrice($value);
373
  $discounted_price_text = Woocommerce::formatPrice($discount);
374
  }
531
  * @param $cart_item
532
  * @return array|bool
533
  */
534
+ function mayApplyPriceDiscount($product, $quantity, $custom_price = 0, $ajax_price = false, $cart_item = array(), $is_cart=true, $manual_request = false, $on_coupon_validate = false)
535
  {
536
  $this->filterExclusiveRule($quantity, $ajax_price, $is_cart, $manual_request);
537
  if (!empty(self::$rules) && !empty($product)) {
541
  $product_price = self::$woocommerce_helper->getProductRegularPrice($product);
542
  } else {
543
  $product_price = self::$woocommerce_helper->getProductPrice($product);
544
+ if($product_price <= 0 || $on_coupon_validate){
545
  if(isset($product->awdr_product_original_price) && !empty($product->awdr_product_original_price)){
546
  $product_price = $product->awdr_product_original_price;
547
  }
932
  $discount_lines[] = array('quantity' => $remaining_qty, 'discount' => $current_discount_amount, 'original_price' => $product_price, 'discounted_price' => ($product_price-$current_discount_amount));
933
  $remaining_qty -= $remaining_qty;
934
  $applied_qty += $remaining_qty;
935
+ } else {
936
+ $current_product_price = $discount_lines['non_applied']['calculate_discount_from'];
937
+ $discount_lines['non_applied']['quantity'] = 0;
938
+ $current_discount_amount = $rule->calculator($price_discount['discount_type'], $current_product_price, $price_discount['discount_value']);
939
+ $current_discount_amount = apply_filters('advanced_woo_discount_rules_calculate_current_discount_amount', $current_discount_amount, $price_discount);
940
+ if($apply_subsequently === true) $current_product_price = $current_product_price - $current_discount_amount;
941
+ $discount_lines[] = array('quantity' => $available_qty, 'discount' => $current_discount_amount, 'original_price' => $product_price, 'discounted_price' => ($product_price-$current_discount_amount));
942
+ $remaining_qty -= $remaining_qty;
943
+ $applied_qty += $remaining_qty;
944
  }
945
  }
946
  }
1068
  * @return array
1069
  */
1070
  public static function getFreeshippingMethod(){
1071
+ /* For filter exclusive rule */
1072
+ $manage_discount = Router::$manage_discount;
1073
+ $discount_calculator = $manage_discount::$calculator;
1074
+ $discount_calculator->filterExclusiveRule(1, false, true, false);
1075
  foreach (self::$rules as $rule) {
1076
  $language_helper_object = self::$language_helper;
1077
  $chosen_languages = $rule->getLanguages();
v2/App/Controllers/ManageDiscount.php CHANGED
@@ -48,8 +48,9 @@ class ManageDiscount extends Base
48
  $minified_text = '';
49
  $compress_css_and_js = self::$config->getConfig('compress_css_and_js', 0);
50
  if($compress_css_and_js) $minified_text = '.min';
51
- wp_enqueue_style(WDR_SLUG . '-customize-table-ui-css', WDR_PLUGIN_URL . 'Assets/Css/customize-table'.$minified_text.'.css', array(), WDR_VERSION);
52
- wp_enqueue_script('awdr-main', WDR_PLUGIN_URL . 'Assets/Js/site_main'.$minified_text.'.js', array('jquery'), WDR_VERSION);
 
53
  $awdr_front_end_script = array(
54
  'ajaxurl' => admin_url('admin-ajax.php'),
55
  'nonce' => Helper::create_nonce('awdr_ajax_front_end'),
@@ -64,7 +65,7 @@ class ManageDiscount extends Base
64
  'custom_simple_product_id_selector' => apply_filters('advanced_woo_discount_rules_custom_simple_product_id_selector', ""),
65
  'custom_variable_product_id_selector' => apply_filters('advanced_woo_discount_rules_custom_variable_product_id_selector', ""),
66
  );
67
- wp_enqueue_script('awdr-dynamic-price', WDR_PLUGIN_URL . 'Assets/Js/awdr-dynamic-price'.$minified_text.'.js', array('jquery'), WDR_VERSION);
68
  wp_localize_script('awdr-main', 'awdr_params', $awdr_front_end_script);
69
  }
70
 
@@ -134,6 +135,22 @@ class ManageDiscount extends Base
134
  if(self::isProductOnSale($product_id) || $use_sale_badge_customize){
135
  $display_percentage_on_sale_badge = self::$config->getConfig('display_percentage_on_sale_badge', '');
136
  if($display_percentage_on_sale_badge == 1){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  $calculate_discount_from = self::$config->getConfig('calculate_discount_from', 'sale_price');
138
  if ($calculate_discount_from == 'regular_price') {
139
  $product_price = Woocommerce::getProductRegularPrice($_product);
@@ -460,6 +477,9 @@ class ManageDiscount extends Base
460
  continue;
461
  }
462
  $variation = Woocommerce::getProduct($variation_id);
 
 
 
463
  $prices = self::calculateInitialAndDiscountedPrice($variation, $quantity);
464
  if (!isset($prices['initial_price']) || !isset($prices['discounted_price'])) {
465
  return $this->removeDuplicateStrikeoutPrice($price_html);
@@ -851,6 +871,7 @@ class ManageDiscount extends Base
851
  * */
852
  public static function setCartCouponValues($label, $discount_value, $cart_item_keys){
853
  $coupon_code = apply_filters('woocommerce_coupon_code', $label);
 
854
  self::$apply_as_coupon_values[$coupon_code]['value'] = $discount_value;
855
  self::$apply_as_coupon_values[$coupon_code]['cart_item_keys'] = $cart_item_keys;
856
  self::$apply_as_coupon_values[$coupon_code]['display_text'] = $label;
@@ -881,7 +902,15 @@ class ManageDiscount extends Base
881
  $combined_discounts_cart_items = array();
882
  if(function_exists('WC')){
883
  if(apply_filters('advanced_woo_discount_rules_recalculate_discount_before_apply_coupon', true)){
884
- $this->applyCartProductDiscount(WC()->cart);
 
 
 
 
 
 
 
 
885
  }
886
  }
887
  $apply_as_cart_fee_details = DiscountCalculator::$price_discount_apply_as_cart_discount;
@@ -1234,13 +1263,13 @@ class ManageDiscount extends Base
1234
  * @param $cart_object
1235
  * @return boolean
1236
  */
1237
- function applyCartProductDiscount($cart_object)
1238
  {
1239
  remove_action('woocommerce_cart_calculate_fees', array($this, 'applyCartDiscount'));
1240
  Helper::clearPromotionMessages();
1241
  $do_apply_discount = $this->doApplyDiscount($cart_object);
1242
  if($do_apply_discount){
1243
- $this->calculateCartPageDiscounts();
1244
  $processed_rule = false;
1245
  if (!empty(self::$calculated_cart_item_discount)) {
1246
  if (isset($cart_object->cart_contents) && !empty($cart_object->cart_contents)) {
@@ -1286,7 +1315,7 @@ class ManageDiscount extends Base
1286
  * Calculate cart discounts
1287
  * @return bool
1288
  */
1289
- function calculateCartPageDiscounts()
1290
  {
1291
  $cart_items = self::$woocommerce_helper->getCart();
1292
  if (!empty($cart_items)) {
@@ -1296,7 +1325,7 @@ class ManageDiscount extends Base
1296
  $quantity = $cart_item['quantity'];
1297
  $calculate_discount_for_item = apply_filters('advanced_woo_discount_rules_calculate_discount_for_cart_item', true, $cart_item);
1298
  if($calculate_discount_for_item){
1299
- $prices = self::calculateInitialAndDiscountedPrice($product, $quantity, true, false, $cart_item);
1300
  if ($prices) {
1301
  //add the cart quantity
1302
  //Here discounts are calculated for per item
@@ -1736,7 +1765,7 @@ class ManageDiscount extends Base
1736
  if($discount > 0){
1737
  $total_discount = self::$woocommerce_helper->formatPrice($discount);
1738
  $subtotal_additional_text = '<br>' . $this->getYouSavedText($total_discount);
1739
- $item_subtotal_price .= apply_filters('advanced_woo_discount_rules_line_item_subtotal_saved_text', $subtotal_additional_text, $total_discount, $discount);
1740
  }
1741
  }
1742
  return $item_subtotal_price;
@@ -1877,9 +1906,9 @@ class ManageDiscount extends Base
1877
  * @param $ajax_price
1878
  * @return array|bool
1879
  */
1880
- static function calculateInitialAndDiscountedPrice($product, $quantity, $is_cart = false, $ajax_price = false, $cart_item = array())
1881
  {
1882
- return self::$calculator->getProductPriceToDisplay($product, $quantity, $is_cart, $ajax_price, $cart_item);
1883
  }
1884
 
1885
  /**
48
  $minified_text = '';
49
  $compress_css_and_js = self::$config->getConfig('compress_css_and_js', 0);
50
  if($compress_css_and_js) $minified_text = '.min';
51
+ // This have been added from v2.3.9. As it is added inline(Because it has only one css).
52
+ //wp_enqueue_style(WDR_SLUG . '-customize-table-ui-css', WDR_PLUGIN_URL . 'Assets/Css/customize-table'.$minified_text.'.css', array(), WDR_VERSION);
53
+ wp_enqueue_script('awdr-main', WDR_PLUGIN_URL . 'Assets/Js/site_main'.$minified_text.'.js', array('jquery'), WDR_VERSION, true);
54
  $awdr_front_end_script = array(
55
  'ajaxurl' => admin_url('admin-ajax.php'),
56
  'nonce' => Helper::create_nonce('awdr_ajax_front_end'),
65
  'custom_simple_product_id_selector' => apply_filters('advanced_woo_discount_rules_custom_simple_product_id_selector', ""),
66
  'custom_variable_product_id_selector' => apply_filters('advanced_woo_discount_rules_custom_variable_product_id_selector', ""),
67
  );
68
+ wp_enqueue_script('awdr-dynamic-price', WDR_PLUGIN_URL . 'Assets/Js/awdr-dynamic-price'.$minified_text.'.js', array('jquery'), WDR_VERSION, true);
69
  wp_localize_script('awdr-main', 'awdr_params', $awdr_front_end_script);
70
  }
71
 
135
  if(self::isProductOnSale($product_id) || $use_sale_badge_customize){
136
  $display_percentage_on_sale_badge = self::$config->getConfig('display_percentage_on_sale_badge', '');
137
  if($display_percentage_on_sale_badge == 1){
138
+ if (Woocommerce::productTypeIs($_product, array('variable'))) {
139
+ $variations = Woocommerce::getProductChildren($_product);
140
+ if (!empty($variations)) {
141
+ foreach ($variations as $variation_id) {
142
+ if (empty($variation_id)) {
143
+ continue;
144
+ }
145
+ $_product = Woocommerce::getProduct($variation_id);
146
+ $visible_variation = Woocommerce::variationIsVisible($_product);
147
+ if($visible_variation){
148
+ break;
149
+ }
150
+
151
+ }
152
+ }
153
+ }
154
  $calculate_discount_from = self::$config->getConfig('calculate_discount_from', 'sale_price');
155
  if ($calculate_discount_from == 'regular_price') {
156
  $product_price = Woocommerce::getProductRegularPrice($_product);
477
  continue;
478
  }
479
  $variation = Woocommerce::getProduct($variation_id);
480
+ if(!Woocommerce::variationIsVisible($variation)){
481
+ continue;
482
+ }
483
  $prices = self::calculateInitialAndDiscountedPrice($variation, $quantity);
484
  if (!isset($prices['initial_price']) || !isset($prices['discounted_price'])) {
485
  return $this->removeDuplicateStrikeoutPrice($price_html);
871
  * */
872
  public static function setCartCouponValues($label, $discount_value, $cart_item_keys){
873
  $coupon_code = apply_filters('woocommerce_coupon_code', $label);
874
+ $discount_value = apply_filters('advanced_woo_discount_rules_coupon_value', $discount_value, $label, $cart_item_keys);
875
  self::$apply_as_coupon_values[$coupon_code]['value'] = $discount_value;
876
  self::$apply_as_coupon_values[$coupon_code]['cart_item_keys'] = $cart_item_keys;
877
  self::$apply_as_coupon_values[$coupon_code]['display_text'] = $label;
902
  $combined_discounts_cart_items = array();
903
  if(function_exists('WC')){
904
  if(apply_filters('advanced_woo_discount_rules_recalculate_discount_before_apply_coupon', true)){
905
+ $cart_items = Woocommerce::getCart();
906
+ $loop_limit = 1;
907
+ if(!empty($cart_items) && is_array($cart_items)){
908
+ $loop_limit = count($cart_items)+1;
909
+ }
910
+ if ( $loop_limit >= did_action( 'advanced_woo_discount_rules_before_recalculate_discount_on_apply_coupon' ) ) {
911
+ do_action('advanced_woo_discount_rules_before_recalculate_discount_on_apply_coupon');
912
+ $this->applyCartProductDiscount(WC()->cart, true);
913
+ }
914
  }
915
  }
916
  $apply_as_cart_fee_details = DiscountCalculator::$price_discount_apply_as_cart_discount;
1263
  * @param $cart_object
1264
  * @return boolean
1265
  */
1266
+ function applyCartProductDiscount($cart_object, $on_coupon_validate = false)
1267
  {
1268
  remove_action('woocommerce_cart_calculate_fees', array($this, 'applyCartDiscount'));
1269
  Helper::clearPromotionMessages();
1270
  $do_apply_discount = $this->doApplyDiscount($cart_object);
1271
  if($do_apply_discount){
1272
+ $this->calculateCartPageDiscounts($on_coupon_validate);
1273
  $processed_rule = false;
1274
  if (!empty(self::$calculated_cart_item_discount)) {
1275
  if (isset($cart_object->cart_contents) && !empty($cart_object->cart_contents)) {
1315
  * Calculate cart discounts
1316
  * @return bool
1317
  */
1318
+ function calculateCartPageDiscounts($on_coupon_validate = false)
1319
  {
1320
  $cart_items = self::$woocommerce_helper->getCart();
1321
  if (!empty($cart_items)) {
1325
  $quantity = $cart_item['quantity'];
1326
  $calculate_discount_for_item = apply_filters('advanced_woo_discount_rules_calculate_discount_for_cart_item', true, $cart_item);
1327
  if($calculate_discount_for_item){
1328
+ $prices = self::calculateInitialAndDiscountedPrice($product, $quantity, true, false, $cart_item, $on_coupon_validate);
1329
  if ($prices) {
1330
  //add the cart quantity
1331
  //Here discounts are calculated for per item
1765
  if($discount > 0){
1766
  $total_discount = self::$woocommerce_helper->formatPrice($discount);
1767
  $subtotal_additional_text = '<br>' . $this->getYouSavedText($total_discount);
1768
+ $item_subtotal_price .= apply_filters('advanced_woo_discount_rules_line_item_subtotal_saved_text', $subtotal_additional_text, $total_discount, $discount, $cart_item, $cart_item_key);
1769
  }
1770
  }
1771
  return $item_subtotal_price;
1906
  * @param $ajax_price
1907
  * @return array|bool
1908
  */
1909
+ static function calculateInitialAndDiscountedPrice($product, $quantity, $is_cart = false, $ajax_price = false, $cart_item = array(), $on_coupon_validate = false)
1910
  {
1911
+ return self::$calculator->getProductPriceToDisplay($product, $quantity, $is_cart, $ajax_price, $cart_item, $on_coupon_validate);
1912
  }
1913
 
1914
  /**
v2/App/Controllers/OnSaleShortCode.php CHANGED
@@ -128,6 +128,11 @@ class OnSaleShortCode extends ManageDiscount
128
 
129
  public function rebuildOnSaleList($rules_ids){
130
  $this->on_sale_list = array();
 
 
 
 
 
131
  if(!empty($rules_ids) && is_array($rules_ids)){
132
  if(!in_array("all", $rules_ids)){
133
  self::$available_rules = $this->getSelectedRules($rules_ids);
128
 
129
  public function rebuildOnSaleList($rules_ids){
130
  $this->on_sale_list = array();
131
+ if(empty($rules_ids)){
132
+ update_option(self::$on_sale_list_key, array());
133
+ self::setRequiredRebuild(0);
134
+ return ;
135
+ }
136
  if(!empty($rules_ids) && is_array($rules_ids)){
137
  if(!in_array("all", $rules_ids)){
138
  self::$available_rules = $this->getSelectedRules($rules_ids);
v2/App/Helpers/Filter.php CHANGED
@@ -143,10 +143,10 @@ class Filter
143
  $product_parent = Woocommerce::getProductParentId($product_id);
144
  $product_id = !empty($product_parent) ? $product_parent : $product_id;
145
 
146
- if(isset(Woocommerce::$product_taxonomy_terms[$product_id])){
147
- $term_ids = Woocommerce::$product_taxonomy_terms[$product_id];
148
  } else {
149
- $term_ids = Woocommerce::$product_taxonomy_terms[$product_id] = wp_get_post_terms($product_id, $taxonomy, array("fields" => "ids"));
150
  }
151
 
152
  $is_product_has_term = count(array_intersect($term_ids, $operation_values)) > 0;
143
  $product_parent = Woocommerce::getProductParentId($product_id);
144
  $product_id = !empty($product_parent) ? $product_parent : $product_id;
145
 
146
+ if(isset(Woocommerce::$product_taxonomy_terms[$product_id]) && isset(Woocommerce::$product_taxonomy_terms[$product_id][$taxonomy])){
147
+ $term_ids = Woocommerce::$product_taxonomy_terms[$product_id][$taxonomy];
148
  } else {
149
+ $term_ids = Woocommerce::$product_taxonomy_terms[$product_id][$taxonomy] = wp_get_post_terms($product_id, $taxonomy, array("fields" => "ids"));
150
  }
151
 
152
  $is_product_has_term = count(array_intersect($term_ids, $operation_values)) > 0;
v2/App/Helpers/Helper.php CHANGED
@@ -163,7 +163,7 @@ class Helper
163
  <li ><a href='https://docs.flycart.org/en/articles/4203313-user-role-based-discount-rules-discount-rules-2-0?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=user_role_documentation' target='_blank'>" . __('User role', 'woo-discount-rules') . "</a></li>
164
  <li >" . __('Days & Time', 'woo-discount-rules') . "</li>
165
  <li ><a href='https://docs.flycart.org/en/articles/4206683-how-to-provide-first-order-discount-2-0?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=purchase_history' target='_blank'>" . __('Purchase History', 'woo-discount-rules') . "</a></li>
166
- <li >" . __('Payment Method', 'woo-discount-rules') . "</li>
167
  </ul>
168
  </span>
169
  <span style='width: 45%;'>
@@ -332,9 +332,9 @@ class Helper
332
 
333
  public static function displayCompatibleCheckMessages()
334
  {
335
- if (version_compare(WDR_VERSION, '2.3.8', '>=')) {
336
  if (defined('WDR_PRO_VERSION')) {
337
- if (version_compare(WDR_PRO_VERSION, '2.3.8', '<')) {
338
  $url = admin_url() . "plugins.php";
339
  $plugin_page = '<a target="_blank" href="' . $url . '">' . __('Update now', 'woo-discount-rules') . '</a>';
340
  ?>
163
  <li ><a href='https://docs.flycart.org/en/articles/4203313-user-role-based-discount-rules-discount-rules-2-0?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=user_role_documentation' target='_blank'>" . __('User role', 'woo-discount-rules') . "</a></li>
164
  <li >" . __('Days & Time', 'woo-discount-rules') . "</li>
165
  <li ><a href='https://docs.flycart.org/en/articles/4206683-how-to-provide-first-order-discount-2-0?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=purchase_history' target='_blank'>" . __('Purchase History', 'woo-discount-rules') . "</a></li>
166
+ <li ><a href='https://docs.flycart.org/en/articles/5207088-discount-based-on-the-payment-method?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=payment_menthod' target='_blank'>" . __('Payment Method', 'woo-discount-rules') . "</a></li>
167
  </ul>
168
  </span>
169
  <span style='width: 45%;'>
332
 
333
  public static function displayCompatibleCheckMessages()
334
  {
335
+ if (version_compare(WDR_VERSION, '2.3.9', '>=')) {
336
  if (defined('WDR_PRO_VERSION')) {
337
+ if (version_compare(WDR_PRO_VERSION, '2.3.9', '<')) {
338
  $url = admin_url() . "plugins.php";
339
  $plugin_page = '<a target="_blank" href="' . $url . '">' . __('Update now', 'woo-discount-rules') . '</a>';
340
  ?>
v2/App/Helpers/Rule.php CHANGED
@@ -656,6 +656,10 @@ class Rule
656
  */
657
  function calculateDiscount($product_price, $quantity, $product, $ajax_price, $cart_item = array(), $price_display_condition='show_when_matched', $is_cart=true, $manual_request = false)
658
  {
 
 
 
 
659
  $product_id = self::$woocommerce_helper->getProductId($product);
660
  self::$simple_discounts[$product_id] = 0;
661
  self::$bulk_discounts[$product_id] = 0;
@@ -673,7 +677,6 @@ class Rule
673
  $product_bulk_discount = $this->calculateProductBulkDiscount($product_price, $quantity, $product, $price_display_condition, $is_cart, $manual_request);
674
  self::$bulk_discounts[$product_id] = $product_bulk_discount;
675
  }
676
- $rule = $this;
677
  if(is_array($product_discount)) $product_discount = $product_discount['discount_price'];
678
  if(is_array($product_bulk_discount)) $product_bulk_discount = $product_bulk_discount['discount_price'];
679
  $discounts = array(
656
  */
657
  function calculateDiscount($product_price, $quantity, $product, $ajax_price, $cart_item = array(), $price_display_condition='show_when_matched', $is_cart=true, $manual_request = false)
658
  {
659
+ $rule = $this;
660
+ if(!apply_filters('advanced_woo_discount_rules_do_process_discounts_of_each_rule', true, $is_cart, $rule, $product, $cart_item, $price_display_condition)){
661
+ return false;
662
+ }
663
  $product_id = self::$woocommerce_helper->getProductId($product);
664
  self::$simple_discounts[$product_id] = 0;
665
  self::$bulk_discounts[$product_id] = 0;
677
  $product_bulk_discount = $this->calculateProductBulkDiscount($product_price, $quantity, $product, $price_display_condition, $is_cart, $manual_request);
678
  self::$bulk_discounts[$product_id] = $product_bulk_discount;
679
  }
 
680
  if(is_array($product_discount)) $product_discount = $product_discount['discount_price'];
681
  if(is_array($product_bulk_discount)) $product_bulk_discount = $product_bulk_discount['discount_price'];
682
  $discounts = array(
v2/App/Helpers/Validation.php CHANGED
@@ -407,7 +407,8 @@ class Validation
407
  'show_cross_sell_on_cart',
408
  'wdr_override_custom_price',
409
  'disable_recalculate_total',
410
- 'disable_recalculate_total_when_coupon_apply'
 
411
  )
412
  );
413
  //validate slug may contains a-zA-Z0-9_-
407
  'show_cross_sell_on_cart',
408
  'wdr_override_custom_price',
409
  'disable_recalculate_total',
410
+ 'disable_recalculate_total_when_coupon_apply',
411
+ 'wdr_hide_other_shipping'
412
  )
413
  );
414
  //validate slug may contains a-zA-Z0-9_-
v2/App/Helpers/Woocommerce.php CHANGED
@@ -1673,4 +1673,18 @@ class Woocommerce
1673
  }
1674
  return $price;
1675
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1676
  }
1673
  }
1674
  return $price;
1675
  }
1676
+
1677
+ /**
1678
+ * get the product visibility
1679
+ * @param $product - woocommerce product object
1680
+ * @return bool
1681
+ */
1682
+ static function variationIsVisible($product)
1683
+ {
1684
+ if (method_exists($product, 'variation_is_visible')) {
1685
+ return $product->variation_is_visible();
1686
+ } else {
1687
+ return false;
1688
+ }
1689
+ }
1690
  }
v2/App/Views/Templates/discount_table.php CHANGED
@@ -3,9 +3,22 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
3
 
4
  if (!empty($ranges) && !empty($woocommerce)) {
5
  if ($ranges['layout']['type'] == 'advanced') {
6
- $i=0;
7
  $existing_rule_id = 0;
8
  $tag_opened = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  foreach ($ranges as $key => $badge_settings){
10
  if($key !== 'layout'){
11
  $current_rule_id = isset($badge_settings['rule_id'])? $badge_settings['rule_id'] : '';
3
 
4
  if (!empty($ranges) && !empty($woocommerce)) {
5
  if ($ranges['layout']['type'] == 'advanced') {
6
+ $i = 0;
7
  $existing_rule_id = 0;
8
  $tag_opened = false;
9
+ /* This have been added from v2.3.9 */
10
+ if ( ! did_action( 'advanced_woo_discount_rules_before_display_discount_bar' ) ) {
11
+ do_action('advanced_woo_discount_rules_before_display_discount_bar');
12
+ ?>
13
+ <style>
14
+ .awdr_discount_bar{
15
+ padding: 10px;
16
+ margin-bottom: 10px;
17
+ border-radius: 4px;
18
+ }
19
+ </style>
20
+ <?php
21
+ }
22
  foreach ($ranges as $key => $badge_settings){
23
  if($key !== 'layout'){
24
  $current_rule_id = isset($badge_settings['rule_id'])? $badge_settings['rule_id'] : '';
v2/Assets/Css/admin_style.css CHANGED
@@ -1538,4 +1538,8 @@ div.awdr_recipe_main_card{
1538
  .awdr-header_text_recipe{
1539
  padding: 0 20px;
1540
  font-weight: bold;
 
 
 
 
1541
  }
1538
  .awdr-header_text_recipe{
1539
  padding: 0 20px;
1540
  font-weight: bold;
1541
+ }
1542
+ .awdr-compatible-field{
1543
+ clear: both;
1544
+ padding-top: 15px;
1545
  }
v2/Assets/Css/admin_style.min.css CHANGED
@@ -1 +1 @@
1
- .btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.wdr-status-alert{padding:8px;border:1px solid transparent;border-radius:4px}.awdr-container .status-alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.awdr-container .status-alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.awdr-container .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.awdr-container .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.awdr-container .btn-danger,.wdr .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.awdr-container .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.awdr-container .btn-warning{color:#fff;background-color:#ffc100;border-color:#ffc100}.text-right{float:right;margin:2px;text-decoration:none}.wdr-rule-menu{float:left;width:19%;background-color:#fff;padding:10px 10px 0 10px}.wdr-rule-menu button{background-color:#6495ed;padding:8px;margin-top:7px;display:block;width:100%;color:#fff;text-decoration:none;border-radius:3px;border:1px solid #92b4f2}.main{float:left;width:80%;background-color:#fff;clear:right}.right{background-color:#e5e5e5;float:left;width:20%;padding:15px;margin-top:7px;text-align:center}.wdr-block{border:1px solid #dcdcdc;font-size:12px;line-height:24px;padding:5px 10px 10px 10px;color:#555;margin-top:5px;margin-bottom:10px;background-color:#fff}.wdr-grid{width:100%}.grid-container1{width:100%;display:table}.wdr-general-grid-container{display:grid;grid-template-columns:auto;grid-gap:10px}.wdr-general-grid-container>div{text-align:left;padding:5px 0}.wdr-rule-setting{display:grid;grid-template-columns:14% auto 30%;grid-gap:10px}.wdr-rule-date-valid{display:grid;grid-template-columns:49% 49%;grid-gap:10px}.wdr-rule-setting>div{padding:5px 0}.wdr-title{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:4px;background-color:#fff;padding:8px 10px 8px 10px;height:40px}.wdr-discount-type-selector{box-sizing:border-box;border:1px solid #ccc;border-radius:4px;background-color:#fff;padding:8px 10px 8px 10px;height:40px}.wdr-save-rule{background-color:#6495ed!important;color:#fff!important;border:1px solid #92b4f2!important}.wdr-add-condition{line-height:24px;margin-top:10px}.wdr-column{margin-right:10px}.wdr-active{cursor:no-drop;background-color:#fff!important;color:#6495ed!important}.wdr-inactive:hover{cursor:pointer;background-color:#92b4f2!important}.wdr-conditions-container[data-index="1"]{display:none}.wdr-conditions-container{padding:10px 0 20px 0;list-style:none;display:flex;margin:10px 0;border-bottom:1px solid #ddd}.wdr-condition-types{width:22%;padding-right:5px}.wdr-condition-container{width:75%;display:flex;flex-wrap:nowrap}.wdr-discount-tabs{width:100%;display:table}.wdr-discount-tabs a{text-decoration:none;display:table-cell;padding:5px}.wdr-simple-discount-main{display:table;width:100%}.wdr-simple-discount-inner div{padding:5px;display:table-cell;width:auto;vertical-align:middle}.wdr-cart-discount-main{display:grid;width:100%}.wdr-cart-discount-inner div{padding:5px;display:inline-grid;width:auto}.wdr-discount-block{font-size:12px;line-height:24px;padding:5px 10px 10px 10px;color:#555;margin-bottom:10px}.wdr_desc_text{color:#a9a9a9;display:inline-block;font-size:12px;float:left;padding-top:5px}.wdr_settings_desc_text{color:#a9a9a9;display:inline-block;font-size:12px;float:left;padding-top:5px}.wdr_save_btn_disabled{opacity:.3;cursor:default}.awdr-container .toggle{--uiToggleSize:var(--toggleSize, 20px);--uiToggleIndent:var(--toggleIndent, .4em);--uiToggleBorderWidth:var(--toggleBorderWidth, 2px);--uiToggleColor:var(--toggleColor, #000);--uiToggleDisabledColor:var(--toggleDisabledColor, #868e96);--uiToggleBgColor:var(--toggleBgColor, #fff);--uiToggleArrowWidth:var(--toggleArrowWidth, 2px);--uiToggleArrowColor:var(--toggleArrowColor, #fff);display:inline-block;position:relative}.awdr-container .toggle__input{position:absolute;left:-99999px}.awdr-container .toggle__label{display:inline-flex;cursor:pointer;min-height:var(--uiToggleSize);padding-left:calc(var(--uiToggleSize) + var(--uiToggleIndent))}.awdr-container .toggle__label:before,.toggle__label:after{content:"";box-sizing:border-box;width:1em;height:1em;font-size:var(--uiToggleSize);position:absolute;left:0;top:0}.awdr-container .toggle__label:before{border:var(--uiToggleBorderWidth) solid var(--uiToggleColor);z-index:2}.awdr-container .toggle__input:disabled~.toggle__label:before{border-color:var(--uiToggleDisabledColor)}.awdr-container .toggle__input:focus~.toggle__label:before{box-shadow:0 0 0 2px var(--uiToggleBgColor),0 0 0 4px var(--uiToggleColor)}.awdr-container .toggle__input:not(:disabled):checked:focus~.toggle__label:after{box-shadow:0 0 0 2px var(--uiToggleBgColor),0 0 0 4px var(--uiToggleColor)}.awdr-container .toggle__input:not(:disabled)~.toggle__label:after{background-color:var(--uiToggleColor);opacity:0}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label:after{opacity:1}.awdr-container .toggle__text{margin-top:auto;margin-bottom:auto}.awdr-container .toggle__text:before{content:"";box-sizing:border-box;width:0;height:0;font-size:var(--uiToggleSize);border-left-width:0;border-bottom-width:0;border-left-style:solid;border-bottom-style:solid;border-color:var(--uiToggleArrowColor);position:absolute;top:.5428em;left:.2em;z-index:3;transform-origin:left top;transform:rotate(-40deg) skew(10deg)}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label .toggle__text:before{width:.5em;height:.25em;border-left-width:var(--uiToggleArrowWidth);border-bottom-width:var(--uiToggleArrowWidth);will-change:width,height;transition:width .1s ease-out .2s,height .2s ease-out}.awdr-container .toggle__label:before,.toggle__label:after{border-radius:2px}.awdr-container .toggle__input:not(:disabled)~.toggle__label:after,.awdr-container .toggle__input:not(:disabled)~.toggle__label:before{opacity:1;transform-origin:center center;will-change:transform;transition:transform .2s ease-out}.awdr-container .toggle__input:not(:disabled)~.toggle__label:before{transform:rotateY(0);transition-delay:.2s}.awdr-container .toggle__input:not(:disabled)~.toggle__label:after{transform:rotateY(90deg)}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label:before{transform:rotateY(-90deg);transition-delay:0s}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label:after{transform:rotateY(0);transition-delay:.2s}.awdr-container .toggle__text:before{opacity:0}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label .toggle__text:before{opacity:1;transition:opacity .1s ease-out .3s,width .1s ease-out .5s,height .2s ease-out .3s}.awdr-container .toggle{--toggleColor:#6495ed;--toggleBgColor:#6495ed;--toggleSize:25px}.awdr-container .page__toggle{padding-left:20px;padding-top:7px}.wdr-enable-rule .wdr-discount-type{width:19.7%}.wdr-enable-rule{display:flex;padding:10px 30px 20px 2px}@media only screen and (max-width:620px){.main,.right,.wdr-rule-menu{width:100%}}.wdr-sticky-header{background-color:#fff;padding:20px;margin-bottom:20px}.wdr-sticky{position:fixed;top:33px;width:87%;overflow:hidden;background-color:#eee;z-index:1}.nav-tab.nav-tab-active{background-color:#fff}.awdr-product-selector{width:100%!important;margin-bottom:10px;padding-left:4px}.wdr-filter-type select{height:34px}.wdr-product_filter_method select{height:34px}.wdr-product-filter-type{min-width:100px}.wdr-alert-top-right{position:fixed;top:116px;right:30px;width:300px;z-index:9999}.wdr-alert-success{color:#fff;background:green;font-weight:bolder}.wdr-alert-error{color:#fff;background:red;font-weight:bolder}.wdr-alert-warning{color:#fff;background:#f4a460;font-weight:bolder}.wdr-alert{border-radius:5px;padding:10px;margin-bottom:10px;width:100%!important;z-index:9999}.wdr-general-setting.form-table th{padding:20px 10px 20px 10px;width:300px}.wdr-filter-type{display:inline-block}.wdr-filter-group-items .wdr-filter-group .wdr-products_group{padding-right:10px;display:inline-flex;flex-wrap:nowrap;width:60%}.wdr_filter_remove{display:inline-block}.wdr-cart-search_box{min-width:500px}.wdr-coupon-search_box{min-width:400px}.wdr-search-box{min-width:250px;vertical-align:super}.wdr-filter-group{margin-bottom:10px;padding:15px 0 15px 0;border-bottom:1px solid #ddd}.wdr-condition-type select{height:34px}.wdr-select-filed-hight select{height:34px}.wdr-input-filed-hight input{height:34px!important}.add-condition-and-filters{margin-top:15px}.wdr-tool-tip{background-color:gray;color:#fff;display:inline-block;padding-left:5px;padding-right:5px;text-align:center;border-radius:50%;font-size:10px;font-weight:bolder;cursor:help}.wdr-hide{display:none}.padding10{padding:10px}.wdr-rule-statistics{display:flex}.wdr-rule-statistics>div{padding:10px}.awdr-container .button.bottom-tabs{margin-right:5px}.awdr-container .remove-clicked-discount-block:hover,.awdr-container .remove-current-row:hover,.awdr-container .wdr_discount_remove:hover{cursor:pointer}.wdr-ruleboard{cursor:move}.wdr-loader{display:none!important;width:64px;height:64px;position:absolute;left:0;right:0;z-index:999;margin:auto;top:0;bottom:0}.wdr-loader:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid #333;border-color:#333 transparent #333 transparent;animation:wdr-loader 1.2s linear infinite}@keyframes wdr-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.awdr-container textarea{width:100%;height:150px;padding:10px 20px;box-sizing:border-box;border:1px solid #ddd;border-radius:4px;background-color:#f8f8f8;resize:none}.adv-msg-max-qty,.adv-msg-min-qty{display:none}.wdr-customizer-container{width:100%}.wdr-customizer-grid{display:grid;grid-template-columns:53% 47%;grid-gap:10px;padding:10px}.wdr-customizer-grid>div{padding:0 0}.popup-bulk-table{padding:0 0;margin-top:0}.popup-bulk-table tr th{padding:20px 20px}.wdr_bulk_table_msg{width:100%}.awdr-container .modal,.awdr-container .modal-box{z-index:9999;visibility:unset;opacity:1}.awdr-container .modal-sandbox{position:fixed;width:100%;height:100%;top:0;left:0;background:0 0}.awdr-container .modal{display:none;position:fixed;width:100%;height:100%;left:0;top:0;background:#000;background:rgba(0,0,0,.8);overflow:auto}.awdr-container .modal-box{position:relative;width:80%;max-width:920px;margin:100px auto;animation-name:modalbox;animation-duration:.4s;animation-timing-function:cubic-bezier(0,0,.3,1.6)}.awdr-container .modal-header{padding:20px 40px;background:#6495ed;color:#fff}.awdr-container .modal-body{background:#eceff1;padding:50px 15px}.awdr-container .close-modal{text-align:right;cursor:pointer}@-webkit-keyframes modalbox{0%{top:-250px;opacity:0}100%{top:0;opacity:1}}@keyframes modalbox{0%{top:-250px;opacity:0}100%{top:0;opacity:1}}.awdr-configuration-form .modal-trigger{top:50%;left:50%;background:0 0;border:1px solid #fff;text-decoration:none}.wdr-modal-header-title{color:#fff}.wdr-model-bottom-btn{float:right;margin:5px}.wdr-popup-link{cursor:pointer}table.wdr_bulk_table_msg,td.wdr_bulk_table_td,th.wdr_bulk_table_td,tr.wdr_bulk_table_tr{padding:10px}.wdr-customizer-notes{padding:0 10px}.wdr-red-text{color:red}.wdr-cart-coupon-value .coupon_name_msg{text-transform:uppercase}span#awdr_shortcode_text{font-weight:700}.awdr-list-header-btn a.text-right{float:right;margin-left:10px;text-decoration:none}.wdr-rule-options-con{width:80%;float:left}.awdr-clear{height:inherit;clear:both}.wdr-rule-filters-and-options-con{background-color:#fff;display:flex;padding:10px}.wdr-btn-remove .wdr_discount_remove,.wdr-condition-group .remove-current-row,.wdr-discount-block-remove .remove-clicked-discount-block,.wdr_filter_remove .remove-current-row{color:#fff;background-color:#d9534f;border-radius:3px}.wdr-condition-group .remove-current-row{margin-top:5px}.wdp-block.add-condition{margin-top:10px}.set_range_setter{margin-bottom:15px}.bulk_range_setter .wdr-simple-discount-inner,.range_setter_inner .wdr-simple-discount-inner,.wdr-cart-discount-placement .wdr-simple-discount-inner{border-bottom:1px solid #ddd;padding:5px 0}.buyx_getx_individual_range{padding:5px 0}.wdr-conditions-container .float_only_field,.wdr-conditions-container .number_only_field,.wdr-conditions-container input[type=number]{width:100px}.wdr-condition-type-options div{display:inline-block;margin:0 2px}.wdr-condition-type-options{margin:0 5px}#configuration-form table tbody tr>td:first-child{width:400px}.wdr_color_picker{letter-spacing:.2rem}.wdr_adv_msg_shortcode_text{color:#a9a9a9;font-size:12px}.awdr_popup_col_name_text_box{width:100%!important}#customize-bulk-table-title{width:40%;text-align:left}#customize-bulk-table-discount,#customize-bulk-table-range{width:30%;text-align:left}table.wdr_bulk_table_msg{border-collapse:collapse}table.wdr_bulk_table_msg,td.wdr_bulk_table_td,th.wdr_bulk_table_td,tr.wdr_bulk_table_tr{border:1px solid #bfc6cb}.awdr-dragable{cursor:ew-resize;word-break:break-all}.awdr_valide_date_in_desc{line-height:28px;font-size:14px;padding-left:20px}.wdr_customize_table table tbody tr>td:first-child{width:auto!important}.awdr-listing-rule-tr:hover{background-color:#ddf2ff}tr.awdr-listing-rule-tr td{vertical-align:middle}.awdr-text-warning{color:#8a6d3b}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:0!important}.widefat tbody th.check-column{padding:0!important}.widefat .check-column{width:2.2em!important;padding:0!important;vertical-align:middle!important}.awdr-save-green{border-radius:5px;padding:10px;width:98%;z-index:9999}.awdr-error-red{border-radius:5px;padding:10px;width:98%;z-index:9999}.banner-short-code-setting{vertical-align:middle;line-height:39px}.awdr-condition-container,.awdr-discount-container{background-color:#fff;margin:20px 0;clear:both}.awdr-discount-batch-container{background-color:#fff;clear:both}.awdr-condition-container h2,.awdr-discount-container h2,.wdr-advanced-layout-groups h2,.wdr-rule-menu h2{color:#6495ed;margin:auto}.awdr-sub-heading-description{font-size:smaller;color:gray}.woocommerce table.form-table.awdr-discount-badge{table-layout:auto!important}.woocommerce table.form-table.awdr-discount-badge input[type=text]{width:auto}.awdr-exclusive-enable-listing{color:#4cae4c;font-size:10px;border:1px solid #4cae4c;padding:2px;margin:8px;border-radius:3px}.awdr-exclusive-disable-listing{color:#d43f3a;font-size:10px;border:1px solid #d43f3a;padding:2px;margin:8px;border-radius:3px}.switch{position:relative;display:block;vertical-align:top;width:84px;height:30px;padding:3px;margin:0 5px 10px 0;border-radius:0;cursor:pointer;box-sizing:content-box}.switch-input{position:absolute;top:0;left:0;opacity:0;box-sizing:content-box}.switch-label{position:relative;display:block;height:inherit;font-size:13px;background:grey;border-radius:4px;box-sizing:content-box}.switch-label:after,.switch-label:before{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;-moz-transition:inherit;-o-transition:inherit;transition:inherit;box-sizing:content-box}.switch-label:before{content:attr(data-off);right:11px;color:#fff;text-shadow:0 1px rgba(255,255,255,.5)}.switch-label:after{content:attr(data-on);left:11px;color:#fff;text-shadow:0 1px rgba(0,0,0,.2);opacity:0}.switch-input:checked~.switch-label{background:#5cb85c;box-shadow:inset 0 1px 2px rgba(0,0,0,.15),inset 0 0 3px rgba(0,0,0,.2)}.switch-input:checked~.switch-label:before{opacity:0}.switch-input:checked~.switch-label:after{opacity:1}.switch-handle{position:absolute;top:4px;left:4px;width:12px;height:28px;background:linear-gradient(to bottom,#fff 40%,#f0f0f0);background-image:-webkit-linear-gradient(top,#fff 40%,#f0f0f0);border-radius:4px;box-shadow:1px 1px 5px rgba(0,0,0,.2)}.switch-handle:before{content:"";position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:linear-gradient(to bottom,#eee,#fff);background-image:-webkit-linear-gradient(top,#eee,#fff);border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,.02)}.switch-input:checked~.switch-handle{left:74px;box-shadow:-1px 1px 5px rgba(0,0,0,.2)}.switch-handle,.switch-label{transition:All .3s ease;-webkit-transition:All .3s ease;-moz-transition:All .3s ease;-o-transition:All .3s ease}.awdr-container input[type=color]{padding:2px}.awdr-common-save{margin-left:auto}.wdr-buyx-getx-discount-main,.wdr-buyx-gety-discount-main{display:grid;width:100%}.awdr-buyx-getx-number-box,.awdr-buyx-gety-number-box{width:150px}.wdr-buyx-getx-discount-inner div,.wdr-buyx-gety-discount-inner div{display:inline-grid;width:auto;padding:5px}.awdr-discount-add-row{padding-left:14px}.awdr-listing-status-text{padding-left:10px}.awdr-get-y-general-settings{display:flex;width:auto}.awdr-left-align{float:left}.awdr-clear-both{clear:both}.awdr_check_styles{display:flex}.awdr_discount_type_section{padding-bottom:20px}.awdr-rules-sub-menu{padding-top:42px!important}.awdr-rule-limit-timestamp{color:#a9a9a9;display:inline-block;font-size:12px;text-transform:capitalize;line-height:34px;padding-left:15px}#wpfooter{position:relative;z-index:-1}.wdr-buyx-gety-discount-inner{padding:5px}.page__toggle.apply_as_cart_checkbox{padding-left:11px;padding-top:20px}.apply_as_cart_checkbox .toggle__label:after,.apply_as_cart_checkbox .toggle__label:before{width:.8em!important;height:.8em!important}.toggle_tic.toggle__text:before{top:.43em!important;left:.1em!important}.apply_discount_as_cart_section{display:flex}.apply_fee_coupon_label{padding-left:15px;padding-top:13px}.bulk-row-start{border-bottom:1px solid #ddd;padding:5px 0}.bulk-row-start div{padding:5px;display:table-cell;width:min-content}.woocommerce table.form-table.popup-bulk-table th{padding-right:0!important}.awdr_table_columns{display:flex}.awdr-accordion{background-color:#fff;color:#6495ed;cursor:pointer;padding:18px;width:100%;border:none;text-align:left;outline:0;font-weight:600;font-size:1.3em;transition:.4s}.awdr-accordion-active,.awdr-accordion:hover{background-color:grey;color:#fff}.awdr-accordion-panel{display:none;background-color:#fff;overflow:hidden}.awdr-accordion:after{content:'\02795';font-size:13px;color:#777;float:right;margin-left:5px}.awdr-accordion-active:after{content:"\2796"}.wdr_filter_desc_text{color:#a9a9a9;display:block;font-size:12px;padding-top:5px}.wdr_select2_desc_text{color:#a9a9a9;display:inline-block;font-size:12px;text-transform:capitalize;padding-top:5px}.awdr-sort-icon{padding-top:12px!important}.bulk_range_setter{cursor:move}.dashicons-menu{color:#a9a9a9!important}.dashicons-menu:hover{color:#000!important}.awdr_admin_discount_bar{padding:10px;margin-bottom:10px;border-radius:4px}.wdr_migration_container{margin:10px 0}.wdr_settings .woo_discount_loader{display:none;position:absolute;background-color:rgba(255,255,255,.5);top:0;left:0;width:100%;height:100%;text-align:center}.woo_discount_loader .lds-ripple{display:inline-block;position:relative;top:50%;width:64px;height:64px}.woo_discount_loader .lds-ripple div{position:absolute;border:4px solid #257af0;opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.woo_discount_loader .lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:28px;left:28px;width:0;height:0;opacity:1}100%{top:-1px;left:-1px;width:58px;height:58px;opacity:0}}.awdr-product-selector span.select2-selection{max-height:100px;overflow:auto}.bulk_discount_max,.bulk_discount_min,.bulk_discount_value,.set_discount_min,.set_discount_value{max-width:106px}.set-for{padding-bottom:32px!important}.set-discount-row-main{display:grid;width:100%}.set-discount-row-inner>div{display:inline-grid;width:auto;padding:5px}.bulk-row-main{display:grid;width:100%}.bulk-row-inner>div{display:inline-grid;width:auto;padding:5px}fieldset{border:1px solid #a9a9a9!important;float:left;margin:5px}.awdr-switch-version-button-on-tab{float:right;background:#5bc0de;color:#fff}.awdr_version_text{font-size:12px;display:inline-block;position:relative;top:10px;left:8px;font-weight:400;padding-right:10px}.awdr_rebuild_on_sale_list_notice{color:red;padding:8px 0}.awdr_rebuild_on_sale_rule_page_con{display:none}.awdr_rebuild_on_sale_rule_page_con.need_attention{display:contents}div.wdr{margin-top:30px;margin-right:20px}.awdr-common-save>button,.awdr-rule-buttons>a{margin-bottom:2px}@media (min-width:320px) and (max-width:480px){.wdr_settings{position:absolute}.wdr-rule-filters-and-options-con{display:contents}.wdr-enable-rule{display:inline-grid}.wdr-rule-setting{display:grid;grid-template-columns:unset}.wdr-conditions-container{display:contents}.wdr-rule-menu{width:80%}.wdr-rule-options-con{width:83%}#wpfooter{position:fixed}}@media (min-width:481px) and (max-width:767px){.wdr_settings{position:absolute}.wdr-rule-filters-and-options-con{display:contents}.wdr-rule-setting{display:grid;grid-template-columns:unset}.wdr-conditions-container{display:contents}.wdr-rule-menu{width:80%}.wdr-rule-options-con{width:83%}#wpfooter{position:fixed}}#wdr-search-top{position:relative;margin-left:189px;margin-bottom:-48px}.awdr_rebuild_on_sale_list_con .select2-search{width:120%}.wdr_subtotal_promo_filed_name{color:#000}.awdr-bullet-style{list-style-type:disc}.awdr-bullet-style li a{color:#444}.awdr-bulk-three-column{display:grid!important;grid-template-columns:10% 30% 50%!important;grid-gap:10px;padding:10px}.awdr-count-by-description{background-color:#f5de9c;padding:10px}.awdr_normal_enable_check_box,.awdr_normal_exclusive_check_box{padding:10px}.wdr_settings_desc_text.text-warning{color:#f0ad4e}.awdr_promotion_message_display_pages .select2-search__field{width:225%!important}.awdr_recipe_container{background-color:#fff;display:flex;padding:0 10px}.awdr_recipe_left{float:left;width:19%;background-color:#fff;padding:10px 10px 0 10px}.awdr_recipe_right{width:80%;float:left;margin:21px}div.awdr_recipe_main_card{cursor:pointer}.awdr_recipe_main_card{transition:.3s;width:100%;border-radius:5px;margin-top:20px;margin-bottom:20px;border-radius:5px;border:1px solid #6495ed}.awdr_recipe_main_card:first-child{background-color:#6495ed;color:#fff}.awdr_recipe_main_card div{padding:2px 16px;border-radius:5px}.card:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.awdr_common_border_class{padding:10px;margin:10px;border:1px solid #6495ed;border-radius:5px}.awdr_recipe_main_content .button{background-color:#6495ed;border:none;color:#fff;padding:0 32px;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;border-radius:5px;margin-left:10px}.awdr-three-column-document-head{display:grid;grid-template-columns:auto auto auto auto;background-color:#f0f0f1;padding:5px}.awdr-three-column-inner{padding:15px;font-size:large}.awdr-first-column{background-color:#fff;border:3px solid #f0f0f1}.awdr-second-column{background-color:#fff;border:3px solid #f0f0f1}.awdr-third-column{background-color:#fff;border:3px solid #f0f0f1}.wdr_read_documentation{text-decoration:none}.wdr_read_documentation_con{padding:10px 0 10px 0}.awdr-hr-line{padding:10px}.awdr-header_text_recipe{padding:0 20px;font-weight:700}
1
+ .btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.wdr-status-alert{padding:8px;border:1px solid transparent;border-radius:4px}.awdr-container .status-alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.awdr-container .status-alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.awdr-container .btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.awdr-container .btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.awdr-container .btn-danger,.wdr .btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.awdr-container .btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.awdr-container .btn-warning{color:#fff;background-color:#ffc100;border-color:#ffc100}.text-right{float:right;margin:2px;text-decoration:none}.wdr-rule-menu{float:left;width:19%;background-color:#fff;padding:10px 10px 0 10px}.wdr-rule-menu button{background-color:#6495ed;padding:8px;margin-top:7px;display:block;width:100%;color:#fff;text-decoration:none;border-radius:3px;border:1px solid #92b4f2}.main{float:left;width:80%;background-color:#fff;clear:right}.right{background-color:#e5e5e5;float:left;width:20%;padding:15px;margin-top:7px;text-align:center}.wdr-block{border:1px solid #dcdcdc;font-size:12px;line-height:24px;padding:5px 10px 10px 10px;color:#555;margin-top:5px;margin-bottom:10px;background-color:#fff}.wdr-grid{width:100%}.grid-container1{width:100%;display:table}.wdr-general-grid-container{display:grid;grid-template-columns:auto;grid-gap:10px}.wdr-general-grid-container>div{text-align:left;padding:5px 0}.wdr-rule-setting{display:grid;grid-template-columns:14% auto 30%;grid-gap:10px}.wdr-rule-date-valid{display:grid;grid-template-columns:49% 49%;grid-gap:10px}.wdr-rule-setting>div{padding:5px 0}.wdr-title{width:100%;box-sizing:border-box;border:1px solid #ccc;border-radius:4px;background-color:#fff;padding:8px 10px 8px 10px;height:40px}.wdr-discount-type-selector{box-sizing:border-box;border:1px solid #ccc;border-radius:4px;background-color:#fff;padding:8px 10px 8px 10px;height:40px}.wdr-save-rule{background-color:#6495ed!important;color:#fff!important;border:1px solid #92b4f2!important}.wdr-add-condition{line-height:24px;margin-top:10px}.wdr-column{margin-right:10px}.wdr-active{cursor:no-drop;background-color:#fff!important;color:#6495ed!important}.wdr-inactive:hover{cursor:pointer;background-color:#92b4f2!important}.wdr-conditions-container[data-index="1"]{display:none}.wdr-conditions-container{padding:10px 0 20px 0;list-style:none;display:flex;margin:10px 0;border-bottom:1px solid #ddd}.wdr-condition-types{width:22%;padding-right:5px}.wdr-condition-container{width:75%;display:flex;flex-wrap:nowrap}.wdr-discount-tabs{width:100%;display:table}.wdr-discount-tabs a{text-decoration:none;display:table-cell;padding:5px}.wdr-simple-discount-main{display:table;width:100%}.wdr-simple-discount-inner div{padding:5px;display:table-cell;width:auto;vertical-align:middle}.wdr-cart-discount-main{display:grid;width:100%}.wdr-cart-discount-inner div{padding:5px;display:inline-grid;width:auto}.wdr-discount-block{font-size:12px;line-height:24px;padding:5px 10px 10px 10px;color:#555;margin-bottom:10px}.wdr_desc_text{color:#a9a9a9;display:inline-block;font-size:12px;float:left;padding-top:5px}.wdr_settings_desc_text{color:#a9a9a9;display:inline-block;font-size:12px;float:left;padding-top:5px}.wdr_save_btn_disabled{opacity:.3;cursor:default}.awdr-container .toggle{--uiToggleSize:var(--toggleSize, 20px);--uiToggleIndent:var(--toggleIndent, .4em);--uiToggleBorderWidth:var(--toggleBorderWidth, 2px);--uiToggleColor:var(--toggleColor, #000);--uiToggleDisabledColor:var(--toggleDisabledColor, #868e96);--uiToggleBgColor:var(--toggleBgColor, #fff);--uiToggleArrowWidth:var(--toggleArrowWidth, 2px);--uiToggleArrowColor:var(--toggleArrowColor, #fff);display:inline-block;position:relative}.awdr-container .toggle__input{position:absolute;left:-99999px}.awdr-container .toggle__label{display:inline-flex;cursor:pointer;min-height:var(--uiToggleSize);padding-left:calc(var(--uiToggleSize) + var(--uiToggleIndent))}.awdr-container .toggle__label:before,.toggle__label:after{content:"";box-sizing:border-box;width:1em;height:1em;font-size:var(--uiToggleSize);position:absolute;left:0;top:0}.awdr-container .toggle__label:before{border:var(--uiToggleBorderWidth) solid var(--uiToggleColor);z-index:2}.awdr-container .toggle__input:disabled~.toggle__label:before{border-color:var(--uiToggleDisabledColor)}.awdr-container .toggle__input:focus~.toggle__label:before{box-shadow:0 0 0 2px var(--uiToggleBgColor),0 0 0 4px var(--uiToggleColor)}.awdr-container .toggle__input:not(:disabled):checked:focus~.toggle__label:after{box-shadow:0 0 0 2px var(--uiToggleBgColor),0 0 0 4px var(--uiToggleColor)}.awdr-container .toggle__input:not(:disabled)~.toggle__label:after{background-color:var(--uiToggleColor);opacity:0}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label:after{opacity:1}.awdr-container .toggle__text{margin-top:auto;margin-bottom:auto}.awdr-container .toggle__text:before{content:"";box-sizing:border-box;width:0;height:0;font-size:var(--uiToggleSize);border-left-width:0;border-bottom-width:0;border-left-style:solid;border-bottom-style:solid;border-color:var(--uiToggleArrowColor);position:absolute;top:.5428em;left:.2em;z-index:3;transform-origin:left top;transform:rotate(-40deg) skew(10deg)}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label .toggle__text:before{width:.5em;height:.25em;border-left-width:var(--uiToggleArrowWidth);border-bottom-width:var(--uiToggleArrowWidth);will-change:width,height;transition:width .1s ease-out .2s,height .2s ease-out}.awdr-container .toggle__label:before,.toggle__label:after{border-radius:2px}.awdr-container .toggle__input:not(:disabled)~.toggle__label:after,.awdr-container .toggle__input:not(:disabled)~.toggle__label:before{opacity:1;transform-origin:center center;will-change:transform;transition:transform .2s ease-out}.awdr-container .toggle__input:not(:disabled)~.toggle__label:before{transform:rotateY(0);transition-delay:.2s}.awdr-container .toggle__input:not(:disabled)~.toggle__label:after{transform:rotateY(90deg)}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label:before{transform:rotateY(-90deg);transition-delay:0s}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label:after{transform:rotateY(0);transition-delay:.2s}.awdr-container .toggle__text:before{opacity:0}.awdr-container .toggle__input:not(:disabled):checked~.toggle__label .toggle__text:before{opacity:1;transition:opacity .1s ease-out .3s,width .1s ease-out .5s,height .2s ease-out .3s}.awdr-container .toggle{--toggleColor:#6495ed;--toggleBgColor:#6495ed;--toggleSize:25px}.awdr-container .page__toggle{padding-left:20px;padding-top:7px}.wdr-enable-rule .wdr-discount-type{width:19.7%}.wdr-enable-rule{display:flex;padding:10px 30px 20px 2px}@media only screen and (max-width:620px){.main,.right,.wdr-rule-menu{width:100%}}.wdr-sticky-header{background-color:#fff;padding:20px;margin-bottom:20px}.wdr-sticky{position:fixed;top:33px;width:87%;overflow:hidden;background-color:#eee;z-index:1}.nav-tab.nav-tab-active{background-color:#fff}.awdr-product-selector{width:100%!important;margin-bottom:10px;padding-left:4px}.wdr-filter-type select{height:34px}.wdr-product_filter_method select{height:34px}.wdr-product-filter-type{min-width:100px}.wdr-alert-top-right{position:fixed;top:116px;right:30px;width:300px;z-index:9999}.wdr-alert-success{color:#fff;background:green;font-weight:bolder}.wdr-alert-error{color:#fff;background:red;font-weight:bolder}.wdr-alert-warning{color:#fff;background:#f4a460;font-weight:bolder}.wdr-alert{border-radius:5px;padding:10px;margin-bottom:10px;width:100%!important;z-index:9999}.wdr-general-setting.form-table th{padding:20px 10px 20px 10px;width:300px}.wdr-filter-type{display:inline-block}.wdr-filter-group-items .wdr-filter-group .wdr-products_group{padding-right:10px;display:inline-flex;flex-wrap:nowrap;width:60%}.wdr_filter_remove{display:inline-block}.wdr-cart-search_box{min-width:500px}.wdr-coupon-search_box{min-width:400px}.wdr-search-box{min-width:250px;vertical-align:super}.wdr-filter-group{margin-bottom:10px;padding:15px 0 15px 0;border-bottom:1px solid #ddd}.wdr-condition-type select{height:34px}.wdr-select-filed-hight select{height:34px}.wdr-input-filed-hight input{height:34px!important}.add-condition-and-filters{margin-top:15px}.wdr-tool-tip{background-color:gray;color:#fff;display:inline-block;padding-left:5px;padding-right:5px;text-align:center;border-radius:50%;font-size:10px;font-weight:bolder;cursor:help}.wdr-hide{display:none}.padding10{padding:10px}.wdr-rule-statistics{display:flex}.wdr-rule-statistics>div{padding:10px}.awdr-container .button.bottom-tabs{margin-right:5px}.awdr-container .remove-clicked-discount-block:hover,.awdr-container .remove-current-row:hover,.awdr-container .wdr_discount_remove:hover{cursor:pointer}.wdr-ruleboard{cursor:move}.wdr-loader{display:none!important;width:64px;height:64px;position:absolute;left:0;right:0;z-index:999;margin:auto;top:0;bottom:0}.wdr-loader:after{content:" ";display:block;width:46px;height:46px;margin:1px;border-radius:50%;border:5px solid #333;border-color:#333 transparent #333 transparent;animation:wdr-loader 1.2s linear infinite}@keyframes wdr-loader{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.awdr-container textarea{width:100%;height:150px;padding:10px 20px;box-sizing:border-box;border:1px solid #ddd;border-radius:4px;background-color:#f8f8f8;resize:none}.adv-msg-max-qty,.adv-msg-min-qty{display:none}.wdr-customizer-container{width:100%}.wdr-customizer-grid{display:grid;grid-template-columns:53% 47%;grid-gap:10px;padding:10px}.wdr-customizer-grid>div{padding:0 0}.popup-bulk-table{padding:0 0;margin-top:0}.popup-bulk-table tr th{padding:20px 20px}.wdr_bulk_table_msg{width:100%}.awdr-container .modal,.awdr-container .modal-box{z-index:9999;visibility:unset;opacity:1}.awdr-container .modal-sandbox{position:fixed;width:100%;height:100%;top:0;left:0;background:0 0}.awdr-container .modal{display:none;position:fixed;width:100%;height:100%;left:0;top:0;background:#000;background:rgba(0,0,0,.8);overflow:auto}.awdr-container .modal-box{position:relative;width:80%;max-width:920px;margin:100px auto;animation-name:modalbox;animation-duration:.4s;animation-timing-function:cubic-bezier(0,0,.3,1.6)}.awdr-container .modal-header{padding:20px 40px;background:#6495ed;color:#fff}.awdr-container .modal-body{background:#eceff1;padding:50px 15px}.awdr-container .close-modal{text-align:right;cursor:pointer}@-webkit-keyframes modalbox{0%{top:-250px;opacity:0}100%{top:0;opacity:1}}@keyframes modalbox{0%{top:-250px;opacity:0}100%{top:0;opacity:1}}.awdr-configuration-form .modal-trigger{top:50%;left:50%;background:0 0;border:1px solid #fff;text-decoration:none}.wdr-modal-header-title{color:#fff}.wdr-model-bottom-btn{float:right;margin:5px}.wdr-popup-link{cursor:pointer}table.wdr_bulk_table_msg,td.wdr_bulk_table_td,th.wdr_bulk_table_td,tr.wdr_bulk_table_tr{padding:10px}.wdr-customizer-notes{padding:0 10px}.wdr-red-text{color:red}.wdr-cart-coupon-value .coupon_name_msg{text-transform:uppercase}span#awdr_shortcode_text{font-weight:700}.awdr-list-header-btn a.text-right{float:right;margin-left:10px;text-decoration:none}.wdr-rule-options-con{width:80%;float:left}.awdr-clear{height:inherit;clear:both}.wdr-rule-filters-and-options-con{background-color:#fff;display:flex;padding:10px}.wdr-btn-remove .wdr_discount_remove,.wdr-condition-group .remove-current-row,.wdr-discount-block-remove .remove-clicked-discount-block,.wdr_filter_remove .remove-current-row{color:#fff;background-color:#d9534f;border-radius:3px}.wdr-condition-group .remove-current-row{margin-top:5px}.wdp-block.add-condition{margin-top:10px}.set_range_setter{margin-bottom:15px}.bulk_range_setter .wdr-simple-discount-inner,.range_setter_inner .wdr-simple-discount-inner,.wdr-cart-discount-placement .wdr-simple-discount-inner{border-bottom:1px solid #ddd;padding:5px 0}.buyx_getx_individual_range{padding:5px 0}.wdr-conditions-container .float_only_field,.wdr-conditions-container .number_only_field,.wdr-conditions-container input[type=number]{width:100px}.wdr-condition-type-options div{display:inline-block;margin:0 2px}.wdr-condition-type-options{margin:0 5px}#configuration-form table tbody tr>td:first-child{width:400px}.wdr_color_picker{letter-spacing:.2rem}.wdr_adv_msg_shortcode_text{color:#a9a9a9;font-size:12px}.awdr_popup_col_name_text_box{width:100%!important}#customize-bulk-table-title{width:40%;text-align:left}#customize-bulk-table-discount,#customize-bulk-table-range{width:30%;text-align:left}table.wdr_bulk_table_msg{border-collapse:collapse}table.wdr_bulk_table_msg,td.wdr_bulk_table_td,th.wdr_bulk_table_td,tr.wdr_bulk_table_tr{border:1px solid #bfc6cb}.awdr-dragable{cursor:ew-resize;word-break:break-all}.awdr_valide_date_in_desc{line-height:28px;font-size:14px;padding-left:20px}.wdr_customize_table table tbody tr>td:first-child{width:auto!important}.awdr-listing-rule-tr:hover{background-color:#ddf2ff}tr.awdr-listing-rule-tr td{vertical-align:middle}.awdr-text-warning{color:#8a6d3b}.updates-table tbody td.check-column,.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column{padding:0!important}.widefat tbody th.check-column{padding:0!important}.widefat .check-column{width:2.2em!important;padding:0!important;vertical-align:middle!important}.awdr-save-green{border-radius:5px;padding:10px;width:98%;z-index:9999}.awdr-error-red{border-radius:5px;padding:10px;width:98%;z-index:9999}.banner-short-code-setting{vertical-align:middle;line-height:39px}.awdr-condition-container,.awdr-discount-container{background-color:#fff;margin:20px 0;clear:both}.awdr-discount-batch-container{background-color:#fff;clear:both}.awdr-condition-container h2,.awdr-discount-container h2,.wdr-advanced-layout-groups h2,.wdr-rule-menu h2{color:#6495ed;margin:auto}.awdr-sub-heading-description{font-size:smaller;color:gray}.woocommerce table.form-table.awdr-discount-badge{table-layout:auto!important}.woocommerce table.form-table.awdr-discount-badge input[type=text]{width:auto}.awdr-exclusive-enable-listing{color:#4cae4c;font-size:10px;border:1px solid #4cae4c;padding:2px;margin:8px;border-radius:3px}.awdr-exclusive-disable-listing{color:#d43f3a;font-size:10px;border:1px solid #d43f3a;padding:2px;margin:8px;border-radius:3px}.switch{position:relative;display:block;vertical-align:top;width:84px;height:30px;padding:3px;margin:0 5px 10px 0;border-radius:0;cursor:pointer;box-sizing:content-box}.switch-input{position:absolute;top:0;left:0;opacity:0;box-sizing:content-box}.switch-label{position:relative;display:block;height:inherit;font-size:13px;background:grey;border-radius:4px;box-sizing:content-box}.switch-label:after,.switch-label:before{position:absolute;top:50%;margin-top:-.5em;line-height:1;-webkit-transition:inherit;-moz-transition:inherit;-o-transition:inherit;transition:inherit;box-sizing:content-box}.switch-label:before{content:attr(data-off);right:11px;color:#fff;text-shadow:0 1px rgba(255,255,255,.5)}.switch-label:after{content:attr(data-on);left:11px;color:#fff;text-shadow:0 1px rgba(0,0,0,.2);opacity:0}.switch-input:checked~.switch-label{background:#5cb85c;box-shadow:inset 0 1px 2px rgba(0,0,0,.15),inset 0 0 3px rgba(0,0,0,.2)}.switch-input:checked~.switch-label:before{opacity:0}.switch-input:checked~.switch-label:after{opacity:1}.switch-handle{position:absolute;top:4px;left:4px;width:12px;height:28px;background:linear-gradient(to bottom,#fff 40%,#f0f0f0);background-image:-webkit-linear-gradient(top,#fff 40%,#f0f0f0);border-radius:4px;box-shadow:1px 1px 5px rgba(0,0,0,.2)}.switch-handle:before{content:"";position:absolute;top:50%;left:50%;margin:-6px 0 0 -6px;width:12px;height:12px;background:linear-gradient(to bottom,#eee,#fff);background-image:-webkit-linear-gradient(top,#eee,#fff);border-radius:6px;box-shadow:inset 0 1px rgba(0,0,0,.02)}.switch-input:checked~.switch-handle{left:74px;box-shadow:-1px 1px 5px rgba(0,0,0,.2)}.switch-handle,.switch-label{transition:All .3s ease;-webkit-transition:All .3s ease;-moz-transition:All .3s ease;-o-transition:All .3s ease}.awdr-container input[type=color]{padding:2px}.awdr-common-save{margin-left:auto}.wdr-buyx-getx-discount-main,.wdr-buyx-gety-discount-main{display:grid;width:100%}.awdr-buyx-getx-number-box,.awdr-buyx-gety-number-box{width:150px}.wdr-buyx-getx-discount-inner div,.wdr-buyx-gety-discount-inner div{display:inline-grid;width:auto;padding:5px}.awdr-discount-add-row{padding-left:14px}.awdr-listing-status-text{padding-left:10px}.awdr-get-y-general-settings{display:flex;width:auto}.awdr-left-align{float:left}.awdr-clear-both{clear:both}.awdr_check_styles{display:flex}.awdr_discount_type_section{padding-bottom:20px}.awdr-rules-sub-menu{padding-top:42px!important}.awdr-rule-limit-timestamp{color:#a9a9a9;display:inline-block;font-size:12px;text-transform:capitalize;line-height:34px;padding-left:15px}#wpfooter{position:relative;z-index:-1}.wdr-buyx-gety-discount-inner{padding:5px}.page__toggle.apply_as_cart_checkbox{padding-left:11px;padding-top:20px}.apply_as_cart_checkbox .toggle__label:after,.apply_as_cart_checkbox .toggle__label:before{width:.8em!important;height:.8em!important}.toggle_tic.toggle__text:before{top:.43em!important;left:.1em!important}.apply_discount_as_cart_section{display:flex}.apply_fee_coupon_label{padding-left:15px;padding-top:13px}.bulk-row-start{border-bottom:1px solid #ddd;padding:5px 0}.bulk-row-start div{padding:5px;display:table-cell;width:min-content}.woocommerce table.form-table.popup-bulk-table th{padding-right:0!important}.awdr_table_columns{display:flex}.awdr-accordion{background-color:#fff;color:#6495ed;cursor:pointer;padding:18px;width:100%;border:none;text-align:left;outline:0;font-weight:600;font-size:1.3em;transition:.4s}.awdr-accordion-active,.awdr-accordion:hover{background-color:grey;color:#fff}.awdr-accordion-panel{display:none;background-color:#fff;overflow:hidden}.awdr-accordion:after{content:'\02795';font-size:13px;color:#777;float:right;margin-left:5px}.awdr-accordion-active:after{content:"\2796"}.wdr_filter_desc_text{color:#a9a9a9;display:block;font-size:12px;padding-top:5px}.wdr_select2_desc_text{color:#a9a9a9;display:inline-block;font-size:12px;text-transform:capitalize;padding-top:5px}.awdr-sort-icon{padding-top:12px!important}.bulk_range_setter{cursor:move}.dashicons-menu{color:#a9a9a9!important}.dashicons-menu:hover{color:#000!important}.awdr_admin_discount_bar{padding:10px;margin-bottom:10px;border-radius:4px}.wdr_migration_container{margin:10px 0}.wdr_settings .woo_discount_loader{display:none;position:absolute;background-color:rgba(255,255,255,.5);top:0;left:0;width:100%;height:100%;text-align:center}.woo_discount_loader .lds-ripple{display:inline-block;position:relative;top:50%;width:64px;height:64px}.woo_discount_loader .lds-ripple div{position:absolute;border:4px solid #257af0;opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.woo_discount_loader .lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:28px;left:28px;width:0;height:0;opacity:1}100%{top:-1px;left:-1px;width:58px;height:58px;opacity:0}}.awdr-product-selector span.select2-selection{max-height:100px;overflow:auto}.bulk_discount_max,.bulk_discount_min,.bulk_discount_value,.set_discount_min,.set_discount_value{max-width:106px}.set-for{padding-bottom:32px!important}.set-discount-row-main{display:grid;width:100%}.set-discount-row-inner>div{display:inline-grid;width:auto;padding:5px}.bulk-row-main{display:grid;width:100%}.bulk-row-inner>div{display:inline-grid;width:auto;padding:5px}fieldset{border:1px solid #a9a9a9!important;float:left;margin:5px}.awdr-switch-version-button-on-tab{float:right;background:#5bc0de;color:#fff}.awdr_version_text{font-size:12px;display:inline-block;position:relative;top:10px;left:8px;font-weight:400;padding-right:10px}.awdr_rebuild_on_sale_list_notice{color:red;padding:8px 0}.awdr_rebuild_on_sale_rule_page_con{display:none}.awdr_rebuild_on_sale_rule_page_con.need_attention{display:contents}div.wdr{margin-top:30px;margin-right:20px}.awdr-common-save>button,.awdr-rule-buttons>a{margin-bottom:2px}@media (min-width:320px) and (max-width:480px){.wdr_settings{position:absolute}.wdr-rule-filters-and-options-con{display:contents}.wdr-enable-rule{display:inline-grid}.wdr-rule-setting{display:grid;grid-template-columns:unset}.wdr-conditions-container{display:contents}.wdr-rule-menu{width:80%}.wdr-rule-options-con{width:83%}#wpfooter{position:fixed}}@media (min-width:481px) and (max-width:767px){.wdr_settings{position:absolute}.wdr-rule-filters-and-options-con{display:contents}.wdr-rule-setting{display:grid;grid-template-columns:unset}.wdr-conditions-container{display:contents}.wdr-rule-menu{width:80%}.wdr-rule-options-con{width:83%}#wpfooter{position:fixed}}#wdr-search-top{position:relative;margin-left:189px;margin-bottom:-48px}.awdr_rebuild_on_sale_list_con .select2-search{width:120%}.wdr_subtotal_promo_filed_name{color:#000}.awdr-bullet-style{list-style-type:disc}.awdr-bullet-style li a{color:#444}.awdr-bulk-three-column{display:grid!important;grid-template-columns:10% 30% 50%!important;grid-gap:10px;padding:10px}.awdr-count-by-description{background-color:#f5de9c;padding:10px}.awdr_normal_enable_check_box,.awdr_normal_exclusive_check_box{padding:10px}.wdr_settings_desc_text.text-warning{color:#f0ad4e}.awdr_promotion_message_display_pages .select2-search__field{width:225%!important}.awdr_recipe_container{background-color:#fff;display:flex;padding:0 10px}.awdr_recipe_left{float:left;width:19%;background-color:#fff;padding:10px 10px 0 10px}.awdr_recipe_right{width:80%;float:left;margin:21px}div.awdr_recipe_main_card{cursor:pointer}.awdr_recipe_main_card{transition:.3s;width:100%;border-radius:5px;margin-top:20px;margin-bottom:20px;border-radius:5px;border:1px solid #6495ed}.awdr_recipe_main_card:first-child{background-color:#6495ed;color:#fff}.awdr_recipe_main_card div{padding:2px 16px;border-radius:5px}.card:hover{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.awdr_common_border_class{padding:10px;margin:10px;border:1px solid #6495ed;border-radius:5px}.awdr_recipe_main_content .button{background-color:#6495ed;border:none;color:#fff;padding:0 32px;text-align:center;text-decoration:none;display:inline-block;cursor:pointer;border-radius:5px;margin-left:10px}.awdr-three-column-document-head{display:grid;grid-template-columns:auto auto auto auto;background-color:#f0f0f1;padding:5px}.awdr-three-column-inner{padding:15px;font-size:large}.awdr-first-column{background-color:#fff;border:3px solid #f0f0f1}.awdr-second-column{background-color:#fff;border:3px solid #f0f0f1}.awdr-third-column{background-color:#fff;border:3px solid #f0f0f1}.wdr_read_documentation{text-decoration:none}.wdr_read_documentation_con{padding:10px 0 10px 0}.awdr-hr-line{padding:10px}.awdr-header_text_recipe{padding:0 20px;font-weight:700}.awdr-compatible-field{clear:both;padding-top:15px}
woo-discount-rules.php CHANGED
@@ -5,13 +5,13 @@
5
  * Description: Simple to complex discount rules for your WooCommerce store. Core package.
6
  * Author: Flycart
7
  * Author URI: https://www.flycart.org
8
- * Version: 2.3.8
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Domain Path: /i18n/languages/
12
  * Requires at least: 4.6.1
13
  * WC requires at least: 3.0
14
- * WC tested up to: 5.5
15
  */
16
  if (!defined('ABSPATH')) {
17
  exit;
@@ -21,7 +21,7 @@ if (!defined('ABSPATH')) {
21
  * Current version of our app
22
  */
23
  if (!defined('WDR_VERSION')) {
24
- define('WDR_VERSION', '2.3.8');
25
  }
26
 
27
  global $awdr_load_version;
5
  * Description: Simple to complex discount rules for your WooCommerce store. Core package.
6
  * Author: Flycart
7
  * Author URI: https://www.flycart.org
8
+ * Version: 2.3.9
9
  * Slug: woo-discount-rules
10
  * Text Domain: woo-discount-rules
11
  * Domain Path: /i18n/languages/
12
  * Requires at least: 4.6.1
13
  * WC requires at least: 3.0
14
+ * WC tested up to: 5.8
15
  */
16
  if (!defined('ABSPATH')) {
17
  exit;
21
  * Current version of our app
22
  */
23
  if (!defined('WDR_VERSION')) {
24
+ define('WDR_VERSION', '2.3.9');
25
  }
26
 
27
  global $awdr_load_version;