Version Description
- 22/07/21 =
- Feature - Option to display percentage in sale badge.
- Improvement - Optimize the term query to improve performance.
- Improvement - Option to load minified CSS and JS.
- Improvement - Taxonomy slug support for different language.
- Improvement - Event advanced_woo_discount_rules_dequeue_jquery_ui_datepicker_script.
- Improvement - Event advanced_woo_discount_rules_calculate_current_discount_amount.
- Improvement - Event advanced_woo_discount_rules_is_rule_passed_with_out_discount_for_exclusive_rule.
- Improvement - WPML compatibility for searching filters.
- Improvement - Validation fails for few cases.
- Improvement - Default value for option Apply cart discount as is changed to Coupon.
- Fix - Discount table for bundle product is not showing.
- Fix - Coupon discount values doesn't splits based on filters in backend.
- Fix - Exclude exclusive rule for free products.
- Fix - Same strikeout issue.
- Fix - You save price is displayed wrong while having tax in few cases.
- Fix - Unable to edit rule in mobile.
- Fix - The discount bar is not showing if variant is selected in filter.
- Fix - No coupon label for cart fixed discount.
Download this release
Release Info
Developer | flycart |
Plugin | Discount Rules for WooCommerce |
Version | 2.3.8 |
Comparing to | |
See all releases |
Code changes from version 2.3.7 to 2.3.8
- i18n/languages/woo-discount-rules.pot +391 -304
- readme.txt +22 -2
- v2/App/Conditions/Base.php +6 -1
- v2/App/Conditions/CartSubTotal.php +2 -1
- v2/App/Controllers/Admin/Settings.php +22 -13
- v2/App/Controllers/Admin/WDRAjax.php +26 -7
- v2/App/Controllers/Configuration.php +4 -1
- v2/App/Controllers/DiscountCalculator.php +43 -29
- v2/App/Controllers/ManageDiscount.php +39 -7
- v2/App/Helpers/Filter.php +42 -12
- v2/App/Helpers/Helper.php +2 -2
- v2/App/Helpers/Rule.php +3 -2
- v2/App/Helpers/Validation.php +3 -0
- v2/App/Helpers/Woocommerce.php +11 -0
- v2/App/Models/DBTable.php +9 -3
- v2/App/Views/Admin/Rules/Discounts/Bulk.php +1 -1
- v2/App/Views/Admin/Tabs/DiscountRule.php +2 -2
- v2/App/Views/Admin/Tabs/settings.php +38 -3
- v2/Assets/Css/admin_style.min.css +1 -0
- v2/Assets/Css/customize-table.min.css +1 -0
- v2/Assets/Css/dragtable.min.css +1 -0
- v2/Assets/Js/admin-statistics.min.js +1 -0
- v2/Assets/Js/admin_script.js +105 -42
- v2/Assets/Js/admin_script.min.js +1 -0
- v2/Assets/Js/awdr-dynamic-price.min.js +1 -0
- v2/Assets/Js/awdr_recipe.min.js +1 -0
- v2/Assets/Js/jquery.dragtable.min.js +1 -0
- v2/Assets/Js/rulebuilder.min.js +1 -0
- v2/Assets/Js/site_main.js +5 -0
- v2/Assets/Js/site_main.min.js +1 -0
- woo-discount-rules.php +3 -3
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-
|
8 |
-
"PO-Revision-Date: 2021-
|
9 |
"Language-Team: Flycart\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Language: \n"
|
@@ -13,12 +13,12 @@ msgstr ""
|
|
13 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
|
14 |
|
15 |
#: common.php:9 v2/App/Controllers/Admin/Tabs/Statistics.php:118
|
16 |
-
#: v2/App/Controllers/Admin/WDRAjax.php:
|
17 |
-
#: v2/App/Controllers/Admin/WDRAjax.php:
|
18 |
msgid "Authentication required"
|
19 |
msgstr ""
|
20 |
|
21 |
-
#: common.php:17 v2/App/Controllers/Admin/WDRAjax.php:
|
22 |
msgid "Invalid request"
|
23 |
msgstr ""
|
24 |
|
@@ -153,7 +153,7 @@ msgstr ""
|
|
153 |
msgid "License key for the %s is not entered. %s, you can get it from %s"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: v1/helper/general-helper.php:48 v2/App/Controllers/Admin/Settings.php:
|
157 |
msgid "Guest"
|
158 |
msgstr ""
|
159 |
|
@@ -191,17 +191,17 @@ msgstr ""
|
|
191 |
#: v2/App/Views/Admin/Rules/Manage.php:153
|
192 |
#: v2/App/Views/Admin/Rules/Manage.php:154
|
193 |
#: v2/App/Views/Admin/Tabs/settings.php:24
|
194 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
195 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
196 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
197 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
198 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
199 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
200 |
msgid "Read Docs"
|
201 |
msgstr ""
|
202 |
|
203 |
#: v1/helper/general-helper.php:1034 v1/view/view-cart-rules.php:697
|
204 |
-
#: v1/view/view-pricing-rules.php:433 v2/App/Helpers/Woocommerce.php:
|
205 |
msgid "Coupon already exists in WooCommerce. Please select another name"
|
206 |
msgstr ""
|
207 |
|
@@ -211,8 +211,8 @@ msgstr ""
|
|
211 |
|
212 |
#: v1/helper/purchase.php:25 v1/view/includes/cart-menu.php:5
|
213 |
#: v1/view/includes/menu.php:6 v1/view/includes/sub-menu.php:5
|
|
|
214 |
#: v2/App/Controllers/Admin/Settings.php:42
|
215 |
-
#: v2/App/Controllers/Admin/Settings.php:43
|
216 |
msgid "Woo Discount Rules"
|
217 |
msgstr ""
|
218 |
|
@@ -279,7 +279,7 @@ msgstr ""
|
|
279 |
#: v1/includes/advanced/free_shipping_method.php:73
|
280 |
#: v1/includes/discount-base.php:1128 v1/view/cart-rules.php:135
|
281 |
#: v1/view/pricing-rules.php:165 v1/view/settings_promotion.php:65
|
282 |
-
#: v1/view/settings_promotion.php:100 v2/App/Controllers/Admin/Settings.php:
|
283 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:77
|
284 |
msgid "Enable"
|
285 |
msgstr ""
|
@@ -307,7 +307,7 @@ msgid "Failed to save"
|
|
307 |
msgstr ""
|
308 |
|
309 |
#: v1/includes/discount-base.php:207 v1/view/cart-rules.php:164
|
310 |
-
#: v1/view/pricing-rules.php:194 v2/App/Controllers/Admin/Settings.php:
|
311 |
msgid "Active"
|
312 |
msgstr ""
|
313 |
|
@@ -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:
|
321 |
msgid "Disabled"
|
322 |
msgstr ""
|
323 |
|
@@ -389,7 +389,7 @@ msgstr ""
|
|
389 |
|
390 |
#: v1/includes/discount-base.php:1089 v1/view/view-pricing-rules.php:654
|
391 |
#: v1/view/view-pricing-rules.php:657 v1/view/view-pricing-rules.php:677
|
392 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
393 |
msgid "Quantity"
|
394 |
msgstr ""
|
395 |
|
@@ -418,7 +418,7 @@ msgid "Adjustment Type"
|
|
418 |
msgstr ""
|
419 |
|
420 |
#: v1/includes/discount-base.php:1095 v1/view/view-pricing-rules.php:954
|
421 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
422 |
msgid "Discount percentage"
|
423 |
msgstr ""
|
424 |
|
@@ -565,7 +565,7 @@ msgid "Are you sure to remove this ?"
|
|
565 |
msgstr ""
|
566 |
|
567 |
#: v1/includes/discount-base.php:1129 v1/view/cart-rules.php:132
|
568 |
-
#: v1/view/pricing-rules.php:162 v2/App/Controllers/Admin/Settings.php:
|
569 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:78
|
570 |
msgid "Disable"
|
571 |
msgstr ""
|
@@ -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:
|
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:
|
1022 |
#, php-format
|
1023 |
msgid ""
|
1024 |
"Sorry, it is not possible to apply coupon <b>\"%s\"</b> as you already have "
|
@@ -1026,7 +1026,7 @@ msgid ""
|
|
1026 |
msgstr ""
|
1027 |
|
1028 |
#: v1/includes/discount-base.php:1357 v1/view/includes/menu.php:18
|
1029 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
1030 |
#: v2/App/Controllers/Admin/Tabs/GeneralSettings.php:23
|
1031 |
msgid "Settings"
|
1032 |
msgstr ""
|
@@ -1217,7 +1217,8 @@ msgid "View Examples"
|
|
1217 |
msgstr ""
|
1218 |
|
1219 |
#: v1/view/cart-rules.php:54 v1/view/documentation.php:21
|
1220 |
-
#: v1/view/pricing-rules.php:86 v2/App/
|
|
|
1221 |
#: v2/App/Views/Admin/Tabs/help.php:8
|
1222 |
msgid "Documentation"
|
1223 |
msgstr ""
|
@@ -1438,8 +1439,8 @@ msgstr ""
|
|
1438 |
|
1439 |
#: v1/view/includes/cart-menu.php:13 v1/view/includes/sub-menu.php:13
|
1440 |
#: v1/view/template/discount-table.php:42 v1/view/view-cart-rules.php:756
|
1441 |
-
#: v1/view/view-pricing-rules.php:708 v2/App/Controllers/Admin/Settings.php:
|
1442 |
-
#: v2/App/Views/Admin/Rules/Discounts/Bulk.php:59
|
1443 |
#: v2/App/Views/Admin/Rules/Manage.php:209
|
1444 |
msgid "Discount"
|
1445 |
msgstr ""
|
@@ -1497,7 +1498,7 @@ msgstr ""
|
|
1497 |
msgid "Performance"
|
1498 |
msgstr ""
|
1499 |
|
1500 |
-
#: v1/view/settings.php:42 v2/App/Views/Admin/Tabs/settings.php:
|
1501 |
msgid "Promotion"
|
1502 |
msgstr ""
|
1503 |
|
@@ -1620,13 +1621,17 @@ msgstr ""
|
|
1620 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:22
|
1621 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:37
|
1622 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:52
|
1623 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1624 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1625 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1626 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1627 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1628 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1629 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
1630 |
msgid "Yes"
|
1631 |
msgstr ""
|
1632 |
|
@@ -1638,13 +1643,17 @@ msgstr ""
|
|
1638 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:26
|
1639 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:41
|
1640 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:56
|
1641 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1642 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1643 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1644 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1645 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1646 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1647 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
1648 |
msgid "No"
|
1649 |
msgstr ""
|
1650 |
|
@@ -1658,21 +1667,21 @@ msgstr ""
|
|
1658 |
msgid "Force refresh the cart widget while add and remove item to cart"
|
1659 |
msgstr ""
|
1660 |
|
1661 |
-
#: v1/view/settings_general.php:86 v2/App/Views/Admin/Tabs/settings.php:
|
1662 |
msgid ""
|
1663 |
"Choose how discount rules should work when WooCommerce coupons (or third "
|
1664 |
"party) coupons are used?"
|
1665 |
msgstr ""
|
1666 |
|
1667 |
-
#: v1/view/settings_general.php:93 v2/App/Views/Admin/Tabs/settings.php:
|
1668 |
msgid "Let both coupons and discount rules run together"
|
1669 |
msgstr ""
|
1670 |
|
1671 |
-
#: v1/view/settings_general.php:96 v2/App/Views/Admin/Tabs/settings.php:
|
1672 |
msgid "Disable the discount rules (coupons will work)"
|
1673 |
msgstr ""
|
1674 |
|
1675 |
-
#: v1/view/settings_general.php:99 v2/App/Views/Admin/Tabs/settings.php:
|
1676 |
msgid "Disable the coupons (discount rules will work)"
|
1677 |
msgstr ""
|
1678 |
|
@@ -1756,24 +1765,24 @@ msgid "Show Price discount on product pages :"
|
|
1756 |
msgstr ""
|
1757 |
|
1758 |
#: v1/view/settings_price_rules.php:128
|
1759 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1760 |
msgid "Show when a rule condition is matched"
|
1761 |
msgstr ""
|
1762 |
|
1763 |
#: v1/view/settings_price_rules.php:131
|
1764 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1765 |
msgid "Show after a rule condition is matched"
|
1766 |
msgstr ""
|
1767 |
|
1768 |
#: v1/view/settings_price_rules.php:134
|
1769 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1770 |
msgid "Shown on quantity update (dynamic)"
|
1771 |
msgstr ""
|
1772 |
|
1773 |
#: v1/view/settings_price_rules.php:137 v1/view/settings_price_rules.php:211
|
1774 |
#: v1/view/settings_price_rules.php:229 v1/view/settings_price_rules.php:247
|
1775 |
#: v1/view/settings_price_rules.php:265
|
1776 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1777 |
msgid "Don't Show"
|
1778 |
msgstr ""
|
1779 |
|
@@ -1828,12 +1837,12 @@ msgid "Show a Sale badge on product pages :"
|
|
1828 |
msgstr ""
|
1829 |
|
1830 |
#: v1/view/settings_price_rules.php:284
|
1831 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1832 |
msgid "Do not show"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
#: v1/view/settings_price_rules.php:287
|
1836 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1837 |
msgid "Show only after a rule condition is matched exactly"
|
1838 |
msgstr ""
|
1839 |
|
@@ -1844,17 +1853,17 @@ msgid ""
|
|
1844 |
msgstr ""
|
1845 |
|
1846 |
#: v1/view/settings_price_rules.php:301
|
1847 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1848 |
msgid "Do you want to customize the sale badge?"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
#: v1/view/settings_price_rules.php:308
|
1852 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1853 |
msgid "Yes, I would like to customize the sale badge"
|
1854 |
msgstr ""
|
1855 |
|
1856 |
#: v1/view/settings_price_rules.php:310
|
1857 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1858 |
msgid ""
|
1859 |
"Force override the label for sale badge (useful when your theme has override "
|
1860 |
"for sale badge)."
|
@@ -1882,19 +1891,19 @@ msgstr ""
|
|
1882 |
msgid "Display savings text (for price rules)"
|
1883 |
msgstr ""
|
1884 |
|
1885 |
-
#: v1/view/settings_promotion.php:25 v2/App/Views/Admin/Tabs/settings.php:
|
1886 |
msgid "On each line item"
|
1887 |
msgstr ""
|
1888 |
|
1889 |
-
#: v1/view/settings_promotion.php:28 v2/App/Views/Admin/Tabs/settings.php:
|
1890 |
msgid "On after total"
|
1891 |
msgstr ""
|
1892 |
|
1893 |
-
#: v1/view/settings_promotion.php:31 v2/App/Views/Admin/Tabs/settings.php:
|
1894 |
msgid "Both in line item and after total"
|
1895 |
msgstr ""
|
1896 |
|
1897 |
-
#: v1/view/settings_promotion.php:39 v2/App/Views/Admin/Tabs/settings.php:
|
1898 |
msgid "Savings text to show"
|
1899 |
msgstr ""
|
1900 |
|
@@ -1931,19 +1940,19 @@ msgid ""
|
|
1931 |
"discounts)"
|
1932 |
msgstr ""
|
1933 |
|
1934 |
-
#: v1/view/settings_promotion.php:134 v2/App/Views/Admin/Tabs/settings.php:
|
1935 |
msgid "Shop page"
|
1936 |
msgstr ""
|
1937 |
|
1938 |
-
#: v1/view/settings_promotion.php:137 v2/App/Views/Admin/Tabs/settings.php:
|
1939 |
msgid "Product page"
|
1940 |
msgstr ""
|
1941 |
|
1942 |
-
#: v1/view/settings_promotion.php:140 v2/App/Views/Admin/Tabs/settings.php:
|
1943 |
msgid "Cart page"
|
1944 |
msgstr ""
|
1945 |
|
1946 |
-
#: v1/view/settings_promotion.php:143 v2/App/Views/Admin/Tabs/settings.php:
|
1947 |
msgid "Checkout page"
|
1948 |
msgstr ""
|
1949 |
|
@@ -1978,7 +1987,7 @@ msgstr ""
|
|
1978 |
|
1979 |
#: v1/view/template/loop/sale-flash.php:23
|
1980 |
#: v1/view/template/single-product/sale-flash.php:23
|
1981 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1982 |
#: v2/App/Views/Templates/loop/sale-flash.php:23
|
1983 |
#: v2/App/Views/Templates/single-product/sale-flash.php:23
|
1984 |
msgid "Sale!"
|
@@ -2397,7 +2406,7 @@ msgid "Do not use"
|
|
2397 |
msgstr ""
|
2398 |
|
2399 |
#: v1/view/view-pricing-rules.php:394 v2/App/Helpers/Helper.php:171
|
2400 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
2401 |
msgid "Coupon"
|
2402 |
msgstr ""
|
2403 |
|
@@ -2613,119 +2622,119 @@ msgstr ""
|
|
2613 |
#: v2/App/Conditions/CartLineItemsCount.php:16
|
2614 |
#: v2/App/Conditions/CartSubTotal.php:19 v2/App/Helpers/ProOptions.php:80
|
2615 |
#: v2/App/Helpers/ProOptions.php:136 v2/App/Helpers/ProOptions.php:144
|
2616 |
-
#: v2/App/Helpers/ProOptions.php:152 v2/App/Views/Admin/Tabs/settings.php:
|
2617 |
msgid "Cart"
|
2618 |
msgstr ""
|
2619 |
|
2620 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2621 |
msgid ""
|
2622 |
"We found that your were using our old \"Woo discount rules\" plugin, Please "
|
2623 |
"disable it!"
|
2624 |
msgstr ""
|
2625 |
|
2626 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2627 |
msgid "no results"
|
2628 |
msgstr ""
|
2629 |
|
2630 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2631 |
msgid "Select Values"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2635 |
msgid "Searching…"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2639 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:294
|
2640 |
msgid " - (Running)"
|
2641 |
msgstr ""
|
2642 |
|
2643 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2644 |
msgid "Oops!! something went wrong!"
|
2645 |
msgstr ""
|
2646 |
|
2647 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2648 |
msgid "Rule duplicated successfully!"
|
2649 |
msgstr ""
|
2650 |
|
2651 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2652 |
msgid "Rule deleted successfully!"
|
2653 |
msgstr ""
|
2654 |
|
2655 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2656 |
msgid "Are you sure want to delete this rule!"
|
2657 |
msgstr ""
|
2658 |
|
2659 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2660 |
msgid "Rule disabled successfully!"
|
2661 |
msgstr ""
|
2662 |
|
2663 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2664 |
msgid "Rule enabled successfully!"
|
2665 |
msgstr ""
|
2666 |
|
2667 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2668 |
msgid "Rule saved successfully!"
|
2669 |
msgstr ""
|
2670 |
|
2671 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2672 |
msgid "Settings saved successfully!"
|
2673 |
msgstr ""
|
2674 |
|
2675 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2676 |
msgid "Rule priority changed successfully!"
|
2677 |
msgstr ""
|
2678 |
|
2679 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2680 |
msgid "Rule priority not changed !"
|
2681 |
msgstr ""
|
2682 |
|
2683 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2684 |
msgid "No data for this period"
|
2685 |
msgstr ""
|
2686 |
|
2687 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2688 |
msgid "Oops! Coupon already exists in Woocommerce"
|
2689 |
msgstr ""
|
2690 |
|
2691 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2692 |
msgid "Copied!"
|
2693 |
msgstr ""
|
2694 |
|
2695 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2696 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
2697 |
msgid "Copy ShortCode"
|
2698 |
msgstr ""
|
2699 |
|
2700 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2701 |
msgid "If you make this recursive other row(s) will be removed!"
|
2702 |
msgstr ""
|
2703 |
|
2704 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2705 |
msgid "Minimum Quantity"
|
2706 |
msgstr ""
|
2707 |
|
2708 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2709 |
msgid "Discount value"
|
2710 |
msgstr ""
|
2711 |
|
2712 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2713 |
msgid "Filter (Buy)"
|
2714 |
msgstr ""
|
2715 |
|
2716 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2717 |
#: v2/App/Views/Admin/Rules/Manage.php:163
|
2718 |
msgid "Filter"
|
2719 |
msgstr ""
|
2720 |
|
2721 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2722 |
msgid ""
|
2723 |
"<p>Choose <b>what gets discount</b> (products/categories/attributes/SKU and "
|
2724 |
"so on )</p>\n"
|
2725 |
"<p>Note : You can also exclude products/categories.</p>"
|
2726 |
msgstr ""
|
2727 |
|
2728 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2729 |
msgid ""
|
2730 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3914904-bulk-"
|
2731 |
"discounts-tiered-pricing-discounts-discount-rules-2-0?utm_source=woo-"
|
@@ -2734,7 +2743,7 @@ msgid ""
|
|
2734 |
"\"_blank\">Read Docs</a>"
|
2735 |
msgstr ""
|
2736 |
|
2737 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2738 |
msgid ""
|
2739 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3809899-bundle-set-"
|
2740 |
"discount-discount-rules-2-0?utm_source=woo-discount-rules-"
|
@@ -2742,7 +2751,7 @@ msgid ""
|
|
2742 |
"\"font-size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2743 |
msgstr ""
|
2744 |
|
2745 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2746 |
msgid ""
|
2747 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810570-buy-x-get-"
|
2748 |
"y-discount-rules-2-0?utm_source=woo-discount-rules-"
|
@@ -2750,7 +2759,7 @@ msgid ""
|
|
2750 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2751 |
msgstr ""
|
2752 |
|
2753 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2754 |
msgid ""
|
2755 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810071-buy-one-"
|
2756 |
"get-one-free-buy-x-get-x-discount-rules-2-0?utm_source=woo-discount-rules-"
|
@@ -2758,12 +2767,12 @@ msgid ""
|
|
2758 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2759 |
msgstr ""
|
2760 |
|
2761 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2762 |
msgid ""
|
2763 |
"<p>Select discount type and its value (percentage/price/fixed price)</p>"
|
2764 |
msgstr ""
|
2765 |
|
2766 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2767 |
msgid ""
|
2768 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2769 |
"<div class=\"awdr-count-by-description\"><b>Filter set above :</b><p> This "
|
@@ -2778,7 +2787,7 @@ msgid ""
|
|
2778 |
"p></div>"
|
2779 |
msgstr ""
|
2780 |
|
2781 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2782 |
msgid ""
|
2783 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2784 |
"<div class=\"awdr-count-by-description\"><b>Individual Product :</b><p>This "
|
@@ -2792,7 +2801,7 @@ msgid ""
|
|
2792 |
"because WooCommerce considers a variant as a product itself. </p></div>"
|
2793 |
msgstr ""
|
2794 |
|
2795 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2796 |
msgid ""
|
2797 |
"<p>Select discount type and its value (percentage/price/fixed price)</p><div "
|
2798 |
"class=\"awdr-count-by-description\"><b>All variants in each product "
|
@@ -2805,28 +2814,28 @@ msgid ""
|
|
2805 |
"</p></div>"
|
2806 |
msgstr ""
|
2807 |
|
2808 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2809 |
msgid "Rules (optional)"
|
2810 |
msgstr ""
|
2811 |
|
2812 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2813 |
msgid ""
|
2814 |
"<p>Choose Buy Products. (products/categories/attributes/tags/sku) Example : "
|
2815 |
"For Buy X get Y scenarios, choose X here.</p>"
|
2816 |
msgstr ""
|
2817 |
|
2818 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2819 |
msgid ""
|
2820 |
"<p>Choose on which products the discount should be applied (This can be "
|
2821 |
"products/categories/SKU)</p>"
|
2822 |
msgstr ""
|
2823 |
|
2824 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2825 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2826 |
msgid "Get Discount"
|
2827 |
msgstr ""
|
2828 |
|
2829 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2830 |
msgid ""
|
2831 |
"<p>Enter the min/max ranges and choose free item quantity.</p><p>Note : "
|
2832 |
"Enable recursive checkbox if the discounts should be applied in sequential "
|
@@ -2834,7 +2843,7 @@ msgid ""
|
|
2834 |
"p>"
|
2835 |
msgstr ""
|
2836 |
|
2837 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2838 |
msgid ""
|
2839 |
"<p>Choose the adjustment type to which the discount should be applied. You "
|
2840 |
"can choose from products/categories/all products.</p><p>Note : Enable "
|
@@ -2842,14 +2851,14 @@ msgid ""
|
|
2842 |
"</p>"
|
2843 |
msgstr ""
|
2844 |
|
2845 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2846 |
msgid ""
|
2847 |
"<p>Discount will be applied <b>only the selected products (based on mode of "
|
2848 |
"apply)</b></p><p>Note : Enable recursive checkbox if the discounts should be "
|
2849 |
"applied in sequential ranges. </p>"
|
2850 |
msgstr ""
|
2851 |
|
2852 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2853 |
msgid ""
|
2854 |
"<p>Discount will be applied <b>only the selected categories (based on mode "
|
2855 |
"of apply)</b></p><p>Note : Enable recursive checkbox if the discounts should "
|
@@ -2860,7 +2869,7 @@ msgid ""
|
|
2860 |
"table>"
|
2861 |
msgstr ""
|
2862 |
|
2863 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2864 |
msgid ""
|
2865 |
"<p>Discount applies on the cheapest/highest priced <b>product IN CART</b>.</"
|
2866 |
"p><p>Note : Enable recursive checkbox if the discounts should be applied in "
|
@@ -2870,40 +2879,40 @@ msgid ""
|
|
2870 |
"tr></tr><tr><td>4</td><td>5</td><td>2</td></tr></tbody></table>"
|
2871 |
msgstr ""
|
2872 |
|
2873 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2874 |
msgid "<p>Processing migration, please wait...</p>"
|
2875 |
msgstr ""
|
2876 |
|
2877 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2878 |
msgid "<p>Migration completed.</p>"
|
2879 |
msgstr ""
|
2880 |
|
2881 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2882 |
msgid "<p>Migration skipped.</p>"
|
2883 |
msgstr ""
|
2884 |
|
2885 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2886 |
msgid "<p>Skipping migration, please wait...</p>"
|
2887 |
msgstr ""
|
2888 |
|
2889 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2890 |
msgid ""
|
2891 |
"<span><b>Example:</b> Product A - Small and Product A - Medium will be "
|
2892 |
"counted as 2 quantity</span>"
|
2893 |
msgstr ""
|
2894 |
|
2895 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2896 |
msgid "<span>Discount applies to all eligible products in the store</span>"
|
2897 |
msgstr ""
|
2898 |
|
2899 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2900 |
msgid ""
|
2901 |
"<span>Choose products that get the discount using \"In List\". If you want "
|
2902 |
"to exclude a few products, choose \"Not In List\" and select the products "
|
2903 |
"you wanted to exclude from discount. (You can add multiple filters)</span>"
|
2904 |
msgstr ""
|
2905 |
|
2906 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2907 |
msgid ""
|
2908 |
"<span>Choose categories that get the discount using \"In List\". If you want "
|
2909 |
"to exclude a few categories, choose \"Not In List\" and select the "
|
@@ -2911,7 +2920,7 @@ msgid ""
|
|
2911 |
"filters of same type)</span>"
|
2912 |
msgstr ""
|
2913 |
|
2914 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2915 |
msgid ""
|
2916 |
"<span> Choose attributes that get the discount using \"In List\". If you "
|
2917 |
"want to exclude a few attributes, choose \"Not In List\" and select the "
|
@@ -2919,62 +2928,62 @@ msgid ""
|
|
2919 |
"filters of same type)</span>"
|
2920 |
msgstr ""
|
2921 |
|
2922 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2923 |
msgid ""
|
2924 |
"<span>Choose tags that get the discount using \"In List\". If you want to "
|
2925 |
"exclude a few tags, choose \"Not In List\" and select the tags you wanted to "
|
2926 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2927 |
msgstr ""
|
2928 |
|
2929 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2930 |
msgid ""
|
2931 |
"<span>Choose SKUs that get the discount using \"In List\". If you want to "
|
2932 |
"exclude a few SKUs, choose \"Not In List\" and select the SKUs you wanted to "
|
2933 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2934 |
msgstr ""
|
2935 |
|
2936 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2937 |
msgid ""
|
2938 |
"<span>Choose whether you want to include (or exclude) products on sale "
|
2939 |
"(those having a sale price) for the discount </span>"
|
2940 |
msgstr ""
|
2941 |
|
2942 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2943 |
msgid "<span>Discount applies to custom taxonomy</span>"
|
2944 |
msgstr ""
|
2945 |
|
2946 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2947 |
msgid "Processing please wait.."
|
2948 |
msgstr ""
|
2949 |
|
2950 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2951 |
msgid "Rebuild index processed"
|
2952 |
msgstr ""
|
2953 |
|
2954 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2955 |
msgid "Please select the rules to build index"
|
2956 |
msgstr ""
|
2957 |
|
2958 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2959 |
msgid "Invalid File. Upload : <b style='color:red;'>.csv</b> File. </br>"
|
2960 |
msgstr ""
|
2961 |
|
2962 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2963 |
msgid ""
|
2964 |
"<b>This rule is not running currently:</b> Rule reached maximum usage limit"
|
2965 |
msgstr ""
|
2966 |
|
2967 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2968 |
msgid ""
|
2969 |
"<b>This rule is not running currently:</b> Start date and time is set in the "
|
2970 |
"future date"
|
2971 |
msgstr ""
|
2972 |
|
2973 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2974 |
msgid "<b>This rule is not running currently:</b> Validity expired"
|
2975 |
msgstr ""
|
2976 |
|
2977 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2978 |
msgid "Select State"
|
2979 |
msgstr ""
|
2980 |
|
@@ -2991,10 +3000,6 @@ msgstr ""
|
|
2991 |
msgid "Discount Rules"
|
2992 |
msgstr ""
|
2993 |
|
2994 |
-
#: v2/App/Controllers/Admin/Tabs/Help.php:17
|
2995 |
-
msgid "Read Documentation"
|
2996 |
-
msgstr ""
|
2997 |
-
|
2998 |
#: v2/App/Controllers/Admin/Tabs/ImportExport.php:19
|
2999 |
msgid "Import/Export"
|
3000 |
msgstr ""
|
@@ -3031,7 +3036,7 @@ msgstr ""
|
|
3031 |
msgid "All Rules (except cart adjustment type)"
|
3032 |
msgstr ""
|
3033 |
|
3034 |
-
#: v2/App/Controllers/Admin/WDRAjax.php:
|
3035 |
msgid "Search State"
|
3036 |
msgstr ""
|
3037 |
|
@@ -3042,7 +3047,7 @@ msgstr ""
|
|
3042 |
#: v2/App/Controllers/Base.php:43 v2/App/Controllers/Base.php:48
|
3043 |
#: v2/App/Helpers/ProOptions.php:34 v2/App/Helpers/ProOptions.php:40
|
3044 |
#: v2/App/Helpers/ProOptions.php:46 v2/App/Helpers/ProOptions.php:52
|
3045 |
-
#: v2/App/Helpers/ProOptions.php:58 v2/App/Views/Admin/Tabs/settings.php:
|
3046 |
msgid "Product"
|
3047 |
msgstr ""
|
3048 |
|
@@ -3051,7 +3056,7 @@ msgid "Product Adjustment"
|
|
3051 |
msgstr ""
|
3052 |
|
3053 |
#: v2/App/Controllers/Base.php:195 v2/App/Controllers/Base.php:201
|
3054 |
-
#: v2/App/Helpers/ProOptions.php:332 v2/App/Views/Admin/Tabs/Recipe.php:
|
3055 |
msgid "Simple Discount"
|
3056 |
msgstr ""
|
3057 |
|
@@ -3065,27 +3070,31 @@ msgstr ""
|
|
3065 |
msgid "Bulk Discount"
|
3066 |
msgstr ""
|
3067 |
|
3068 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
|
|
|
|
|
|
|
|
3069 |
msgid "<span class=\"onsale\">Sale!</span>"
|
3070 |
msgstr ""
|
3071 |
|
3072 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3073 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3074 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3075 |
#: v2/App/Helpers/Helper.php:272
|
3076 |
msgid "Cart discount"
|
3077 |
msgstr ""
|
3078 |
|
3079 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3080 |
msgid "Coupon code applied successfully."
|
3081 |
msgstr ""
|
3082 |
|
3083 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3084 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3085 |
msgid "Discount <strong>{{title}}</strong> has been applied to your cart."
|
3086 |
msgstr ""
|
3087 |
|
3088 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3089 |
msgid "You saved {{total_discount}}"
|
3090 |
msgstr ""
|
3091 |
|
@@ -3338,17 +3347,13 @@ msgstr ""
|
|
3338 |
msgid "Bundle (Set) Discount - PRO -"
|
3339 |
msgstr ""
|
3340 |
|
3341 |
-
#: v2/App/Helpers/Rule.php:
|
3342 |
-
msgid "discount"
|
3343 |
-
msgstr ""
|
3344 |
-
|
3345 |
-
#: v2/App/Helpers/Rule.php:1304 v2/App/Helpers/Rule.php:1404
|
3346 |
#: v2/App/Views/Admin/Tabs/ImportExport.php:101
|
3347 |
msgid "Untitled Rule"
|
3348 |
msgstr ""
|
3349 |
|
3350 |
#: v2/App/Helpers/Validation.php:146 v2/App/Helpers/Validation.php:151
|
3351 |
-
#: v2/App/Helpers/Validation.php:
|
3352 |
msgid "Invalid characters"
|
3353 |
msgstr ""
|
3354 |
|
@@ -3369,149 +3374,149 @@ msgstr ""
|
|
3369 |
msgid "Accepts only hex color code"
|
3370 |
msgstr ""
|
3371 |
|
3372 |
-
#: v2/App/Helpers/Validation.php:
|
3373 |
msgid "Accept only yes, on, 1, true"
|
3374 |
msgstr ""
|
3375 |
|
3376 |
-
#: v2/App/Helpers/Validation.php:
|
3377 |
msgid "Should not contain any tags"
|
3378 |
msgstr ""
|
3379 |
|
3380 |
-
#: v2/App/Helpers/Validation.php:
|
3381 |
msgid "Should not contain any tags and special characters"
|
3382 |
msgstr ""
|
3383 |
|
3384 |
-
#: v2/App/Helpers/Validation.php:
|
3385 |
msgid "Invalid inputs"
|
3386 |
msgstr ""
|
3387 |
|
3388 |
-
#: v2/App/Helpers/Validation.php:
|
3389 |
msgid "Validation error"
|
3390 |
msgstr ""
|
3391 |
|
3392 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3393 |
msgid "Sunday"
|
3394 |
msgstr ""
|
3395 |
|
3396 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3397 |
msgid "Monday"
|
3398 |
msgstr ""
|
3399 |
|
3400 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3401 |
msgid "Tuesday"
|
3402 |
msgstr ""
|
3403 |
|
3404 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3405 |
msgid "Wednesday"
|
3406 |
msgstr ""
|
3407 |
|
3408 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3409 |
msgid "Thursday"
|
3410 |
msgstr ""
|
3411 |
|
3412 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3413 |
msgid "Friday"
|
3414 |
msgstr ""
|
3415 |
|
3416 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3417 |
msgid "Saturday"
|
3418 |
msgstr ""
|
3419 |
|
3420 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3421 |
msgid ""
|
3422 |
"Woocommerce before main content(Archive / Shop / Cat Pages / single product)"
|
3423 |
msgstr ""
|
3424 |
|
3425 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3426 |
msgid "Woocommerce archive description(Archive / Shop / Cat Pages)"
|
3427 |
msgstr ""
|
3428 |
|
3429 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3430 |
msgid "Woocommerce before shop loop(Archive / Shop / Cat Pages)"
|
3431 |
msgstr ""
|
3432 |
|
3433 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3434 |
msgid "Woocommerce after shop loop(Archive / Shop / Cat Pages)"
|
3435 |
msgstr ""
|
3436 |
|
3437 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3438 |
msgid ""
|
3439 |
"Woocommerce after main content(Archive / Shop / Cat Pages / single product)"
|
3440 |
msgstr ""
|
3441 |
|
3442 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3443 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3444 |
msgid "Woocommerce before single product"
|
3445 |
msgstr ""
|
3446 |
|
3447 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3448 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3449 |
msgid "Woocommerce before single product summary"
|
3450 |
msgstr ""
|
3451 |
|
3452 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3453 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3454 |
msgid "Woocommerce after single product summary"
|
3455 |
msgstr ""
|
3456 |
|
3457 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3458 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3459 |
msgid "Woocommerce after single product"
|
3460 |
msgstr ""
|
3461 |
|
3462 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3463 |
msgid "Woocommerce before cart"
|
3464 |
msgstr ""
|
3465 |
|
3466 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3467 |
msgid "Woocommerce before cart table"
|
3468 |
msgstr ""
|
3469 |
|
3470 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3471 |
msgid "Woocommerce before cart contents"
|
3472 |
msgstr ""
|
3473 |
|
3474 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3475 |
msgid "Woocommerce cart contents"
|
3476 |
msgstr ""
|
3477 |
|
3478 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3479 |
msgid "Woocommerce after cart contents"
|
3480 |
msgstr ""
|
3481 |
|
3482 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3483 |
msgid "Woocommerce after cart table"
|
3484 |
msgstr ""
|
3485 |
|
3486 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3487 |
msgid "Woocommerce after cart"
|
3488 |
msgstr ""
|
3489 |
|
3490 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3491 |
msgid "Woocommerce before checkout form"
|
3492 |
msgstr ""
|
3493 |
|
3494 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3495 |
msgid "Woocommerce before checkout billing form"
|
3496 |
msgstr ""
|
3497 |
|
3498 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3499 |
msgid "Woocommerce after checkout billing form"
|
3500 |
msgstr ""
|
3501 |
|
3502 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3503 |
msgid "Woocommerce before checkout shipping form"
|
3504 |
msgstr ""
|
3505 |
|
3506 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3507 |
msgid "Woocommerce after checkout shipping form"
|
3508 |
msgstr ""
|
3509 |
|
3510 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3511 |
msgid "Woocommerce before order notes"
|
3512 |
msgstr ""
|
3513 |
|
3514 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3515 |
msgid "Woocommerce after order notes"
|
3516 |
msgstr ""
|
3517 |
|
@@ -3663,7 +3668,7 @@ msgid "Preview"
|
|
3663 |
msgstr ""
|
3664 |
|
3665 |
#: v2/App/Views/Admin/Rules/DiscountBatch/Main.php:22
|
3666 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3667 |
msgid "Note:"
|
3668 |
msgstr ""
|
3669 |
|
@@ -3784,7 +3789,7 @@ msgid "Discount Type"
|
|
3784 |
msgstr ""
|
3785 |
|
3786 |
#: v2/App/Views/Admin/Rules/Discounts/Bulk.php:63
|
3787 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3788 |
msgid "Discount Value"
|
3789 |
msgstr ""
|
3790 |
|
@@ -4284,28 +4289,35 @@ msgid ""
|
|
4284 |
"woocommerce-discount-rules\" target=\"_blank\">Upgrading to Pro</a>"
|
4285 |
msgstr ""
|
4286 |
|
4287 |
-
#: v2/App/Views/Admin/Tabs/Recipe.php:
|
4288 |
-
msgid "
|
|
|
|
|
|
|
4289 |
msgstr ""
|
4290 |
|
4291 |
#: v2/App/Views/Admin/Tabs/Recipe.php:22
|
|
|
|
|
|
|
|
|
4292 |
msgid "Bundle(set) Discount"
|
4293 |
msgstr ""
|
4294 |
|
4295 |
-
#: v2/App/Views/Admin/Tabs/Recipe.php:
|
4296 |
msgid "Bundle(set) Adjustment"
|
4297 |
msgstr ""
|
4298 |
|
4299 |
-
#: v2/App/Views/Admin/Tabs/Recipe.php:
|
4300 |
msgid "BOGO Discount"
|
4301 |
msgstr ""
|
4302 |
|
4303 |
-
#: v2/App/Views/Admin/Tabs/Recipe.php:
|
4304 |
msgid "BOGO Adjustment"
|
4305 |
msgstr ""
|
4306 |
|
4307 |
-
#: v2/App/Views/Admin/Tabs/Recipe.php:
|
4308 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4309 |
msgid ""
|
4310 |
"Unlock this feature by <a href='https://www.flycart.org/products/wordpress/"
|
4311 |
"woocommerce-discount-rules?utm_source=woo-discount-rules-"
|
@@ -4448,408 +4460,483 @@ msgstr ""
|
|
4448 |
msgid "Highest/Lowest/First/All matched rules"
|
4449 |
msgstr ""
|
4450 |
|
4451 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4452 |
-
msgid "
|
|
|
|
|
4453 |
msgstr ""
|
4454 |
|
4455 |
#: v2/App/Views/Admin/Tabs/settings.php:41
|
4456 |
-
msgid "
|
4457 |
msgstr ""
|
4458 |
|
4459 |
#: v2/App/Views/Admin/Tabs/settings.php:42
|
4460 |
-
msgid "
|
4461 |
msgstr ""
|
4462 |
|
4463 |
#: v2/App/Views/Admin/Tabs/settings.php:43
|
|
|
|
|
|
|
|
|
4464 |
msgid "All matched rules"
|
4465 |
msgstr ""
|
4466 |
|
4467 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4468 |
msgid "Apply discount subsequently"
|
4469 |
msgstr ""
|
4470 |
|
4471 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4472 |
msgid "discounts applied subsequently"
|
4473 |
msgstr ""
|
4474 |
|
4475 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4476 |
msgid "Choose how discount rules should work"
|
4477 |
msgstr ""
|
4478 |
|
4479 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4480 |
msgid "Refresh order review in checkout"
|
4481 |
msgstr ""
|
4482 |
|
4483 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4484 |
msgid "Useful when you have purchase history/shipping address based discount."
|
4485 |
msgstr ""
|
4486 |
|
4487 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4488 |
msgid "Suppress third party discount plugins"
|
4489 |
msgstr ""
|
4490 |
|
4491 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4492 |
msgid ""
|
4493 |
"Suppress third party plugins from modifying the prices. other discount "
|
4494 |
"plugins may not works!"
|
4495 |
msgstr ""
|
4496 |
|
4497 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4498 |
msgid "Change this option only if recommended."
|
4499 |
msgstr ""
|
4500 |
|
4501 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
4502 |
msgid "On-sale badge"
|
4503 |
msgstr ""
|
4504 |
|
4505 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4506 |
msgid "show on-sale badge"
|
4507 |
msgstr ""
|
4508 |
|
4509 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4510 |
msgid "Show on products that are covered under any discount rule in the plugin"
|
4511 |
msgstr ""
|
4512 |
|
4513 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4514 |
msgid "Customize the sale badge"
|
4515 |
msgstr ""
|
4516 |
|
4517 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
4518 |
msgid "Sale badge content"
|
4519 |
msgstr ""
|
4520 |
|
4521 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
4522 |
msgid ""
|
4523 |
"You can use HTML inside. <br><b>IMPORTANT NOTE:</b> This customized sale "
|
4524 |
"badge will be applicable only for products that are part of the discount "
|
4525 |
"rules configured in this plugin <b>Eg:</b><span class=\"onsale\">Sale!</span>"
|
4526 |
msgstr ""
|
4527 |
|
4528 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4529 |
msgid "Show discount table "
|
4530 |
msgstr ""
|
4531 |
|
4532 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4533 |
msgid "Show discount table on product page"
|
4534 |
msgstr ""
|
4535 |
|
4536 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4537 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4538 |
msgid "Customize Discount Table"
|
4539 |
msgstr ""
|
4540 |
|
4541 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4542 |
msgid "Position to show discount table"
|
4543 |
msgstr ""
|
4544 |
|
4545 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4546 |
msgid "Position to show discount table on product page"
|
4547 |
msgstr ""
|
4548 |
|
4549 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4550 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4551 |
msgid "Woocommerce before add to cart form"
|
4552 |
msgstr ""
|
4553 |
|
4554 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4555 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4556 |
msgid "Woocommerce product meta end"
|
4557 |
msgstr ""
|
4558 |
|
4559 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4560 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4561 |
msgid "Woocommerce product meta start"
|
4562 |
msgstr ""
|
4563 |
|
4564 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4565 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4566 |
msgid "Woocommerce after add to cart form"
|
4567 |
msgstr ""
|
4568 |
|
4569 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4570 |
msgid "Position to show discount bar"
|
4571 |
msgstr ""
|
4572 |
|
4573 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4574 |
msgid "Position to show discount bar on product page"
|
4575 |
msgstr ""
|
4576 |
|
4577 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4578 |
msgid "Show strikeout price"
|
4579 |
msgstr ""
|
4580 |
|
4581 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4582 |
msgid "Show product strikeout price on"
|
4583 |
msgstr ""
|
4584 |
|
4585 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4586 |
msgid "On shop page?"
|
4587 |
msgstr ""
|
4588 |
|
4589 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4590 |
msgid "On product page?"
|
4591 |
msgstr ""
|
4592 |
|
4593 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4594 |
msgid "On category page?"
|
4595 |
msgstr ""
|
4596 |
|
4597 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4598 |
msgid "Show Strikeout when"
|
4599 |
msgstr ""
|
4600 |
|
4601 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4602 |
msgid "Show Strikeout when this option is matched"
|
4603 |
msgstr ""
|
4604 |
|
4605 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4606 |
msgid "Show strikeout on cart"
|
4607 |
msgstr ""
|
4608 |
|
4609 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4610 |
msgid "Show price strikeout on cart"
|
4611 |
msgstr ""
|
4612 |
|
4613 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4614 |
msgid "Apply cart discount as"
|
4615 |
msgstr ""
|
4616 |
|
4617 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4618 |
msgid "Apply cart discount as fee/coupon"
|
4619 |
msgstr ""
|
4620 |
|
4621 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4622 |
msgid "Fee"
|
4623 |
msgstr ""
|
4624 |
|
4625 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4626 |
msgid "Combine all cart discounts"
|
4627 |
msgstr ""
|
4628 |
|
4629 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4630 |
msgid "Combine all cart discounts in single discount label"
|
4631 |
msgstr ""
|
4632 |
|
4633 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4634 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4635 |
msgid "Discount label for combined discounts"
|
4636 |
msgstr ""
|
4637 |
|
4638 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4639 |
msgid "Condition based promotion"
|
4640 |
msgstr ""
|
4641 |
|
4642 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4643 |
msgid ""
|
4644 |
"Display Condition based promotion messages in cart/product/shop pages<br>If "
|
4645 |
"enabled an option to add promotion message will displays on each rule(when "
|
4646 |
"promotion condition is added)"
|
4647 |
msgstr ""
|
4648 |
|
4649 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4650 |
msgid "Subtotal Promotion?"
|
4651 |
msgstr ""
|
4652 |
|
4653 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4654 |
msgid "Cart Quantity Promotion?"
|
4655 |
msgstr ""
|
4656 |
|
4657 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4658 |
msgid "Condition based promo text"
|
4659 |
msgstr ""
|
4660 |
|
4661 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4662 |
msgid ""
|
4663 |
"Condition based promo text (available only for subtotal based discounts) "
|
4664 |
msgstr ""
|
4665 |
|
4666 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4667 |
msgid "Select the page to display promotion message"
|
4668 |
msgstr ""
|
4669 |
|
4670 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4671 |
msgid "Display you saved text"
|
4672 |
msgstr ""
|
4673 |
|
4674 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4675 |
msgid "Display you saved text when rule applied"
|
4676 |
msgstr ""
|
4677 |
|
4678 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4679 |
msgid "You save text to show when rule applied"
|
4680 |
msgstr ""
|
4681 |
|
4682 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4683 |
msgid "Show a discount applied message on cart?"
|
4684 |
msgstr ""
|
4685 |
|
4686 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4687 |
msgid "Show message in cart page on rule applied"
|
4688 |
msgstr ""
|
4689 |
|
4690 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4691 |
msgid "Applied rule message text on cart"
|
4692 |
msgstr ""
|
4693 |
|
4694 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4695 |
msgid "Text to show when rule applied"
|
4696 |
msgstr ""
|
4697 |
|
4698 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4699 |
msgid "On-Sale page"
|
4700 |
msgstr ""
|
4701 |
|
4702 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4703 |
msgid "Select rules for the On Sale Page"
|
4704 |
msgstr ""
|
4705 |
|
4706 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4707 |
msgid "Type the name of the rule to select it"
|
4708 |
msgstr ""
|
4709 |
|
4710 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4711 |
msgid "All active rules"
|
4712 |
msgstr ""
|
4713 |
|
4714 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4715 |
msgid "Save and Build Index"
|
4716 |
msgstr ""
|
4717 |
|
4718 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4719 |
msgid ""
|
4720 |
"ShortCode to load all products which has discount through Woo Discount Rules"
|
4721 |
msgstr ""
|
4722 |
|
4723 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4724 |
msgid "Settings Saved"
|
4725 |
msgstr ""
|
4726 |
|
4727 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4728 |
msgid "Oops! Something went wrong."
|
4729 |
msgstr ""
|
4730 |
|
4731 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4732 |
msgid " This table contains sample content for design purpose."
|
4733 |
msgstr ""
|
4734 |
|
4735 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4736 |
msgid "Table Header"
|
4737 |
msgstr ""
|
4738 |
|
4739 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4740 |
msgid "Show/Hide table header column names"
|
4741 |
msgstr ""
|
4742 |
|
4743 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4744 |
msgid "Title column Name on table"
|
4745 |
msgstr ""
|
4746 |
|
4747 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4748 |
msgid "Give name for rule title column"
|
4749 |
msgstr ""
|
4750 |
|
4751 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4752 |
msgid "Discount column Name on table"
|
4753 |
msgstr ""
|
4754 |
|
4755 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4756 |
msgid "Give name for discount column"
|
4757 |
msgstr ""
|
4758 |
|
4759 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4760 |
msgid "Range column Name on table"
|
4761 |
msgstr ""
|
4762 |
|
4763 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4764 |
msgid "Give name for range column"
|
4765 |
msgstr ""
|
4766 |
|
4767 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4768 |
msgid "Discount column value on table"
|
4769 |
msgstr ""
|
4770 |
|
4771 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4772 |
msgid "Show Discount value/price in table"
|
4773 |
msgstr ""
|
4774 |
|
4775 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4776 |
msgid "Discounted Price"
|
4777 |
msgstr ""
|
4778 |
|
4779 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4780 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4781 |
msgid "Bulk Rule"
|
4782 |
msgstr ""
|
4783 |
|
4784 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4785 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4786 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4787 |
#: v2/App/Views/Templates/discount_table.php:118
|
4788 |
msgid " flat"
|
4789 |
msgstr ""
|
4790 |
|
4791 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4792 |
msgid "1 - 5"
|
4793 |
msgstr ""
|
4794 |
|
4795 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4796 |
msgid "11 - 15"
|
4797 |
msgstr ""
|
4798 |
|
4799 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4800 |
msgid "Bulk Flat discount"
|
4801 |
msgstr ""
|
4802 |
|
4803 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4804 |
msgid "50 - 60"
|
4805 |
msgstr ""
|
4806 |
|
4807 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4808 |
msgid "Bulk percentage discount"
|
4809 |
msgstr ""
|
4810 |
|
4811 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4812 |
msgid "70 - 80"
|
4813 |
msgstr ""
|
4814 |
|
4815 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4816 |
#, php-format
|
4817 |
msgid "Bulk % discount"
|
4818 |
msgstr ""
|
4819 |
|
4820 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4821 |
msgid "450 - 500"
|
4822 |
msgstr ""
|
4823 |
|
4824 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4825 |
msgid "Bulk flat"
|
4826 |
msgstr ""
|
4827 |
|
4828 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4829 |
msgid "600 - 700"
|
4830 |
msgstr ""
|
4831 |
|
4832 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4833 |
msgid "set percentage discount"
|
4834 |
msgstr ""
|
4835 |
|
4836 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4837 |
msgid "5"
|
4838 |
msgstr ""
|
4839 |
|
4840 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4841 |
msgid "Fixed discount for set"
|
4842 |
msgstr ""
|
4843 |
|
4844 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4845 |
msgid "10"
|
4846 |
msgstr ""
|
4847 |
|
4848 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4849 |
msgid "set flat discount"
|
4850 |
msgstr ""
|
4851 |
|
4852 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4853 |
msgid "15"
|
4854 |
msgstr ""
|
4855 |
|
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"
|
13 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"
|
14 |
|
15 |
#: common.php:9 v2/App/Controllers/Admin/Tabs/Statistics.php:118
|
16 |
+
#: v2/App/Controllers/Admin/WDRAjax.php:69
|
17 |
+
#: v2/App/Controllers/Admin/WDRAjax.php:72
|
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 |
|
153 |
msgid "License key for the %s is not entered. %s, you can get it from %s"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: v1/helper/general-helper.php:48 v2/App/Controllers/Admin/Settings.php:328
|
157 |
msgid "Guest"
|
158 |
msgstr ""
|
159 |
|
191 |
#: v2/App/Views/Admin/Rules/Manage.php:153
|
192 |
#: v2/App/Views/Admin/Rules/Manage.php:154
|
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 |
|
203 |
#: v1/helper/general-helper.php:1034 v1/view/view-cart-rules.php:697
|
204 |
+
#: v1/view/view-pricing-rules.php:433 v2/App/Helpers/Woocommerce.php:1529
|
205 |
msgid "Coupon already exists in WooCommerce. Please select another name"
|
206 |
msgstr ""
|
207 |
|
211 |
|
212 |
#: v1/helper/purchase.php:25 v1/view/includes/cart-menu.php:5
|
213 |
#: v1/view/includes/menu.php:6 v1/view/includes/sub-menu.php:5
|
214 |
+
#: v2/App/Controllers/Admin/Settings.php:41
|
215 |
#: v2/App/Controllers/Admin/Settings.php:42
|
|
|
216 |
msgid "Woo Discount Rules"
|
217 |
msgstr ""
|
218 |
|
279 |
#: v1/includes/advanced/free_shipping_method.php:73
|
280 |
#: v1/includes/discount-base.php:1128 v1/view/cart-rules.php:135
|
281 |
#: v1/view/pricing-rules.php:165 v1/view/settings_promotion.php:65
|
282 |
+
#: v1/view/settings_promotion.php:100 v2/App/Controllers/Admin/Settings.php:438
|
283 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:77
|
284 |
msgid "Enable"
|
285 |
msgstr ""
|
307 |
msgstr ""
|
308 |
|
309 |
#: v1/includes/discount-base.php:207 v1/view/cart-rules.php:164
|
310 |
+
#: v1/view/pricing-rules.php:194 v2/App/Controllers/Admin/Settings.php:437
|
311 |
msgid "Active"
|
312 |
msgstr ""
|
313 |
|
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 |
|
389 |
|
390 |
#: v1/includes/discount-base.php:1089 v1/view/view-pricing-rules.php:654
|
391 |
#: v1/view/view-pricing-rules.php:657 v1/view/view-pricing-rules.php:677
|
392 |
+
#: v2/App/Controllers/Admin/Settings.php:455
|
393 |
msgid "Quantity"
|
394 |
msgstr ""
|
395 |
|
418 |
msgstr ""
|
419 |
|
420 |
#: v1/includes/discount-base.php:1095 v1/view/view-pricing-rules.php:954
|
421 |
+
#: v2/App/Controllers/Admin/Settings.php:458
|
422 |
msgid "Discount percentage"
|
423 |
msgstr ""
|
424 |
|
565 |
msgstr ""
|
566 |
|
567 |
#: v1/includes/discount-base.php:1129 v1/view/cart-rules.php:132
|
568 |
+
#: v1/view/pricing-rules.php:162 v2/App/Controllers/Admin/Settings.php:436
|
569 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:78
|
570 |
msgid "Disable"
|
571 |
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 |
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 "
|
1026 |
msgstr ""
|
1027 |
|
1028 |
#: v1/includes/discount-base.php:1357 v1/view/includes/menu.php:18
|
1029 |
+
#: v2/App/Controllers/Admin/Settings.php:66
|
1030 |
#: v2/App/Controllers/Admin/Tabs/GeneralSettings.php:23
|
1031 |
msgid "Settings"
|
1032 |
msgstr ""
|
1217 |
msgstr ""
|
1218 |
|
1219 |
#: v1/view/cart-rules.php:54 v1/view/documentation.php:21
|
1220 |
+
#: v1/view/pricing-rules.php:86 v2/App/Controllers/Admin/Tabs/Help.php:17
|
1221 |
+
#: v2/App/Views/Admin/Tabs/DiscountRule.php:58
|
1222 |
#: v2/App/Views/Admin/Tabs/help.php:8
|
1223 |
msgid "Documentation"
|
1224 |
msgstr ""
|
1439 |
|
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 |
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 |
|
1621 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:22
|
1622 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:37
|
1623 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:52
|
1624 |
+
#: v2/App/Views/Admin/Tabs/settings.php:56
|
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 |
|
1643 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:26
|
1644 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:41
|
1645 |
#: v2/App/Views/Admin/Tabs/AdvancedOptions.php:56
|
1646 |
+
#: v2/App/Views/Admin/Tabs/settings.php:60
|
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 |
|
1667 |
msgid "Force refresh the cart widget while add and remove item to cart"
|
1668 |
msgstr ""
|
1669 |
|
1670 |
+
#: v1/view/settings_general.php:86 v2/App/Views/Admin/Tabs/settings.php:66
|
1671 |
msgid ""
|
1672 |
"Choose how discount rules should work when WooCommerce coupons (or third "
|
1673 |
"party) coupons are used?"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
+
#: v1/view/settings_general.php:93 v2/App/Views/Admin/Tabs/settings.php:73
|
1677 |
msgid "Let both coupons and discount rules run together"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
+
#: v1/view/settings_general.php:96 v2/App/Views/Admin/Tabs/settings.php:75
|
1681 |
msgid "Disable the discount rules (coupons will work)"
|
1682 |
msgstr ""
|
1683 |
|
1684 |
+
#: v1/view/settings_general.php:99 v2/App/Views/Admin/Tabs/settings.php:74
|
1685 |
msgid "Disable the coupons (discount rules will work)"
|
1686 |
msgstr ""
|
1687 |
|
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 |
|
1837 |
msgstr ""
|
1838 |
|
1839 |
#: v1/view/settings_price_rules.php:284
|
1840 |
+
#: v2/App/Views/Admin/Tabs/settings.php:147
|
1841 |
msgid "Do not show"
|
1842 |
msgstr ""
|
1843 |
|
1844 |
#: v1/view/settings_price_rules.php:287
|
1845 |
+
#: v2/App/Views/Admin/Tabs/settings.php:145
|
1846 |
msgid "Show only after a rule condition is matched exactly"
|
1847 |
msgstr ""
|
1848 |
|
1853 |
msgstr ""
|
1854 |
|
1855 |
#: v1/view/settings_price_rules.php:301
|
1856 |
+
#: v2/App/Views/Admin/Tabs/settings.php:153
|
1857 |
msgid "Do you want to customize the sale badge?"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
#: v1/view/settings_price_rules.php:308
|
1861 |
+
#: v2/App/Views/Admin/Tabs/settings.php:164
|
1862 |
msgid "Yes, I would like to customize the sale badge"
|
1863 |
msgstr ""
|
1864 |
|
1865 |
#: v1/view/settings_price_rules.php:310
|
1866 |
+
#: v2/App/Views/Admin/Tabs/settings.php:168
|
1867 |
msgid ""
|
1868 |
"Force override the label for sale badge (useful when your theme has override "
|
1869 |
"for sale badge)."
|
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 |
"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 |
|
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 |
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 |
|
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 |
|
2629 |
+
#: v2/App/Controllers/Admin/Settings.php:165
|
2630 |
msgid ""
|
2631 |
"We found that your were using our old \"Woo discount rules\" plugin, Please "
|
2632 |
"disable it!"
|
2633 |
msgstr ""
|
2634 |
|
2635 |
+
#: v2/App/Controllers/Admin/Settings.php:238
|
2636 |
msgid "no results"
|
2637 |
msgstr ""
|
2638 |
|
2639 |
+
#: v2/App/Controllers/Admin/Settings.php:239
|
2640 |
msgid "Select Values"
|
2641 |
msgstr ""
|
2642 |
|
2643 |
+
#: v2/App/Controllers/Admin/Settings.php:240
|
2644 |
msgid "Searching…"
|
2645 |
msgstr ""
|
2646 |
|
2647 |
+
#: v2/App/Controllers/Admin/Settings.php:439
|
2648 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:294
|
2649 |
msgid " - (Running)"
|
2650 |
msgstr ""
|
2651 |
|
2652 |
+
#: v2/App/Controllers/Admin/Settings.php:440
|
2653 |
msgid "Oops!! something went wrong!"
|
2654 |
msgstr ""
|
2655 |
|
2656 |
+
#: v2/App/Controllers/Admin/Settings.php:441
|
2657 |
msgid "Rule duplicated successfully!"
|
2658 |
msgstr ""
|
2659 |
|
2660 |
+
#: v2/App/Controllers/Admin/Settings.php:442
|
2661 |
msgid "Rule deleted successfully!"
|
2662 |
msgstr ""
|
2663 |
|
2664 |
+
#: v2/App/Controllers/Admin/Settings.php:443
|
2665 |
msgid "Are you sure want to delete this rule!"
|
2666 |
msgstr ""
|
2667 |
|
2668 |
+
#: v2/App/Controllers/Admin/Settings.php:444
|
2669 |
msgid "Rule disabled successfully!"
|
2670 |
msgstr ""
|
2671 |
|
2672 |
+
#: v2/App/Controllers/Admin/Settings.php:445
|
2673 |
msgid "Rule enabled successfully!"
|
2674 |
msgstr ""
|
2675 |
|
2676 |
+
#: v2/App/Controllers/Admin/Settings.php:446
|
2677 |
msgid "Rule saved successfully!"
|
2678 |
msgstr ""
|
2679 |
|
2680 |
+
#: v2/App/Controllers/Admin/Settings.php:447
|
2681 |
msgid "Settings saved successfully!"
|
2682 |
msgstr ""
|
2683 |
|
2684 |
+
#: v2/App/Controllers/Admin/Settings.php:448
|
2685 |
msgid "Rule priority changed successfully!"
|
2686 |
msgstr ""
|
2687 |
|
2688 |
+
#: v2/App/Controllers/Admin/Settings.php:449
|
2689 |
msgid "Rule priority not changed !"
|
2690 |
msgstr ""
|
2691 |
|
2692 |
+
#: v2/App/Controllers/Admin/Settings.php:450
|
2693 |
msgid "No data for this period"
|
2694 |
msgstr ""
|
2695 |
|
2696 |
+
#: v2/App/Controllers/Admin/Settings.php:451
|
2697 |
msgid "Oops! Coupon already exists in Woocommerce"
|
2698 |
msgstr ""
|
2699 |
|
2700 |
+
#: v2/App/Controllers/Admin/Settings.php:452
|
2701 |
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 |
|
2709 |
+
#: v2/App/Controllers/Admin/Settings.php:454
|
2710 |
msgid "If you make this recursive other row(s) will be removed!"
|
2711 |
msgstr ""
|
2712 |
|
2713 |
+
#: v2/App/Controllers/Admin/Settings.php:456
|
2714 |
msgid "Minimum Quantity"
|
2715 |
msgstr ""
|
2716 |
|
2717 |
+
#: v2/App/Controllers/Admin/Settings.php:457
|
2718 |
msgid "Discount value"
|
2719 |
msgstr ""
|
2720 |
|
2721 |
+
#: v2/App/Controllers/Admin/Settings.php:459
|
2722 |
msgid "Filter (Buy)"
|
2723 |
msgstr ""
|
2724 |
|
2725 |
+
#: v2/App/Controllers/Admin/Settings.php:460
|
2726 |
#: v2/App/Views/Admin/Rules/Manage.php:163
|
2727 |
msgid "Filter"
|
2728 |
msgstr ""
|
2729 |
|
2730 |
+
#: v2/App/Controllers/Admin/Settings.php:461
|
2731 |
msgid ""
|
2732 |
"<p>Choose <b>what gets discount</b> (products/categories/attributes/SKU and "
|
2733 |
"so on )</p>\n"
|
2734 |
"<p>Note : You can also exclude products/categories.</p>"
|
2735 |
msgstr ""
|
2736 |
|
2737 |
+
#: v2/App/Controllers/Admin/Settings.php:464
|
2738 |
msgid ""
|
2739 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3914904-bulk-"
|
2740 |
"discounts-tiered-pricing-discounts-discount-rules-2-0?utm_source=woo-"
|
2743 |
"\"_blank\">Read Docs</a>"
|
2744 |
msgstr ""
|
2745 |
|
2746 |
+
#: v2/App/Controllers/Admin/Settings.php:465
|
2747 |
msgid ""
|
2748 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3809899-bundle-set-"
|
2749 |
"discount-discount-rules-2-0?utm_source=woo-discount-rules-"
|
2751 |
"\"font-size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2752 |
msgstr ""
|
2753 |
|
2754 |
+
#: v2/App/Controllers/Admin/Settings.php:466
|
2755 |
msgid ""
|
2756 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810570-buy-x-get-"
|
2757 |
"y-discount-rules-2-0?utm_source=woo-discount-rules-"
|
2759 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2760 |
msgstr ""
|
2761 |
|
2762 |
+
#: v2/App/Controllers/Admin/Settings.php:467
|
2763 |
msgid ""
|
2764 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810071-buy-one-"
|
2765 |
"get-one-free-buy-x-get-x-discount-rules-2-0?utm_source=woo-discount-rules-"
|
2767 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2768 |
msgstr ""
|
2769 |
|
2770 |
+
#: v2/App/Controllers/Admin/Settings.php:468
|
2771 |
msgid ""
|
2772 |
"<p>Select discount type and its value (percentage/price/fixed price)</p>"
|
2773 |
msgstr ""
|
2774 |
|
2775 |
+
#: v2/App/Controllers/Admin/Settings.php:469
|
2776 |
msgid ""
|
2777 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2778 |
"<div class=\"awdr-count-by-description\"><b>Filter set above :</b><p> This "
|
2787 |
"p></div>"
|
2788 |
msgstr ""
|
2789 |
|
2790 |
+
#: v2/App/Controllers/Admin/Settings.php:475
|
2791 |
msgid ""
|
2792 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2793 |
"<div class=\"awdr-count-by-description\"><b>Individual Product :</b><p>This "
|
2801 |
"because WooCommerce considers a variant as a product itself. </p></div>"
|
2802 |
msgstr ""
|
2803 |
|
2804 |
+
#: v2/App/Controllers/Admin/Settings.php:481
|
2805 |
msgid ""
|
2806 |
"<p>Select discount type and its value (percentage/price/fixed price)</p><div "
|
2807 |
"class=\"awdr-count-by-description\"><b>All variants in each product "
|
2814 |
"</p></div>"
|
2815 |
msgstr ""
|
2816 |
|
2817 |
+
#: v2/App/Controllers/Admin/Settings.php:487
|
2818 |
msgid "Rules (optional)"
|
2819 |
msgstr ""
|
2820 |
|
2821 |
+
#: v2/App/Controllers/Admin/Settings.php:489
|
2822 |
msgid ""
|
2823 |
"<p>Choose Buy Products. (products/categories/attributes/tags/sku) Example : "
|
2824 |
"For Buy X get Y scenarios, choose X here.</p>"
|
2825 |
msgstr ""
|
2826 |
|
2827 |
+
#: v2/App/Controllers/Admin/Settings.php:490
|
2828 |
msgid ""
|
2829 |
"<p>Choose on which products the discount should be applied (This can be "
|
2830 |
"products/categories/SKU)</p>"
|
2831 |
msgstr ""
|
2832 |
|
2833 |
+
#: v2/App/Controllers/Admin/Settings.php:491
|
2834 |
+
#: v2/App/Controllers/Admin/Settings.php:493
|
2835 |
msgid "Get Discount"
|
2836 |
msgstr ""
|
2837 |
|
2838 |
+
#: v2/App/Controllers/Admin/Settings.php:492
|
2839 |
msgid ""
|
2840 |
"<p>Enter the min/max ranges and choose free item quantity.</p><p>Note : "
|
2841 |
"Enable recursive checkbox if the discounts should be applied in sequential "
|
2843 |
"p>"
|
2844 |
msgstr ""
|
2845 |
|
2846 |
+
#: v2/App/Controllers/Admin/Settings.php:494
|
2847 |
msgid ""
|
2848 |
"<p>Choose the adjustment type to which the discount should be applied. You "
|
2849 |
"can choose from products/categories/all products.</p><p>Note : Enable "
|
2851 |
"</p>"
|
2852 |
msgstr ""
|
2853 |
|
2854 |
+
#: v2/App/Controllers/Admin/Settings.php:495
|
2855 |
msgid ""
|
2856 |
"<p>Discount will be applied <b>only the selected products (based on mode of "
|
2857 |
"apply)</b></p><p>Note : Enable recursive checkbox if the discounts should be "
|
2858 |
"applied in sequential ranges. </p>"
|
2859 |
msgstr ""
|
2860 |
|
2861 |
+
#: v2/App/Controllers/Admin/Settings.php:496
|
2862 |
msgid ""
|
2863 |
"<p>Discount will be applied <b>only the selected categories (based on mode "
|
2864 |
"of apply)</b></p><p>Note : Enable recursive checkbox if the discounts should "
|
2869 |
"table>"
|
2870 |
msgstr ""
|
2871 |
|
2872 |
+
#: v2/App/Controllers/Admin/Settings.php:497
|
2873 |
msgid ""
|
2874 |
"<p>Discount applies on the cheapest/highest priced <b>product IN CART</b>.</"
|
2875 |
"p><p>Note : Enable recursive checkbox if the discounts should be applied in "
|
2879 |
"tr></tr><tr><td>4</td><td>5</td><td>2</td></tr></tbody></table>"
|
2880 |
msgstr ""
|
2881 |
|
2882 |
+
#: v2/App/Controllers/Admin/Settings.php:500
|
2883 |
msgid "<p>Processing migration, please wait...</p>"
|
2884 |
msgstr ""
|
2885 |
|
2886 |
+
#: v2/App/Controllers/Admin/Settings.php:501
|
2887 |
msgid "<p>Migration completed.</p>"
|
2888 |
msgstr ""
|
2889 |
|
2890 |
+
#: v2/App/Controllers/Admin/Settings.php:502
|
2891 |
msgid "<p>Migration skipped.</p>"
|
2892 |
msgstr ""
|
2893 |
|
2894 |
+
#: v2/App/Controllers/Admin/Settings.php:503
|
2895 |
msgid "<p>Skipping migration, please wait...</p>"
|
2896 |
msgstr ""
|
2897 |
|
2898 |
+
#: v2/App/Controllers/Admin/Settings.php:504
|
2899 |
msgid ""
|
2900 |
"<span><b>Example:</b> Product A - Small and Product A - Medium will be "
|
2901 |
"counted as 2 quantity</span>"
|
2902 |
msgstr ""
|
2903 |
|
2904 |
+
#: v2/App/Controllers/Admin/Settings.php:505
|
2905 |
msgid "<span>Discount applies to all eligible products in the store</span>"
|
2906 |
msgstr ""
|
2907 |
|
2908 |
+
#: v2/App/Controllers/Admin/Settings.php:506
|
2909 |
msgid ""
|
2910 |
"<span>Choose products that get the discount using \"In List\". If you want "
|
2911 |
"to exclude a few products, choose \"Not In List\" and select the products "
|
2912 |
"you wanted to exclude from discount. (You can add multiple filters)</span>"
|
2913 |
msgstr ""
|
2914 |
|
2915 |
+
#: v2/App/Controllers/Admin/Settings.php:507
|
2916 |
msgid ""
|
2917 |
"<span>Choose categories that get the discount using \"In List\". If you want "
|
2918 |
"to exclude a few categories, choose \"Not In List\" and select the "
|
2920 |
"filters of same type)</span>"
|
2921 |
msgstr ""
|
2922 |
|
2923 |
+
#: v2/App/Controllers/Admin/Settings.php:508
|
2924 |
msgid ""
|
2925 |
"<span> Choose attributes that get the discount using \"In List\". If you "
|
2926 |
"want to exclude a few attributes, choose \"Not In List\" and select the "
|
2928 |
"filters of same type)</span>"
|
2929 |
msgstr ""
|
2930 |
|
2931 |
+
#: v2/App/Controllers/Admin/Settings.php:509
|
2932 |
msgid ""
|
2933 |
"<span>Choose tags that get the discount using \"In List\". If you want to "
|
2934 |
"exclude a few tags, choose \"Not In List\" and select the tags you wanted to "
|
2935 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2936 |
msgstr ""
|
2937 |
|
2938 |
+
#: v2/App/Controllers/Admin/Settings.php:510
|
2939 |
msgid ""
|
2940 |
"<span>Choose SKUs that get the discount using \"In List\". If you want to "
|
2941 |
"exclude a few SKUs, choose \"Not In List\" and select the SKUs you wanted to "
|
2942 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2943 |
msgstr ""
|
2944 |
|
2945 |
+
#: v2/App/Controllers/Admin/Settings.php:511
|
2946 |
msgid ""
|
2947 |
"<span>Choose whether you want to include (or exclude) products on sale "
|
2948 |
"(those having a sale price) for the discount </span>"
|
2949 |
msgstr ""
|
2950 |
|
2951 |
+
#: v2/App/Controllers/Admin/Settings.php:512
|
2952 |
msgid "<span>Discount applies to custom taxonomy</span>"
|
2953 |
msgstr ""
|
2954 |
|
2955 |
+
#: v2/App/Controllers/Admin/Settings.php:513
|
2956 |
msgid "Processing please wait.."
|
2957 |
msgstr ""
|
2958 |
|
2959 |
+
#: v2/App/Controllers/Admin/Settings.php:514
|
2960 |
msgid "Rebuild index processed"
|
2961 |
msgstr ""
|
2962 |
|
2963 |
+
#: v2/App/Controllers/Admin/Settings.php:515
|
2964 |
msgid "Please select the rules to build index"
|
2965 |
msgstr ""
|
2966 |
|
2967 |
+
#: v2/App/Controllers/Admin/Settings.php:516
|
2968 |
msgid "Invalid File. Upload : <b style='color:red;'>.csv</b> File. </br>"
|
2969 |
msgstr ""
|
2970 |
|
2971 |
+
#: v2/App/Controllers/Admin/Settings.php:517
|
2972 |
msgid ""
|
2973 |
"<b>This rule is not running currently:</b> Rule reached maximum usage limit"
|
2974 |
msgstr ""
|
2975 |
|
2976 |
+
#: v2/App/Controllers/Admin/Settings.php:518
|
2977 |
msgid ""
|
2978 |
"<b>This rule is not running currently:</b> Start date and time is set in the "
|
2979 |
"future date"
|
2980 |
msgstr ""
|
2981 |
|
2982 |
+
#: v2/App/Controllers/Admin/Settings.php:519
|
2983 |
msgid "<b>This rule is not running currently:</b> Validity expired"
|
2984 |
msgstr ""
|
2985 |
|
2986 |
+
#: v2/App/Controllers/Admin/Settings.php:520
|
2987 |
msgid "Select State"
|
2988 |
msgstr ""
|
2989 |
|
3000 |
msgid "Discount Rules"
|
3001 |
msgstr ""
|
3002 |
|
|
|
|
|
|
|
|
|
3003 |
#: v2/App/Controllers/Admin/Tabs/ImportExport.php:19
|
3004 |
msgid "Import/Export"
|
3005 |
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 |
|
3047 |
#: v2/App/Controllers/Base.php:43 v2/App/Controllers/Base.php:48
|
3048 |
#: v2/App/Helpers/ProOptions.php:34 v2/App/Helpers/ProOptions.php:40
|
3049 |
#: v2/App/Helpers/ProOptions.php:46 v2/App/Helpers/ProOptions.php:52
|
3050 |
+
#: v2/App/Helpers/ProOptions.php:58 v2/App/Views/Admin/Tabs/settings.php:131
|
3051 |
msgid "Product"
|
3052 |
msgstr ""
|
3053 |
|
3056 |
msgstr ""
|
3057 |
|
3058 |
#: v2/App/Controllers/Base.php:195 v2/App/Controllers/Base.php:201
|
3059 |
+
#: v2/App/Helpers/ProOptions.php:332 v2/App/Views/Admin/Tabs/Recipe.php:21
|
3060 |
msgid "Simple Discount"
|
3061 |
msgstr ""
|
3062 |
|
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 |
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 |
|
3374 |
msgid "Accepts only hex color code"
|
3375 |
msgstr ""
|
3376 |
|
3377 |
+
#: v2/App/Helpers/Validation.php:349
|
3378 |
msgid "Accept only yes, on, 1, true"
|
3379 |
msgstr ""
|
3380 |
|
3381 |
+
#: v2/App/Helpers/Validation.php:350
|
3382 |
msgid "Should not contain any tags"
|
3383 |
msgstr ""
|
3384 |
|
3385 |
+
#: v2/App/Helpers/Validation.php:351
|
3386 |
msgid "Should not contain any tags and special characters"
|
3387 |
msgstr ""
|
3388 |
|
3389 |
+
#: v2/App/Helpers/Validation.php:352 v2/App/Helpers/Validation.php:353
|
3390 |
msgid "Invalid inputs"
|
3391 |
msgstr ""
|
3392 |
|
3393 |
+
#: v2/App/Helpers/Validation.php:517
|
3394 |
msgid "Validation error"
|
3395 |
msgstr ""
|
3396 |
|
3397 |
+
#: v2/App/Helpers/Woocommerce.php:959
|
3398 |
msgid "Sunday"
|
3399 |
msgstr ""
|
3400 |
|
3401 |
+
#: v2/App/Helpers/Woocommerce.php:960
|
3402 |
msgid "Monday"
|
3403 |
msgstr ""
|
3404 |
|
3405 |
+
#: v2/App/Helpers/Woocommerce.php:961
|
3406 |
msgid "Tuesday"
|
3407 |
msgstr ""
|
3408 |
|
3409 |
+
#: v2/App/Helpers/Woocommerce.php:962
|
3410 |
msgid "Wednesday"
|
3411 |
msgstr ""
|
3412 |
|
3413 |
+
#: v2/App/Helpers/Woocommerce.php:963
|
3414 |
msgid "Thursday"
|
3415 |
msgstr ""
|
3416 |
|
3417 |
+
#: v2/App/Helpers/Woocommerce.php:964
|
3418 |
msgid "Friday"
|
3419 |
msgstr ""
|
3420 |
|
3421 |
+
#: v2/App/Helpers/Woocommerce.php:965
|
3422 |
msgid "Saturday"
|
3423 |
msgstr ""
|
3424 |
|
3425 |
+
#: v2/App/Helpers/Woocommerce.php:976
|
3426 |
msgid ""
|
3427 |
"Woocommerce before main content(Archive / Shop / Cat Pages / single product)"
|
3428 |
msgstr ""
|
3429 |
|
3430 |
+
#: v2/App/Helpers/Woocommerce.php:977
|
3431 |
msgid "Woocommerce archive description(Archive / Shop / Cat Pages)"
|
3432 |
msgstr ""
|
3433 |
|
3434 |
+
#: v2/App/Helpers/Woocommerce.php:978
|
3435 |
msgid "Woocommerce before shop loop(Archive / Shop / Cat Pages)"
|
3436 |
msgstr ""
|
3437 |
|
3438 |
+
#: v2/App/Helpers/Woocommerce.php:979
|
3439 |
msgid "Woocommerce after shop loop(Archive / Shop / Cat Pages)"
|
3440 |
msgstr ""
|
3441 |
|
3442 |
+
#: v2/App/Helpers/Woocommerce.php:980
|
3443 |
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 |
|
3467 |
+
#: v2/App/Helpers/Woocommerce.php:985
|
3468 |
msgid "Woocommerce before cart"
|
3469 |
msgstr ""
|
3470 |
|
3471 |
+
#: v2/App/Helpers/Woocommerce.php:986
|
3472 |
msgid "Woocommerce before cart table"
|
3473 |
msgstr ""
|
3474 |
|
3475 |
+
#: v2/App/Helpers/Woocommerce.php:987
|
3476 |
msgid "Woocommerce before cart contents"
|
3477 |
msgstr ""
|
3478 |
|
3479 |
+
#: v2/App/Helpers/Woocommerce.php:988
|
3480 |
msgid "Woocommerce cart contents"
|
3481 |
msgstr ""
|
3482 |
|
3483 |
+
#: v2/App/Helpers/Woocommerce.php:989
|
3484 |
msgid "Woocommerce after cart contents"
|
3485 |
msgstr ""
|
3486 |
|
3487 |
+
#: v2/App/Helpers/Woocommerce.php:990
|
3488 |
msgid "Woocommerce after cart table"
|
3489 |
msgstr ""
|
3490 |
|
3491 |
+
#: v2/App/Helpers/Woocommerce.php:991
|
3492 |
msgid "Woocommerce after cart"
|
3493 |
msgstr ""
|
3494 |
|
3495 |
+
#: v2/App/Helpers/Woocommerce.php:992
|
3496 |
msgid "Woocommerce before checkout form"
|
3497 |
msgstr ""
|
3498 |
|
3499 |
+
#: v2/App/Helpers/Woocommerce.php:994
|
3500 |
msgid "Woocommerce before checkout billing form"
|
3501 |
msgstr ""
|
3502 |
|
3503 |
+
#: v2/App/Helpers/Woocommerce.php:995
|
3504 |
msgid "Woocommerce after checkout billing form"
|
3505 |
msgstr ""
|
3506 |
|
3507 |
+
#: v2/App/Helpers/Woocommerce.php:996
|
3508 |
msgid "Woocommerce before checkout shipping form"
|
3509 |
msgstr ""
|
3510 |
|
3511 |
+
#: v2/App/Helpers/Woocommerce.php:997
|
3512 |
msgid "Woocommerce after checkout shipping form"
|
3513 |
msgstr ""
|
3514 |
|
3515 |
+
#: v2/App/Helpers/Woocommerce.php:998
|
3516 |
msgid "Woocommerce before order notes"
|
3517 |
msgstr ""
|
3518 |
|
3519 |
+
#: v2/App/Helpers/Woocommerce.php:999
|
3520 |
msgid "Woocommerce after order notes"
|
3521 |
msgstr ""
|
3522 |
|
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 |
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 |
|
4289 |
"woocommerce-discount-rules\" target=\"_blank\">Upgrading to Pro</a>"
|
4290 |
msgstr ""
|
4291 |
|
4292 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:14
|
4293 |
+
msgid ""
|
4294 |
+
"Use the sample recipes below to create discount rules easily. These are "
|
4295 |
+
"example rules for some of the popular discount scenarios. You can use these "
|
4296 |
+
"recipes to get started quickly."
|
4297 |
msgstr ""
|
4298 |
|
4299 |
#: v2/App/Views/Admin/Tabs/Recipe.php:22
|
4300 |
+
msgid "Product adjustment "
|
4301 |
+
msgstr ""
|
4302 |
+
|
4303 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:27
|
4304 |
msgid "Bundle(set) Discount"
|
4305 |
msgstr ""
|
4306 |
|
4307 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:28
|
4308 |
msgid "Bundle(set) Adjustment"
|
4309 |
msgstr ""
|
4310 |
|
4311 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:33
|
4312 |
msgid "BOGO Discount"
|
4313 |
msgstr ""
|
4314 |
|
4315 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:34
|
4316 |
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-"
|
4460 |
msgid "Highest/Lowest/First/All matched rules"
|
4461 |
msgstr ""
|
4462 |
|
4463 |
+
#: v2/App/Views/Admin/Tabs/settings.php:37
|
4464 |
+
msgid ""
|
4465 |
+
"<p class=\"wdr_settings_desc_text text-warning\"><strong>Note</strong> : "
|
4466 |
+
"Priority will not work for free shipping rule.</p>"
|
4467 |
msgstr ""
|
4468 |
|
4469 |
#: v2/App/Views/Admin/Tabs/settings.php:41
|
4470 |
+
msgid "Biggest one from matched rules"
|
4471 |
msgstr ""
|
4472 |
|
4473 |
#: v2/App/Views/Admin/Tabs/settings.php:42
|
4474 |
+
msgid "Lowest one from matched rules"
|
4475 |
msgstr ""
|
4476 |
|
4477 |
#: v2/App/Views/Admin/Tabs/settings.php:43
|
4478 |
+
msgid "First matched rules"
|
4479 |
+
msgstr ""
|
4480 |
+
|
4481 |
+
#: v2/App/Views/Admin/Tabs/settings.php:44
|
4482 |
msgid "All matched rules"
|
4483 |
msgstr ""
|
4484 |
|
4485 |
+
#: v2/App/Views/Admin/Tabs/settings.php:50
|
4486 |
msgid "Apply discount subsequently"
|
4487 |
msgstr ""
|
4488 |
|
4489 |
+
#: v2/App/Views/Admin/Tabs/settings.php:51
|
4490 |
msgid "discounts applied subsequently"
|
4491 |
msgstr ""
|
4492 |
|
4493 |
+
#: v2/App/Views/Admin/Tabs/settings.php:65
|
4494 |
msgid "Choose how discount rules should work"
|
4495 |
msgstr ""
|
4496 |
|
4497 |
+
#: v2/App/Views/Admin/Tabs/settings.php:81
|
4498 |
msgid "Refresh order review in checkout"
|
4499 |
msgstr ""
|
4500 |
|
4501 |
+
#: v2/App/Views/Admin/Tabs/settings.php:82
|
4502 |
msgid "Useful when you have purchase history/shipping address based discount."
|
4503 |
msgstr ""
|
4504 |
|
4505 |
+
#: v2/App/Views/Admin/Tabs/settings.php:96
|
4506 |
msgid "Suppress third party discount plugins"
|
4507 |
msgstr ""
|
4508 |
|
4509 |
+
#: v2/App/Views/Admin/Tabs/settings.php:97
|
4510 |
msgid ""
|
4511 |
"Suppress third party plugins from modifying the prices. other discount "
|
4512 |
"plugins may not works!"
|
4513 |
msgstr ""
|
4514 |
|
4515 |
+
#: v2/App/Views/Admin/Tabs/settings.php:98
|
4516 |
msgid "Change this option only if recommended."
|
4517 |
msgstr ""
|
4518 |
|
4519 |
+
#: v2/App/Views/Admin/Tabs/settings.php:112
|
4520 |
+
msgid "Use minified CSS and JS"
|
4521 |
+
msgstr ""
|
4522 |
+
|
4523 |
+
#: v2/App/Views/Admin/Tabs/settings.php:137
|
4524 |
msgid "On-sale badge"
|
4525 |
msgstr ""
|
4526 |
|
4527 |
+
#: v2/App/Views/Admin/Tabs/settings.php:138
|
4528 |
msgid "show on-sale badge"
|
4529 |
msgstr ""
|
4530 |
|
4531 |
+
#: v2/App/Views/Admin/Tabs/settings.php:146
|
4532 |
msgid "Show on products that are covered under any discount rule in the plugin"
|
4533 |
msgstr ""
|
4534 |
|
4535 |
+
#: v2/App/Views/Admin/Tabs/settings.php:154
|
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 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: flycart
|
|
3 |
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.
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -336,6 +336,26 @@ Note : Enable recursive checkbox if the discounts should be applied in sequentia
|
|
336 |
|
337 |
== Changelog ==
|
338 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
= 2.3.7 - 30/04/21 =
|
340 |
* Improvement - Moved advance option tab to settings.
|
341 |
|
3 |
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 |
|
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.
|
342 |
+
* Improvement - Option to load minified CSS and JS.
|
343 |
+
* Improvement - Taxonomy slug support for different language.
|
344 |
+
* Improvement - Event advanced_woo_discount_rules_dequeue_jquery_ui_datepicker_script.
|
345 |
+
* Improvement - Event advanced_woo_discount_rules_calculate_current_discount_amount.
|
346 |
+
* Improvement - Event advanced_woo_discount_rules_is_rule_passed_with_out_discount_for_exclusive_rule.
|
347 |
+
* Improvement - WPML compatibility for searching filters.
|
348 |
+
* Improvement - Validation fails for few cases.
|
349 |
+
* Improvement - Default value for option Apply cart discount as is changed to Coupon.
|
350 |
+
* Fix - Discount table for bundle product is not showing.
|
351 |
+
* Fix - Coupon discount values doesn't splits based on filters in backend.
|
352 |
+
* Fix - Exclude exclusive rule for free products.
|
353 |
+
* Fix - Same strikeout issue.
|
354 |
+
* Fix - You save price is displayed wrong while having tax in few cases.
|
355 |
+
* Fix - Unable to edit rule in mobile.
|
356 |
+
* Fix - The discount bar is not showing if variant is selected in filter.
|
357 |
+
* Fix - No coupon label for cart fixed discount.
|
358 |
+
|
359 |
= 2.3.7 - 30/04/21 =
|
360 |
* Improvement - Moved advance option tab to settings.
|
361 |
|
v2/App/Conditions/Base.php
CHANGED
@@ -346,6 +346,7 @@ abstract class Base
|
|
346 |
$product_variation = Woocommerce::getProduct(Woocommerce::getProductParentId($product));
|
347 |
foreach ($attrs as $taxonomy => $value) {
|
348 |
if ($value) {
|
|
|
349 |
$term_obj = get_term_by('slug', $value, $taxonomy);
|
350 |
if (!is_wp_error($term_obj) && $term_obj && $term_obj->name) {
|
351 |
$attr_ids = array_merge($attr_ids, (array)($term_obj->term_id));
|
@@ -406,7 +407,11 @@ abstract class Base
|
|
406 |
if(in_array($type, array_keys(Woocommerce::getCustomProductTaxonomies()))){
|
407 |
$product_parent = Woocommerce::getProductParentId($product_id);
|
408 |
$product_id = !empty($product_parent) ? $product_parent : $product_id;
|
409 |
-
|
|
|
|
|
|
|
|
|
410 |
$not_in_list_product = count(array_intersect($term_ids, $comparision_value)) > 0;
|
411 |
}
|
412 |
}
|
346 |
$product_variation = Woocommerce::getProduct(Woocommerce::getProductParentId($product));
|
347 |
foreach ($attrs as $taxonomy => $value) {
|
348 |
if ($value) {
|
349 |
+
$taxonomy = apply_filters('advanced_woo_discount_rules_attribute_slug', urldecode($taxonomy), $taxonomy, $value);
|
350 |
$term_obj = get_term_by('slug', $value, $taxonomy);
|
351 |
if (!is_wp_error($term_obj) && $term_obj && $term_obj->name) {
|
352 |
$attr_ids = array_merge($attr_ids, (array)($term_obj->term_id));
|
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 |
}
|
417 |
}
|
v2/App/Conditions/CartSubTotal.php
CHANGED
@@ -38,7 +38,8 @@ class CartSubTotal extends Base
|
|
38 |
}
|
39 |
$sub_total_recalculate = true;
|
40 |
}
|
41 |
-
if(!empty($cart) && $cart_sub_total == 0 && $sub_total_recalculate){
|
|
|
42 |
foreach ($cart as $cart_product){
|
43 |
$cart_sub_total += self::$woocommerce_helper->getCartLineItemSubtotal($cart_product);
|
44 |
}
|
38 |
}
|
39 |
$sub_total_recalculate = true;
|
40 |
}
|
41 |
+
if((!empty($cart) && $cart_sub_total == 0 && $sub_total_recalculate) || apply_filters('advanced_woo_discount_rules_recalculate_cart_subtotal_manually', false)){
|
42 |
+
$cart_sub_total = 0;
|
43 |
foreach ($cart as $cart_product){
|
44 |
$cart_sub_total += self::$woocommerce_helper->getCartLineItemSubtotal($cart_product);
|
45 |
}
|
v2/App/Controllers/Admin/Settings.php
CHANGED
@@ -175,21 +175,27 @@ class Settings extends Base
|
|
175 |
if ( !isset($_GET['page']) || $_GET['page'] != WDR_SLUG) {
|
176 |
return;
|
177 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
/**
|
179 |
*Enqueue css
|
180 |
*/
|
181 |
wp_enqueue_style(WDR_SLUG . '-datetimepickercss', WDR_PLUGIN_URL . 'Assets/Css/jquery.datetimepicker.min.css', array(), WDR_VERSION);
|
182 |
-
wp_enqueue_style(WDR_SLUG . '-admin', WDR_PLUGIN_URL . 'Assets/Css/admin_style.css', array(), WDR_VERSION);
|
183 |
wp_enqueue_style(WDR_SLUG . '-jquery-ui-css', WDR_PLUGIN_URL . 'Assets/Js/Jquery-ui/jquery-ui.min.css', array(), WDR_VERSION);
|
184 |
-
wp_enqueue_style(WDR_SLUG . '-dragable-ui-css', WDR_PLUGIN_URL . 'Assets/Css/dragtable.css', array(), WDR_VERSION);
|
185 |
/**
|
186 |
* Enqueue js
|
187 |
*/
|
188 |
if(apply_filters('advanced_woo_discount_rules_load_select_js', true)){
|
189 |
wp_enqueue_script('wdr-select2-js', self::$woocommerce_helper->getWooPluginUrl() . '/assets/js/select2/select2.full.min.js', array('jquery'), WDR_VERSION);
|
190 |
-
wp_enqueue_script(WDR_SLUG . '-rulebuilder', WDR_PLUGIN_URL . 'Assets/Js/rulebuilder.js', array('jquery', 'wdr-select2-js', WDR_SLUG . '-datetimepickerjs'), WDR_VERSION);
|
191 |
} else {
|
192 |
-
wp_enqueue_script(WDR_SLUG . '-rulebuilder', WDR_PLUGIN_URL . 'Assets/Js/rulebuilder.js', array('jquery', WDR_SLUG . '-datetimepickerjs'), WDR_VERSION);
|
193 |
}
|
194 |
if(version_compare(getAWDRWooVersion(), '3.2.0', '<')){
|
195 |
wp_enqueue_script('selectWoo', WDR_PLUGIN_URL . 'Assets/Js/selectWoo.full.min.js', array('jquery'), WDR_VERSION);
|
@@ -203,17 +209,17 @@ class Settings extends Base
|
|
203 |
wp_enqueue_script(WDR_SLUG . '-jquery-ui', WDR_PLUGIN_URL . 'Assets/Js/Jquery-ui/jquery-ui.min.js', array('jquery'), WDR_VERSION);
|
204 |
wp_enqueue_script(WDR_SLUG . '-datetimepickerjs', WDR_PLUGIN_URL . 'Assets/Js/jquery.datetimepicker.full.min.js', array('jquery'), WDR_VERSION);
|
205 |
wp_enqueue_script(WDR_SLUG . '-moment', WDR_PLUGIN_URL . 'Assets/Js/moment.min.js', array('jquery'), WDR_VERSION);
|
206 |
-
wp_register_script(WDR_SLUG . '-admin', WDR_PLUGIN_URL . 'Assets/Js/admin_script.js', array(), WDR_VERSION);
|
207 |
-
wp_register_script(WDR_SLUG . '-recipe', WDR_PLUGIN_URL . 'Assets/Js/awdr_recipe.js', array(), WDR_VERSION);
|
208 |
wp_enqueue_script(WDR_SLUG . '-admin');
|
209 |
wp_enqueue_script(WDR_SLUG . '-recipe');
|
210 |
-
wp_enqueue_script(WDR_SLUG . '-dragndraop-js', WDR_PLUGIN_URL . 'Assets/Js/jquery.dragtable.js', array(), WDR_VERSION);
|
211 |
|
212 |
if ( isset( $_REQUEST['tab'] ) AND $_REQUEST['tab'] == 'statistics' ) {
|
213 |
wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), WDR_VERSION );
|
214 |
|
215 |
wp_enqueue_script( WDR_SLUG.'-statistics',
|
216 |
-
WDR_PLUGIN_URL . 'Assets/Js/admin-statistics.js', array( 'jquery' ), WDR_VERSION );
|
217 |
}
|
218 |
$preloaded_lists = array(
|
219 |
'payment_methods' => $this->getPaymentMethod(),
|
@@ -226,7 +232,7 @@ class Settings extends Base
|
|
226 |
'banner_position' => $this->getBannerPosition(),
|
227 |
);
|
228 |
$localization_data = $this->getLocalizationData();
|
229 |
-
|
230 |
$wdr_data = array(
|
231 |
'labels' => array(
|
232 |
'select2_no_results' => __('no results', 'woo-discount-rules'),
|
@@ -243,10 +249,13 @@ class Settings extends Base
|
|
243 |
wp_localize_script(WDR_SLUG . '-admin', 'wdr_data', $wdr_data);
|
244 |
|
245 |
//Remove UI Date picker which making conflict in some websites
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
/**
|
175 |
if ( !isset($_GET['page']) || $_GET['page'] != WDR_SLUG) {
|
176 |
return;
|
177 |
}
|
178 |
+
$conig = new Configuration();
|
179 |
+
|
180 |
+
$minified_text = '';
|
181 |
+
$compress_css_and_js = $conig->getConfig('compress_css_and_js', 0);
|
182 |
+
if($compress_css_and_js) $minified_text = '.min';
|
183 |
+
|
184 |
/**
|
185 |
*Enqueue css
|
186 |
*/
|
187 |
wp_enqueue_style(WDR_SLUG . '-datetimepickercss', WDR_PLUGIN_URL . 'Assets/Css/jquery.datetimepicker.min.css', array(), WDR_VERSION);
|
188 |
+
wp_enqueue_style(WDR_SLUG . '-admin', WDR_PLUGIN_URL . 'Assets/Css/admin_style'.$minified_text.'.css', array(), WDR_VERSION);
|
189 |
wp_enqueue_style(WDR_SLUG . '-jquery-ui-css', WDR_PLUGIN_URL . 'Assets/Js/Jquery-ui/jquery-ui.min.css', array(), WDR_VERSION);
|
190 |
+
wp_enqueue_style(WDR_SLUG . '-dragable-ui-css', WDR_PLUGIN_URL . 'Assets/Css/dragtable'.$minified_text.'.css', array(), WDR_VERSION);
|
191 |
/**
|
192 |
* Enqueue js
|
193 |
*/
|
194 |
if(apply_filters('advanced_woo_discount_rules_load_select_js', true)){
|
195 |
wp_enqueue_script('wdr-select2-js', self::$woocommerce_helper->getWooPluginUrl() . '/assets/js/select2/select2.full.min.js', array('jquery'), WDR_VERSION);
|
196 |
+
wp_enqueue_script(WDR_SLUG . '-rulebuilder', WDR_PLUGIN_URL . 'Assets/Js/rulebuilder'.$minified_text.'.js', array('jquery', 'wdr-select2-js', WDR_SLUG . '-datetimepickerjs'), WDR_VERSION);
|
197 |
} else {
|
198 |
+
wp_enqueue_script(WDR_SLUG . '-rulebuilder', WDR_PLUGIN_URL . 'Assets/Js/rulebuilder'.$minified_text.'.js', array('jquery', WDR_SLUG . '-datetimepickerjs'), WDR_VERSION);
|
199 |
}
|
200 |
if(version_compare(getAWDRWooVersion(), '3.2.0', '<')){
|
201 |
wp_enqueue_script('selectWoo', WDR_PLUGIN_URL . 'Assets/Js/selectWoo.full.min.js', array('jquery'), WDR_VERSION);
|
209 |
wp_enqueue_script(WDR_SLUG . '-jquery-ui', WDR_PLUGIN_URL . 'Assets/Js/Jquery-ui/jquery-ui.min.js', array('jquery'), WDR_VERSION);
|
210 |
wp_enqueue_script(WDR_SLUG . '-datetimepickerjs', WDR_PLUGIN_URL . 'Assets/Js/jquery.datetimepicker.full.min.js', array('jquery'), WDR_VERSION);
|
211 |
wp_enqueue_script(WDR_SLUG . '-moment', WDR_PLUGIN_URL . 'Assets/Js/moment.min.js', array('jquery'), WDR_VERSION);
|
212 |
+
wp_register_script(WDR_SLUG . '-admin', WDR_PLUGIN_URL . 'Assets/Js/admin_script'.$minified_text.'.js', array(), WDR_VERSION);
|
213 |
+
wp_register_script(WDR_SLUG . '-recipe', WDR_PLUGIN_URL . 'Assets/Js/awdr_recipe'.$minified_text.'.js', array(), WDR_VERSION);
|
214 |
wp_enqueue_script(WDR_SLUG . '-admin');
|
215 |
wp_enqueue_script(WDR_SLUG . '-recipe');
|
216 |
+
wp_enqueue_script(WDR_SLUG . '-dragndraop-js', WDR_PLUGIN_URL . 'Assets/Js/jquery.dragtable'.$minified_text.'.js', array(), WDR_VERSION);
|
217 |
|
218 |
if ( isset( $_REQUEST['tab'] ) AND $_REQUEST['tab'] == 'statistics' ) {
|
219 |
wp_enqueue_script( 'google-charts-loader', 'https://www.gstatic.com/charts/loader.js', array(), WDR_VERSION );
|
220 |
|
221 |
wp_enqueue_script( WDR_SLUG.'-statistics',
|
222 |
+
WDR_PLUGIN_URL . 'Assets/Js/admin-statistics'.$minified_text.'.js', array( 'jquery' ), WDR_VERSION );
|
223 |
}
|
224 |
$preloaded_lists = array(
|
225 |
'payment_methods' => $this->getPaymentMethod(),
|
232 |
'banner_position' => $this->getBannerPosition(),
|
233 |
);
|
234 |
$localization_data = $this->getLocalizationData();
|
235 |
+
|
236 |
$wdr_data = array(
|
237 |
'labels' => array(
|
238 |
'select2_no_results' => __('no results', 'woo-discount-rules'),
|
249 |
wp_localize_script(WDR_SLUG . '-admin', 'wdr_data', $wdr_data);
|
250 |
|
251 |
//Remove UI Date picker which making conflict in some websites
|
252 |
+
if(apply_filters('advanced_woo_discount_rules_dequeue_jquery_ui_datepicker_script', true)){
|
253 |
+
wp_dequeue_script( 'jquery-ui-datepicker' );
|
254 |
+
wp_deregister_script( 'jquery-ui-datepicker' );
|
255 |
+
wp_dequeue_script( 'jquery-datetimepicker' );
|
256 |
+
wp_deregister_script( 'jquery-datetimepicker' );
|
257 |
+
}
|
258 |
+
|
259 |
}
|
260 |
|
261 |
/**
|
v2/App/Controllers/Admin/WDRAjax.php
CHANGED
@@ -41,6 +41,19 @@ class WDRAjax extends Base
|
|
41 |
);
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
/**
|
45 |
* Ajax Controller
|
46 |
*/
|
@@ -126,6 +139,8 @@ class WDRAjax extends Base
|
|
126 |
public function wdr_ajax_products()
|
127 |
{
|
128 |
Helper::validateRequest('wdr_ajax_select2');
|
|
|
|
|
129 |
$query = $this->input->post('query', '');
|
130 |
//to disable other search classes
|
131 |
remove_all_filters('woocommerce_data_stores');
|
@@ -151,12 +166,7 @@ class WDRAjax extends Base
|
|
151 |
$taxonomy = array('product_cat');
|
152 |
}
|
153 |
//For loading all language categories in select box.
|
154 |
-
|
155 |
-
if(!empty($sitepress)){
|
156 |
-
remove_filter( 'get_terms_args', array( $sitepress, 'get_terms_args_filter' ), 10 );
|
157 |
-
remove_filter( 'get_term', array( $sitepress, 'get_term_adjust_id' ), 1 );
|
158 |
-
remove_filter( 'terms_clauses', array( $sitepress, 'terms_clauses' ), 10 );
|
159 |
-
}
|
160 |
$query = $this->input->post('query', '');
|
161 |
$terms = get_terms(array('taxonomy' => $taxonomy, 'name__like' => $query, 'hide_empty' => false, 'number' => $this->search_result_limit));
|
162 |
|
@@ -193,6 +203,8 @@ class WDRAjax extends Base
|
|
193 |
public function wdr_ajax_product_tags()
|
194 |
{
|
195 |
Helper::validateRequest('wdr_ajax_select2');
|
|
|
|
|
196 |
$query = $this->input->post('query', '');
|
197 |
$terms = get_terms(array('taxonomy' => 'product_tag', 'name__like' => $query, 'hide_empty' => false, 'number' => $this->search_result_limit));
|
198 |
return array_map(function ($term) {
|
@@ -210,6 +222,8 @@ class WDRAjax extends Base
|
|
210 |
public function wdr_ajax_product_taxonomies()
|
211 |
{
|
212 |
Helper::validateRequest('wdr_ajax_select2');
|
|
|
|
|
213 |
$query = $this->input->post('query', '');
|
214 |
$taxonomy_name = $this->input->post('taxonomy', '');
|
215 |
$terms = get_terms(array('taxonomy' => $taxonomy_name,
|
@@ -240,6 +254,8 @@ class WDRAjax extends Base
|
|
240 |
public function wdr_ajax_product_sku()
|
241 |
{
|
242 |
Helper::validateRequest('wdr_ajax_select2');
|
|
|
|
|
243 |
global $wpdb;
|
244 |
$query = $this->input->post('query', '');
|
245 |
$query = Helper::filterSelect2SearchQuery($query);
|
@@ -277,7 +293,8 @@ class WDRAjax extends Base
|
|
277 |
public function wdr_ajax_product_attributes()
|
278 |
{
|
279 |
Helper::validateRequest('wdr_ajax_select2');
|
280 |
-
|
|
|
281 |
global $wc_product_attributes, $wpdb;
|
282 |
//return $wc_product_attributes;
|
283 |
$query = $this->input->post('query', '');
|
@@ -377,6 +394,8 @@ class WDRAjax extends Base
|
|
377 |
$save_config['licence_key'] = $this->input->post('licence_key', '');
|
378 |
$save_config['on_sale_badge_html'] = (isset($_POST['on_sale_badge_html'])) ? stripslashes($_POST['on_sale_badge_html']) : '';
|
379 |
$save_config['on_sale_badge_html'] = Rule::validateHtmlBeforeSave($_POST['on_sale_badge_html']);
|
|
|
|
|
380 |
$save_config['you_saved_text'] = Rule::validateHtmlBeforeSave($this->input->post('you_saved_text'));
|
381 |
$save_config['applied_rule_message'] = Rule::validateHtmlBeforeSave($this->input->post('applied_rule_message'));
|
382 |
$save_config['discount_label_for_combined_discounts'] = Rule::validateHtmlBeforeSave($this->input->post('discount_label_for_combined_discounts'));
|
41 |
);
|
42 |
}
|
43 |
|
44 |
+
/**
|
45 |
+
* only used for backend search results
|
46 |
+
* Dont use for front end
|
47 |
+
*/
|
48 |
+
private function load_all_wpml_products(){
|
49 |
+
global $sitepress;
|
50 |
+
if(!empty($sitepress)){
|
51 |
+
remove_filter( 'get_terms_args', array( $sitepress, 'get_terms_args_filter' ), 10 );
|
52 |
+
remove_filter( 'get_term', array( $sitepress, 'get_term_adjust_id' ), 1 );
|
53 |
+
remove_filter( 'terms_clauses', array( $sitepress, 'terms_clauses' ), 10 );
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
/**
|
58 |
* Ajax Controller
|
59 |
*/
|
139 |
public function wdr_ajax_products()
|
140 |
{
|
141 |
Helper::validateRequest('wdr_ajax_select2');
|
142 |
+
//For loading all language Product in select box.
|
143 |
+
$this->load_all_wpml_products();
|
144 |
$query = $this->input->post('query', '');
|
145 |
//to disable other search classes
|
146 |
remove_all_filters('woocommerce_data_stores');
|
166 |
$taxonomy = array('product_cat');
|
167 |
}
|
168 |
//For loading all language categories in select box.
|
169 |
+
$this->load_all_wpml_products();
|
|
|
|
|
|
|
|
|
|
|
170 |
$query = $this->input->post('query', '');
|
171 |
$terms = get_terms(array('taxonomy' => $taxonomy, 'name__like' => $query, 'hide_empty' => false, 'number' => $this->search_result_limit));
|
172 |
|
203 |
public function wdr_ajax_product_tags()
|
204 |
{
|
205 |
Helper::validateRequest('wdr_ajax_select2');
|
206 |
+
//For loading all language tags in select box.
|
207 |
+
$this->load_all_wpml_products();
|
208 |
$query = $this->input->post('query', '');
|
209 |
$terms = get_terms(array('taxonomy' => 'product_tag', 'name__like' => $query, 'hide_empty' => false, 'number' => $this->search_result_limit));
|
210 |
return array_map(function ($term) {
|
222 |
public function wdr_ajax_product_taxonomies()
|
223 |
{
|
224 |
Helper::validateRequest('wdr_ajax_select2');
|
225 |
+
//For loading all language taxonomies in select box.
|
226 |
+
$this->load_all_wpml_products();
|
227 |
$query = $this->input->post('query', '');
|
228 |
$taxonomy_name = $this->input->post('taxonomy', '');
|
229 |
$terms = get_terms(array('taxonomy' => $taxonomy_name,
|
254 |
public function wdr_ajax_product_sku()
|
255 |
{
|
256 |
Helper::validateRequest('wdr_ajax_select2');
|
257 |
+
//For loading all language sku in select box.
|
258 |
+
$this->load_all_wpml_products();
|
259 |
global $wpdb;
|
260 |
$query = $this->input->post('query', '');
|
261 |
$query = Helper::filterSelect2SearchQuery($query);
|
293 |
public function wdr_ajax_product_attributes()
|
294 |
{
|
295 |
Helper::validateRequest('wdr_ajax_select2');
|
296 |
+
//For loading all language attributes in select box.
|
297 |
+
$this->load_all_wpml_products();
|
298 |
global $wc_product_attributes, $wpdb;
|
299 |
//return $wc_product_attributes;
|
300 |
$query = $this->input->post('query', '');
|
394 |
$save_config['licence_key'] = $this->input->post('licence_key', '');
|
395 |
$save_config['on_sale_badge_html'] = (isset($_POST['on_sale_badge_html'])) ? stripslashes($_POST['on_sale_badge_html']) : '';
|
396 |
$save_config['on_sale_badge_html'] = Rule::validateHtmlBeforeSave($_POST['on_sale_badge_html']);
|
397 |
+
$save_config['on_sale_badge_percentage_html'] = (isset($_POST['on_sale_badge_percentage_html'])) ? stripslashes($_POST['on_sale_badge_percentage_html']) : '';
|
398 |
+
$save_config['on_sale_badge_percentage_html'] = Rule::validateHtmlBeforeSave($_POST['on_sale_badge_percentage_html']);
|
399 |
$save_config['you_saved_text'] = Rule::validateHtmlBeforeSave($this->input->post('you_saved_text'));
|
400 |
$save_config['applied_rule_message'] = Rule::validateHtmlBeforeSave($this->input->post('applied_rule_message'));
|
401 |
$save_config['discount_label_for_combined_discounts'] = Rule::validateHtmlBeforeSave($this->input->post('discount_label_for_combined_discounts'));
|
v2/App/Controllers/Configuration.php
CHANGED
@@ -30,7 +30,7 @@ class Configuration
|
|
30 |
'show_strikeout_on_cart' => 1,//1,0
|
31 |
'show_applied_rules_message_on_cart' => 0,//1,0
|
32 |
'free_shipping_title' => 'free shipping',
|
33 |
-
'apply_cart_discount_as' => '
|
34 |
'combine_all_cart_discounts' => 0,//0,1
|
35 |
'discount_label_for_combined_discounts' => 'Cart Discount',//show when "combine_all_cart_discounts" is 1
|
36 |
'applied_rule_message' => 'Discount <strong>{{title}}</strong> has been applied to your cart.',
|
@@ -43,6 +43,7 @@ class Configuration
|
|
43 |
'table_range_column' => 1,//0,1
|
44 |
'refresh_order_review' => 0,//1,0
|
45 |
'suppress_other_discount_plugins' => 0,//1,0
|
|
|
46 |
'show_sale_badge_only_on_condition_passed' => 0,//1,0
|
47 |
'position_to_show_bulk_table' => 'woocommerce_before_add_to_cart_form',//woocommerce_product_meta_end,woocommerce_product_meta_start,woocommerce_after_add_to_cart_form,woocommerce_before_add_to_cart_form,woocommerce_after_single_product,woocommerce_before_single_product,woocommerce_after_single_product_summary,woocommerce_before_single_product_summary
|
48 |
'position_to_show_discount_bar' => 'woocommerce_before_add_to_cart_form',//woocommerce_product_meta_end,woocommerce_product_meta_start,woocommerce_after_add_to_cart_form,woocommerce_before_add_to_cart_form,woocommerce_after_single_product,woocommerce_before_single_product,woocommerce_after_single_product_summary,woocommerce_before_single_product_summary
|
@@ -61,7 +62,9 @@ class Configuration
|
|
61 |
'disable_coupon_when_rule_applied' => 'run_both', //run_both, disable_coupon, disable_rules
|
62 |
'customize_on_sale_badge' => '',
|
63 |
'force_override_on_sale_badge' => '',
|
|
|
64 |
'on_sale_badge_html' => '<span class="onsale">Sale!</span>',
|
|
|
65 |
'licence_key' => '',
|
66 |
'show_subtotal_promotion' => 0,
|
67 |
'show_cart_quantity_promotion' => 0,
|
30 |
'show_strikeout_on_cart' => 1,//1,0
|
31 |
'show_applied_rules_message_on_cart' => 0,//1,0
|
32 |
'free_shipping_title' => 'free shipping',
|
33 |
+
'apply_cart_discount_as' => 'coupon',//coupon,fee
|
34 |
'combine_all_cart_discounts' => 0,//0,1
|
35 |
'discount_label_for_combined_discounts' => 'Cart Discount',//show when "combine_all_cart_discounts" is 1
|
36 |
'applied_rule_message' => 'Discount <strong>{{title}}</strong> has been applied to your cart.',
|
43 |
'table_range_column' => 1,//0,1
|
44 |
'refresh_order_review' => 0,//1,0
|
45 |
'suppress_other_discount_plugins' => 0,//1,0
|
46 |
+
'compress_css_and_js' => 0,//1,0
|
47 |
'show_sale_badge_only_on_condition_passed' => 0,//1,0
|
48 |
'position_to_show_bulk_table' => 'woocommerce_before_add_to_cart_form',//woocommerce_product_meta_end,woocommerce_product_meta_start,woocommerce_after_add_to_cart_form,woocommerce_before_add_to_cart_form,woocommerce_after_single_product,woocommerce_before_single_product,woocommerce_after_single_product_summary,woocommerce_before_single_product_summary
|
49 |
'position_to_show_discount_bar' => 'woocommerce_before_add_to_cart_form',//woocommerce_product_meta_end,woocommerce_product_meta_start,woocommerce_after_add_to_cart_form,woocommerce_before_add_to_cart_form,woocommerce_after_single_product,woocommerce_before_single_product,woocommerce_after_single_product_summary,woocommerce_before_single_product_summary
|
62 |
'disable_coupon_when_rule_applied' => 'run_both', //run_both, disable_coupon, disable_rules
|
63 |
'customize_on_sale_badge' => '',
|
64 |
'force_override_on_sale_badge' => '',
|
65 |
+
'display_percentage_on_sale_badge' => '',
|
66 |
'on_sale_badge_html' => '<span class="onsale">Sale!</span>',
|
67 |
+
'on_sale_badge_percentage_html' => '<span class="onsale">{{percentage}}%</span>',
|
68 |
'licence_key' => '',
|
69 |
'show_subtotal_promotion' => 0,
|
70 |
'show_cart_quantity_promotion' => 0,
|
v2/App/Controllers/DiscountCalculator.php
CHANGED
@@ -462,42 +462,43 @@ class DiscountCalculator extends Base
|
|
462 |
} else {
|
463 |
$product_price = $custom_price;
|
464 |
}
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
|
|
|
|
|
|
469 |
$rule_passed = true;
|
470 |
}
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
|
|
|
|
|
|
481 |
} else {
|
482 |
$rule_passed = apply_filters('advanced_woo_discount_rules_is_rule_passed_with_out_discount_for_exclusive_rule', false, $product, $rule, $cart_item);
|
483 |
if($rule_passed){
|
484 |
$has_exclusive_rule = true;
|
485 |
}
|
486 |
}
|
487 |
-
} else {
|
488 |
-
$rule_passed = apply_filters('advanced_woo_discount_rules_is_rule_passed_with_out_discount_for_exclusive_rule', false, $product, $rule, $cart_item);
|
489 |
-
if($rule_passed){
|
490 |
-
$has_exclusive_rule = true;
|
491 |
-
}
|
492 |
}
|
493 |
}
|
494 |
-
}
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
}
|
502 |
}
|
503 |
}
|
@@ -547,7 +548,7 @@ class DiscountCalculator extends Base
|
|
547 |
|
548 |
$original_product_price = apply_filters('advanced_woo_discount_rules_product_original_price_on_before_calculate_discount', $product_price, $product, $quantity, $cart_item, $calculate_discount_from);
|
549 |
$calculate_from_price = $product_price = apply_filters('advanced_woo_discount_rules_product_price_on_before_calculate_discount', $product_price, $product, $quantity, $cart_item, $calculate_discount_from);
|
550 |
-
|
551 |
$exclusive_rules = $discounts = $exclude_products = array();
|
552 |
$cart = self::$woocommerce_helper->getCart();
|
553 |
$product_id = self::$woocommerce_helper->getProductId($product);
|
@@ -810,12 +811,16 @@ class DiscountCalculator extends Base
|
|
810 |
'initial_price' => $product_price,
|
811 |
'discounted_price' => $discounted_price,
|
812 |
'initial_price_with_tax' => $this->mayHaveTax($product, $product_price),
|
813 |
-
'discounted_price_with_tax' => $this->mayHaveTax($product, $discounted_price),
|
814 |
'total_discount_details' => self::$total_discounts,
|
815 |
'cart_discount_details' => $this->getCartDiscountPrices($cart, true),
|
816 |
'apply_as_cart_rule' => $show_stike_out_depends_cart_rule,
|
817 |
'discount_lines' => $discount_values['discount_lines'],
|
818 |
);
|
|
|
|
|
|
|
|
|
819 |
return apply_filters('advanced_woo_discount_rules_discount_prices_of_product', $discount_prices, $product, $quantity, $cart_item);
|
820 |
}
|
821 |
return false;
|
@@ -873,7 +878,14 @@ class DiscountCalculator extends Base
|
|
873 |
$current_product_price = $discount_lines['non_applied']['calculate_discount_from'];
|
874 |
$available_qty = $discount_lines['non_applied']['quantity'];
|
875 |
$discount_lines['non_applied']['quantity'] = $available_qty - $discount_qty;
|
876 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
if($apply_subsequently === true) $current_product_price = $current_product_price - $current_discount_amount;
|
878 |
$remaining_qty -= $discount_qty;
|
879 |
$applied_qty += $discount_qty;
|
@@ -899,6 +911,7 @@ class DiscountCalculator extends Base
|
|
899 |
$applied_qty += $available_qty;
|
900 |
$discount_lines['non_applied']['quantity'] = $available_qty - $discount_qty;
|
901 |
$current_discount_amount = $rule->calculator($price_discount['discount_type'], $current_product_price, $price_discount['discount_value']);
|
|
|
902 |
$discount_lines[$key_f]['discount'] = $discount_lines[$key_f]['discount']+$current_discount_amount;
|
903 |
$discount_lines[$key_f]['discounted_price'] = $product_price - $discount_lines[$key_f]['discount'];
|
904 |
}
|
@@ -909,6 +922,7 @@ class DiscountCalculator extends Base
|
|
909 |
$current_product_price = $discount_lines['non_applied']['calculate_discount_from'];
|
910 |
$discount_lines['non_applied']['quantity'] = $available_qty - $remaining_qty;
|
911 |
$current_discount_amount = $rule->calculator($price_discount['discount_type'], $current_product_price, $price_discount['discount_value']);
|
|
|
912 |
if($apply_subsequently === true) $current_product_price = $current_product_price - $current_discount_amount;
|
913 |
$discount_lines[] = array('quantity' => $remaining_qty, 'discount' => $current_discount_amount, 'original_price' => $product_price, 'discounted_price' => ($product_price-$current_discount_amount));
|
914 |
$remaining_qty -= $remaining_qty;
|
462 |
} else {
|
463 |
$product_price = $custom_price;
|
464 |
}
|
465 |
+
if(apply_filters('advanced_woo_discount_rules_calculate_discount_for_cart_item', true, $cart_item)){
|
466 |
+
if ($rule->isFilterPassed($product) || $rule->rule->discount_type == 'wdr_free_shipping') {
|
467 |
+
if ($rule->hasConditions()) {
|
468 |
+
if ($rule->isCartConditionsPassed($cart)) {
|
469 |
+
$rule_passed = true;
|
470 |
+
}
|
471 |
+
} else {
|
472 |
$rule_passed = true;
|
473 |
}
|
474 |
+
if($rule_passed){
|
475 |
+
if($rule->rule->discount_type == 'wdr_free_shipping'){
|
476 |
+
$has_exclusive_rule = true;
|
477 |
+
} else {
|
478 |
+
if(!in_array($rule->rule->discount_type, array('wdr_buy_x_get_x_discount', 'wdr_set_discount'))){
|
479 |
+
if ($discounted_price = $rule->calculateDiscount($product_price, $quantity, $product, $ajax_price, $cart_item, $price_display_condition, $is_cart, $manual_request)) {
|
480 |
+
$has_exclusive_rule = true;
|
481 |
+
} else {
|
482 |
+
$rule_passed = apply_filters('advanced_woo_discount_rules_is_rule_passed_with_out_discount_for_exclusive_rule', false, $product, $rule, $cart_item);
|
483 |
+
if($rule_passed){
|
484 |
+
$has_exclusive_rule = true;
|
485 |
+
}
|
486 |
+
}
|
487 |
} else {
|
488 |
$rule_passed = apply_filters('advanced_woo_discount_rules_is_rule_passed_with_out_discount_for_exclusive_rule', false, $product, $rule, $cart_item);
|
489 |
if($rule_passed){
|
490 |
$has_exclusive_rule = true;
|
491 |
}
|
492 |
}
|
|
|
|
|
|
|
|
|
|
|
493 |
}
|
494 |
}
|
495 |
+
} else {
|
496 |
+
$process_discount = apply_filters('advanced_woo_discount_rules_process_discount_for_product_which_do_not_matched_filters', false, $product, $rule, $cart_item);
|
497 |
+
if($process_discount){
|
498 |
+
$discounted_price = $rule->calculateDiscount($product_price, $quantity, $product, $ajax_price, $cart_item, $price_display_condition, $is_cart);
|
499 |
+
if($discounted_price > 0){
|
500 |
+
$has_exclusive_rule = true;
|
501 |
+
}
|
502 |
}
|
503 |
}
|
504 |
}
|
548 |
|
549 |
$original_product_price = apply_filters('advanced_woo_discount_rules_product_original_price_on_before_calculate_discount', $product_price, $product, $quantity, $cart_item, $calculate_discount_from);
|
550 |
$calculate_from_price = $product_price = apply_filters('advanced_woo_discount_rules_product_price_on_before_calculate_discount', $product_price, $product, $quantity, $cart_item, $calculate_discount_from);
|
551 |
+
$product_price = ( $product_price == '' ) ? 0 : $product_price; //Fix - if product price is empty string
|
552 |
$exclusive_rules = $discounts = $exclude_products = array();
|
553 |
$cart = self::$woocommerce_helper->getCart();
|
554 |
$product_id = self::$woocommerce_helper->getProductId($product);
|
811 |
'initial_price' => $product_price,
|
812 |
'discounted_price' => $discounted_price,
|
813 |
'initial_price_with_tax' => $this->mayHaveTax($product, $product_price),
|
814 |
+
'discounted_price_with_tax' => $this->mayHaveTax($product, $discounted_price , (isset($cart_item['quantity']))? $cart_item['quantity']: 1),
|
815 |
'total_discount_details' => self::$total_discounts,
|
816 |
'cart_discount_details' => $this->getCartDiscountPrices($cart, true),
|
817 |
'apply_as_cart_rule' => $show_stike_out_depends_cart_rule,
|
818 |
'discount_lines' => $discount_values['discount_lines'],
|
819 |
);
|
820 |
+
//From v2.3.8 fix for you save text tax calculation
|
821 |
+
if(isset($cart_item['quantity']) && $cart_item['quantity'] > 1){
|
822 |
+
$discount_prices['discounted_price_with_tax'] = $discount_prices['discounted_price_with_tax']/$cart_item['quantity'];
|
823 |
+
}
|
824 |
return apply_filters('advanced_woo_discount_rules_discount_prices_of_product', $discount_prices, $product, $quantity, $cart_item);
|
825 |
}
|
826 |
return false;
|
878 |
$current_product_price = $discount_lines['non_applied']['calculate_discount_from'];
|
879 |
$available_qty = $discount_lines['non_applied']['quantity'];
|
880 |
$discount_lines['non_applied']['quantity'] = $available_qty - $discount_qty;
|
881 |
+
if($price_discount['discount_type'] == 'fixed_set_price'){
|
882 |
+
$discounted_price = isset($price_discount['discounted_price']) ? $price_discount['discounted_price'] : 0;
|
883 |
+
$original_price = isset($price_discount['original_price']) ? $price_discount['original_price'] : 0;
|
884 |
+
$current_discount_amount = $original_price - $discounted_price;
|
885 |
+
} else {
|
886 |
+
$current_discount_amount = $rule->calculator($price_discount['discount_type'], $current_product_price, $price_discount['discount_value']);
|
887 |
+
}
|
888 |
+
$current_discount_amount = apply_filters('advanced_woo_discount_rules_calculate_current_discount_amount', $current_discount_amount, $price_discount);
|
889 |
if($apply_subsequently === true) $current_product_price = $current_product_price - $current_discount_amount;
|
890 |
$remaining_qty -= $discount_qty;
|
891 |
$applied_qty += $discount_qty;
|
911 |
$applied_qty += $available_qty;
|
912 |
$discount_lines['non_applied']['quantity'] = $available_qty - $discount_qty;
|
913 |
$current_discount_amount = $rule->calculator($price_discount['discount_type'], $current_product_price, $price_discount['discount_value']);
|
914 |
+
$current_discount_amount = apply_filters('advanced_woo_discount_rules_calculate_current_discount_amount', $current_discount_amount, $price_discount);
|
915 |
$discount_lines[$key_f]['discount'] = $discount_lines[$key_f]['discount']+$current_discount_amount;
|
916 |
$discount_lines[$key_f]['discounted_price'] = $product_price - $discount_lines[$key_f]['discount'];
|
917 |
}
|
922 |
$current_product_price = $discount_lines['non_applied']['calculate_discount_from'];
|
923 |
$discount_lines['non_applied']['quantity'] = $available_qty - $remaining_qty;
|
924 |
$current_discount_amount = $rule->calculator($price_discount['discount_type'], $current_product_price, $price_discount['discount_value']);
|
925 |
+
$current_discount_amount = apply_filters('advanced_woo_discount_rules_calculate_current_discount_amount', $current_discount_amount, $price_discount);
|
926 |
if($apply_subsequently === true) $current_product_price = $current_product_price - $current_discount_amount;
|
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;
|
v2/App/Controllers/ManageDiscount.php
CHANGED
@@ -45,8 +45,11 @@ class ManageDiscount extends Base
|
|
45 |
{
|
46 |
$bulk_table_on_off = self::$config->getConfig('show_bulk_table', 0);
|
47 |
$ajax_update_price = self::$config->getConfig('show_strikeout_when', 'show_when_matched');
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
50 |
$awdr_front_end_script = array(
|
51 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
52 |
'nonce' => Helper::create_nonce('awdr_ajax_front_end'),
|
@@ -61,7 +64,7 @@ class ManageDiscount extends Base
|
|
61 |
'custom_simple_product_id_selector' => apply_filters('advanced_woo_discount_rules_custom_simple_product_id_selector', ""),
|
62 |
'custom_variable_product_id_selector' => apply_filters('advanced_woo_discount_rules_custom_variable_product_id_selector', ""),
|
63 |
);
|
64 |
-
wp_enqueue_script('awdr-dynamic-price', WDR_PLUGIN_URL . 'Assets/Js/awdr-dynamic-price.js', array('jquery'), WDR_VERSION);
|
65 |
wp_localize_script('awdr-main', 'awdr_params', $awdr_front_end_script);
|
66 |
}
|
67 |
|
@@ -129,6 +132,30 @@ class ManageDiscount extends Base
|
|
129 |
$use_sale_badge_customize = apply_filters('advanced_woo_discount_rules_use_sale_badge_customization', false, $post, $_product);
|
130 |
$product_id = Woocommerce::getProductId($_product);
|
131 |
if(self::isProductOnSale($product_id) || $use_sale_badge_customize){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
$on_sale_badge_html = self::$config->getConfig('on_sale_badge_html', '<span class="onsale">Sale!</span>');
|
133 |
$translate = __('<span class="onsale">Sale!</span>', 'woo-discount-rules');
|
134 |
$on_sale_badge_html = Helper::getCleanHtml($on_sale_badge_html);
|
@@ -510,6 +537,7 @@ class ManageDiscount extends Base
|
|
510 |
|
511 |
if($initial_price_html){
|
512 |
$initial_price_html = preg_replace('/<del>.*<\/del>/', '', $initial_price_html);
|
|
|
513 |
$html = '<del>' . $initial_price_html . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
514 |
}else{
|
515 |
$html = '<del>' . $original_price . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
@@ -654,7 +682,7 @@ class ManageDiscount extends Base
|
|
654 |
*/
|
655 |
function applyCartDiscount($cart)
|
656 |
{
|
657 |
-
$discount_apply_type = self::$config->getConfig('apply_cart_discount_as', '
|
658 |
if($discount_apply_type == "fee"){
|
659 |
$combine_all_discounts = self::$config->getConfig('combine_all_cart_discounts', 0);
|
660 |
$total_combined_discounts = 0;
|
@@ -845,7 +873,7 @@ class ManageDiscount extends Base
|
|
845 |
* Apply dynamic coupon for cart rules
|
846 |
* */
|
847 |
function applyVirtualCouponForCartRules(){
|
848 |
-
$discount_apply_type = self::$config->getConfig('apply_cart_discount_as', '
|
849 |
if($discount_apply_type == "coupon"){
|
850 |
remove_action('woocommerce_after_calculate_totals', array($this, 'applyVirtualCouponForCartRules'), 10);
|
851 |
$combine_all_discounts = self::$config->getConfig('combine_all_cart_discounts', 0);
|
@@ -870,6 +898,8 @@ class ManageDiscount extends Base
|
|
870 |
$flat_in_subtotal[$rule_id]['value'] = $detail['discounted_price'];
|
871 |
$flat_in_subtotal[$rule_id]['label'] = $detail['discount_label'];
|
872 |
$flat_in_subtotal[$rule_id]['cart_item_keys'][] = $detail['cart_item_key'];
|
|
|
|
|
873 |
}
|
874 |
}else{
|
875 |
$discount_value += $detail['discounted_price'];
|
@@ -993,14 +1023,14 @@ class ManageDiscount extends Base
|
|
993 |
function validateVirtualCouponForCartRules($response, $coupon_data)
|
994 |
{
|
995 |
if($coupon_data !== false && $coupon_data !== 0){
|
996 |
-
$discount_apply_type = self::$config->getConfig('apply_cart_discount_as', '
|
997 |
if($discount_apply_type == "coupon"){
|
998 |
if(empty(self::$apply_as_coupon_values)){
|
999 |
remove_filter('woocommerce_get_shop_coupon_data', array($this, 'validateVirtualCouponForCartRules'), 10);
|
1000 |
$this->applyVirtualCouponForCartRules();
|
1001 |
add_filter('woocommerce_get_shop_coupon_data', array($this, 'validateVirtualCouponForCartRules'), 10, 2);
|
1002 |
}
|
1003 |
-
|
1004 |
if(!empty(self::$apply_as_coupon_values)){
|
1005 |
if(array_key_exists($coupon_data, self::$apply_as_coupon_values)){
|
1006 |
$coupon_code = $coupon_data;
|
@@ -2404,7 +2434,9 @@ class ManageDiscount extends Base
|
|
2404 |
* Display promotional messages
|
2405 |
* */
|
2406 |
public function displayPromotionMessages(){
|
|
|
2407 |
$messages = Helper::getPromotionMessages();
|
|
|
2408 |
if(!empty($messages) && is_array($messages)) {
|
2409 |
foreach ($messages as $message) {
|
2410 |
wc_print_notice($message, "notice");
|
45 |
{
|
46 |
$bulk_table_on_off = self::$config->getConfig('show_bulk_table', 0);
|
47 |
$ajax_update_price = self::$config->getConfig('show_strikeout_when', 'show_when_matched');
|
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 |
'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 |
|
132 |
$use_sale_badge_customize = apply_filters('advanced_woo_discount_rules_use_sale_badge_customization', false, $post, $_product);
|
133 |
$product_id = Woocommerce::getProductId($_product);
|
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);
|
140 |
+
} else {
|
141 |
+
$product_price = Woocommerce::getProductPrice($_product);
|
142 |
+
}
|
143 |
+
$discounted_price = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', $product_price, $_product, 1, $product_price, 'discounted_price', true, false);
|
144 |
+
if($discounted_price !== false){
|
145 |
+
$percentage_value = (( $product_price - $discounted_price ) / $product_price) * 100;
|
146 |
+
$percentage = apply_filters('advanced_woo_discount_rules_percentage_value_on_sale_badge', round($percentage_value, 2), $percentage_value, $_product);
|
147 |
+
$discount_value_to_display = Woocommerce::formatPrice(($product_price - $discounted_price));
|
148 |
+
$on_sale_badge_percentage_html = self::$config->getConfig('on_sale_badge_percentage_html', '<span class="onsale">{{percentage}}%</span>');
|
149 |
+
$translate = __('<span class="onsale">{{percentage}}%</span>', 'woo-discount-rules');
|
150 |
+
$on_sale_badge_percentage_html = Helper::getCleanHtml($on_sale_badge_percentage_html);
|
151 |
+
$html = __($on_sale_badge_percentage_html, 'woo-discount-rules');
|
152 |
+
$html = str_replace('{{percentage}}', $percentage, $html);
|
153 |
+
$html = str_replace('{{discount_value}}', $discount_value_to_display, $html);
|
154 |
+
$html = apply_filters('advanced_woo_discount_rules_on_sale_badge_html', $html, $post, $_product);
|
155 |
+
|
156 |
+
return $html;
|
157 |
+
}
|
158 |
+
}
|
159 |
$on_sale_badge_html = self::$config->getConfig('on_sale_badge_html', '<span class="onsale">Sale!</span>');
|
160 |
$translate = __('<span class="onsale">Sale!</span>', 'woo-discount-rules');
|
161 |
$on_sale_badge_html = Helper::getCleanHtml($on_sale_badge_html);
|
537 |
|
538 |
if($initial_price_html){
|
539 |
$initial_price_html = preg_replace('/<del>.*<\/del>/', '', $initial_price_html);
|
540 |
+
$initial_price_html = preg_replace('/<del aria-hidden="true">.*<\/del>/', '', $initial_price_html);
|
541 |
$html = '<del>' . $initial_price_html . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
542 |
}else{
|
543 |
$html = '<del>' . $original_price . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
682 |
*/
|
683 |
function applyCartDiscount($cart)
|
684 |
{
|
685 |
+
$discount_apply_type = self::$config->getConfig('apply_cart_discount_as', 'coupon');
|
686 |
if($discount_apply_type == "fee"){
|
687 |
$combine_all_discounts = self::$config->getConfig('combine_all_cart_discounts', 0);
|
688 |
$total_combined_discounts = 0;
|
873 |
* Apply dynamic coupon for cart rules
|
874 |
* */
|
875 |
function applyVirtualCouponForCartRules(){
|
876 |
+
$discount_apply_type = self::$config->getConfig('apply_cart_discount_as', 'coupon');
|
877 |
if($discount_apply_type == "coupon"){
|
878 |
remove_action('woocommerce_after_calculate_totals', array($this, 'applyVirtualCouponForCartRules'), 10);
|
879 |
$combine_all_discounts = self::$config->getConfig('combine_all_cart_discounts', 0);
|
898 |
$flat_in_subtotal[$rule_id]['value'] = $detail['discounted_price'];
|
899 |
$flat_in_subtotal[$rule_id]['label'] = $detail['discount_label'];
|
900 |
$flat_in_subtotal[$rule_id]['cart_item_keys'][] = $detail['cart_item_key'];
|
901 |
+
} else {
|
902 |
+
$flat_in_subtotal[$rule_id]['cart_item_keys'][] = $detail['cart_item_key'];
|
903 |
}
|
904 |
}else{
|
905 |
$discount_value += $detail['discounted_price'];
|
1023 |
function validateVirtualCouponForCartRules($response, $coupon_data)
|
1024 |
{
|
1025 |
if($coupon_data !== false && $coupon_data !== 0){
|
1026 |
+
$discount_apply_type = self::$config->getConfig('apply_cart_discount_as', 'coupon');
|
1027 |
if($discount_apply_type == "coupon"){
|
1028 |
if(empty(self::$apply_as_coupon_values)){
|
1029 |
remove_filter('woocommerce_get_shop_coupon_data', array($this, 'validateVirtualCouponForCartRules'), 10);
|
1030 |
$this->applyVirtualCouponForCartRules();
|
1031 |
add_filter('woocommerce_get_shop_coupon_data', array($this, 'validateVirtualCouponForCartRules'), 10, 2);
|
1032 |
}
|
1033 |
+
$product_ids = array();
|
1034 |
if(!empty(self::$apply_as_coupon_values)){
|
1035 |
if(array_key_exists($coupon_data, self::$apply_as_coupon_values)){
|
1036 |
$coupon_code = $coupon_data;
|
2434 |
* Display promotional messages
|
2435 |
* */
|
2436 |
public function displayPromotionMessages(){
|
2437 |
+
$cart = Woocommerce::getCart();
|
2438 |
$messages = Helper::getPromotionMessages();
|
2439 |
+
$messages = empty($cart) ? '' : $messages;
|
2440 |
if(!empty($messages) && is_array($messages)) {
|
2441 |
foreach ($messages as $message) {
|
2442 |
wc_print_notice($message, "notice");
|
v2/App/Helpers/Filter.php
CHANGED
@@ -88,11 +88,11 @@ class Filter
|
|
88 |
}
|
89 |
$processing_result = $this->compareWithProducts($values, $method, $product_id, $product);
|
90 |
} elseif ('product_category' === $type) {
|
91 |
-
$
|
92 |
-
$processing_result = $this->compareWithCategories($
|
93 |
} elseif ('product_tags' === $type) {
|
94 |
-
$
|
95 |
-
$processing_result = $this->compareWithTags($
|
96 |
} elseif ('product_attributes' === $type) {
|
97 |
//$product = Woocommerce::getParentProduct($product);
|
98 |
if($product_table === true && Woocommerce::productTypeIs($product, array('variable', 'variable-subscription'))){
|
@@ -142,7 +142,13 @@ class Filter
|
|
142 |
{
|
143 |
$product_parent = Woocommerce::getProductParentId($product_id);
|
144 |
$product_id = !empty($product_parent) ? $product_parent : $product_id;
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
$is_product_has_term = count(array_intersect($term_ids, $operation_values)) > 0;
|
147 |
if ('in_list' === $operation_method) {
|
148 |
return $is_product_has_term;
|
@@ -163,14 +169,38 @@ class Filter
|
|
163 |
protected function compareWithSku($product, $operation_values, $operation_method, $sale_badge=false)
|
164 |
{
|
165 |
$result = false;
|
166 |
-
$
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
$
|
171 |
-
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
return $result;
|
175 |
}
|
176 |
|
88 |
}
|
89 |
$processing_result = $this->compareWithProducts($values, $method, $product_id, $product);
|
90 |
} elseif ('product_category' === $type) {
|
91 |
+
$processed_product = Woocommerce::getParentProduct($product);
|
92 |
+
$processing_result = $this->compareWithCategories($processed_product, $values, $method);
|
93 |
} elseif ('product_tags' === $type) {
|
94 |
+
$processed_product = Woocommerce::getParentProduct($product);
|
95 |
+
$processing_result = $this->compareWithTags($processed_product, $values, $method);
|
96 |
} elseif ('product_attributes' === $type) {
|
97 |
//$product = Woocommerce::getParentProduct($product);
|
98 |
if($product_table === true && Woocommerce::productTypeIs($product, array('variable', 'variable-subscription'))){
|
142 |
{
|
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;
|
153 |
if ('in_list' === $operation_method) {
|
154 |
return $is_product_has_term;
|
169 |
protected function compareWithSku($product, $operation_values, $operation_method, $sale_badge=false)
|
170 |
{
|
171 |
$result = false;
|
172 |
+
$parent_id = Woocommerce::getProductParentId($product);
|
173 |
+
|
174 |
+
//Fix - Discount bar is not showing if select particular variant in filter
|
175 |
+
if($sale_badge ){
|
176 |
+
$available_variations = Woocommerce::availableProductVariations($product);
|
177 |
+
if(!empty($available_variations)){
|
178 |
+
foreach($available_variations as $variation_values ){
|
179 |
+
$variation_id = isset($variation_values['variation_id']) ? $variation_values['variation_id'] : 0;
|
180 |
+
if(!empty($variation_id)){
|
181 |
+
$product_variation = Woocommerce::getProduct($variation_id);
|
182 |
+
$product_sku = Woocommerce::getProductSku($product_variation);
|
183 |
+
$result = $this->checkInList($product_sku, $operation_method, $operation_values);
|
184 |
+
if($result){
|
185 |
+
return true;
|
186 |
+
}
|
187 |
+
}
|
188 |
+
}
|
189 |
+
}
|
190 |
}
|
191 |
+
|
192 |
+
//Fix - If select parant sku (variable products)
|
193 |
+
if(!empty($parent_id)){
|
194 |
+
$parent_product = Woocommerce::getProduct($parent_id);
|
195 |
+
$parant_product_sku = Woocommerce::getProductSku($parent_product);
|
196 |
+
$result = $this->checkInList($parant_product_sku, $operation_method, $operation_values);
|
197 |
+
if($result){
|
198 |
+
return $result;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
+
$product_sku = apply_filters('advanced_woo_discount_rules_check_sku_filter', Woocommerce::getProductSku($product), $product, $operation_values, $operation_method, $sale_badge);
|
203 |
+
$result = $this->checkInList($product_sku, $operation_method, $operation_values);
|
204 |
return $result;
|
205 |
}
|
206 |
|
v2/App/Helpers/Helper.php
CHANGED
@@ -332,9 +332,9 @@ class Helper
|
|
332 |
|
333 |
public static function displayCompatibleCheckMessages()
|
334 |
{
|
335 |
-
if (version_compare(WDR_VERSION, '2.3.
|
336 |
if (defined('WDR_PRO_VERSION')) {
|
337 |
-
if (version_compare(WDR_PRO_VERSION, '2.3.
|
338 |
$url = admin_url() . "plugins.php";
|
339 |
$plugin_page = '<a target="_blank" href="' . $url . '">' . __('Update now', 'woo-discount-rules') . '</a>';
|
340 |
?>
|
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 |
?>
|
v2/App/Helpers/Rule.php
CHANGED
@@ -1224,13 +1224,14 @@ class Rule
|
|
1224 |
if (empty($product_price)) {
|
1225 |
return $discounts;
|
1226 |
}
|
|
|
1227 |
if ($adjustment = $this->getCartAdjustments()) {
|
1228 |
if (!empty($adjustment)) {
|
1229 |
$type = isset($adjustment->type) ? $adjustment->type : 'flat';
|
1230 |
$value = isset($adjustment->value) ? $adjustment->value : 0;
|
1231 |
if (in_array($type, array('flat', 'percentage'))) {
|
1232 |
if (!empty($value)) {
|
1233 |
-
$label = isset($adjustment->label) ? $adjustment->label : __(
|
1234 |
$discounts[] = array(
|
1235 |
'free_shipping' => 0,
|
1236 |
'discount' => $value,
|
@@ -1241,7 +1242,7 @@ class Rule
|
|
1241 |
}
|
1242 |
} elseif($type == 'flat_in_subtotal'){
|
1243 |
if (!empty($value)) {
|
1244 |
-
$label = isset($adjustment->label) ? $adjustment->label : __(
|
1245 |
$discounts[] = array(
|
1246 |
'free_shipping' => 0,
|
1247 |
'discount' => $value,
|
1224 |
if (empty($product_price)) {
|
1225 |
return $discounts;
|
1226 |
}
|
1227 |
+
$rule_title = is_null($this->getTitle()) ? __('Discount', 'woo-discount-rules') : __($this->getTitle(), 'woo-discount-rules');
|
1228 |
if ($adjustment = $this->getCartAdjustments()) {
|
1229 |
if (!empty($adjustment)) {
|
1230 |
$type = isset($adjustment->type) ? $adjustment->type : 'flat';
|
1231 |
$value = isset($adjustment->value) ? $adjustment->value : 0;
|
1232 |
if (in_array($type, array('flat', 'percentage'))) {
|
1233 |
if (!empty($value)) {
|
1234 |
+
$label = (isset($adjustment->label) && !empty($adjustment->label)) ? $adjustment->label : __($rule_title, 'woo-discount-rules');
|
1235 |
$discounts[] = array(
|
1236 |
'free_shipping' => 0,
|
1237 |
'discount' => $value,
|
1242 |
}
|
1243 |
} elseif($type == 'flat_in_subtotal'){
|
1244 |
if (!empty($value)) {
|
1245 |
+
$label = (isset($adjustment->label) && !empty($adjustment->label)) ? $adjustment->label : __($rule_title, 'woo-discount-rules');
|
1246 |
$discounts[] = array(
|
1247 |
'free_shipping' => 0,
|
1248 |
'discount' => $value,
|
v2/App/Helpers/Validation.php
CHANGED
@@ -365,6 +365,7 @@ class Validation
|
|
365 |
$settings_fields_validator->rule('basicTags',
|
366 |
array(
|
367 |
'on_sale_badge_html',
|
|
|
368 |
'applied_rule_message',
|
369 |
)
|
370 |
);
|
@@ -385,8 +386,10 @@ class Validation
|
|
385 |
'apply_discount_subsequently',
|
386 |
'refresh_order_review',
|
387 |
'suppress_other_discount_plugins',
|
|
|
388 |
'customize_on_sale_badge',
|
389 |
'force_override_on_sale_badge',
|
|
|
390 |
'show_bulk_table',
|
391 |
'table_column_header',
|
392 |
'table_title_column',
|
365 |
$settings_fields_validator->rule('basicTags',
|
366 |
array(
|
367 |
'on_sale_badge_html',
|
368 |
+
'on_sale_badge_percentage_html',
|
369 |
'applied_rule_message',
|
370 |
)
|
371 |
);
|
386 |
'apply_discount_subsequently',
|
387 |
'refresh_order_review',
|
388 |
'suppress_other_discount_plugins',
|
389 |
+
'compress_css_and_js',
|
390 |
'customize_on_sale_badge',
|
391 |
'force_override_on_sale_badge',
|
392 |
+
'display_percentage_on_sale_badge',
|
393 |
'show_bulk_table',
|
394 |
'table_column_header',
|
395 |
'table_title_column',
|
v2/App/Helpers/Woocommerce.php
CHANGED
@@ -19,6 +19,7 @@ class Woocommerce
|
|
19 |
* @param $type - product types
|
20 |
* @return bool
|
21 |
*/
|
|
|
22 |
static $custom_taxonomies;
|
23 |
static $checkout_post = null;
|
24 |
|
@@ -1662,4 +1663,14 @@ class Woocommerce
|
|
1662 |
}
|
1663 |
return $available_variations;
|
1664 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1665 |
}
|
19 |
* @param $type - product types
|
20 |
* @return bool
|
21 |
*/
|
22 |
+
static $product_taxonomy_terms = array();
|
23 |
static $custom_taxonomies;
|
24 |
static $checkout_post = null;
|
25 |
|
1663 |
}
|
1664 |
return $available_variations;
|
1665 |
}
|
1666 |
+
|
1667 |
+
/**
|
1668 |
+
* WC format price
|
1669 |
+
* */
|
1670 |
+
public static function wc_format_decimal($price, $dp = false, $trim_zeros = false ){
|
1671 |
+
if (function_exists('wc_format_decimal')) {
|
1672 |
+
$price = wc_format_decimal($price, $dp, $trim_zeros);
|
1673 |
+
}
|
1674 |
+
return $price;
|
1675 |
+
}
|
1676 |
}
|
v2/App/Models/DBTable.php
CHANGED
@@ -194,13 +194,13 @@ class DBTable
|
|
194 |
* Need for Admin
|
195 |
*/
|
196 |
if (is_admin()) {
|
197 |
-
if($wpdb->get_var("show tables like '$rules_table_name'") != $rules_table_name){
|
198 |
-
return false;
|
199 |
-
}
|
200 |
if (!is_null($rule_id) && is_null($rule_name) && is_null($export)) {
|
201 |
if(isset(self::$rules['admin_based_on_rule_id']) && $cache === true){
|
202 |
return self::$rules['admin_based_on_rule_id'];
|
203 |
}
|
|
|
|
|
|
|
204 |
if(is_array($rule_id)){
|
205 |
$rule_id = array_map('absint', $rule_id);
|
206 |
$rule_id = implode(",", $rule_id);
|
@@ -213,12 +213,18 @@ class DBTable
|
|
213 |
if(isset(self::$rules['admin_based_on_rule_name']) && $cache === true){
|
214 |
return self::$rules['admin_based_on_rule_name'];
|
215 |
}
|
|
|
|
|
|
|
216 |
$rule_name = esc_sql($rule_name);
|
217 |
return self::$rules['admin_based_on_rule_name'] = $wpdb->get_results("SELECT * FROM {$rules_table_name} WHERE deleted = 0 AND title LIKE '%{$rule_name}%'");
|
218 |
} else {
|
219 |
if(isset(self::$rules['admin_all']) && $cache === true){
|
220 |
return self::$rules['admin_all'];
|
221 |
}
|
|
|
|
|
|
|
222 |
return self::$rules['admin_all'] = $wpdb->get_results("SELECT * FROM {$rules_table_name} WHERE deleted = 0 ORDER BY priority ASC");
|
223 |
}
|
224 |
}
|
194 |
* Need for Admin
|
195 |
*/
|
196 |
if (is_admin()) {
|
|
|
|
|
|
|
197 |
if (!is_null($rule_id) && is_null($rule_name) && is_null($export)) {
|
198 |
if(isset(self::$rules['admin_based_on_rule_id']) && $cache === true){
|
199 |
return self::$rules['admin_based_on_rule_id'];
|
200 |
}
|
201 |
+
if($wpdb->get_var("show tables like '$rules_table_name'") != $rules_table_name){
|
202 |
+
return false;
|
203 |
+
}
|
204 |
if(is_array($rule_id)){
|
205 |
$rule_id = array_map('absint', $rule_id);
|
206 |
$rule_id = implode(",", $rule_id);
|
213 |
if(isset(self::$rules['admin_based_on_rule_name']) && $cache === true){
|
214 |
return self::$rules['admin_based_on_rule_name'];
|
215 |
}
|
216 |
+
if($wpdb->get_var("show tables like '$rules_table_name'") != $rules_table_name){
|
217 |
+
return false;
|
218 |
+
}
|
219 |
$rule_name = esc_sql($rule_name);
|
220 |
return self::$rules['admin_based_on_rule_name'] = $wpdb->get_results("SELECT * FROM {$rules_table_name} WHERE deleted = 0 AND title LIKE '%{$rule_name}%'");
|
221 |
} else {
|
222 |
if(isset(self::$rules['admin_all']) && $cache === true){
|
223 |
return self::$rules['admin_all'];
|
224 |
}
|
225 |
+
if($wpdb->get_var("show tables like '$rules_table_name'") != $rules_table_name){
|
226 |
+
return false;
|
227 |
+
}
|
228 |
return self::$rules['admin_all'] = $wpdb->get_results("SELECT * FROM {$rules_table_name} WHERE deleted = 0 ORDER BY priority ASC");
|
229 |
}
|
230 |
}
|
v2/App/Views/Admin/Rules/Discounts/Bulk.php
CHANGED
@@ -8,7 +8,7 @@ $is_pro = \Wdr\App\Helpers\Helper::hasPro();
|
|
8 |
<div class="range_setter_inner">
|
9 |
<div class="bulk-row-main">
|
10 |
<div class="bulk-row-start wdr-input-filed-hight bulk-row-inner">
|
11 |
-
<div class="dashicons dashicons-menu awdr-sort-icon"></div>
|
12 |
<div class="bulk-min">
|
13 |
<input type="number"
|
14 |
name="bulk_adjustments[ranges][<?php echo $bulk_index; ?>][from]"
|
8 |
<div class="range_setter_inner">
|
9 |
<div class="bulk-row-main">
|
10 |
<div class="bulk-row-start wdr-input-filed-hight bulk-row-inner">
|
11 |
+
<div class="dashicons dashicons-menu awdr-sort-icon awdr-sortable-handle"></div>
|
12 |
<div class="bulk-min">
|
13 |
<input type="number"
|
14 |
name="bulk_adjustments[ranges][<?php echo $bulk_index; ?>][from]"
|
v2/App/Views/Admin/Tabs/DiscountRule.php
CHANGED
@@ -54,7 +54,7 @@ $is_pro = \Wdr\App\Helpers\Helper::hasPro();
|
|
54 |
}?>
|
55 |
<a href="https://www.flycart.org/woocommerce-discount-rules-examples?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=examples#commonly-asked-scenarios" target="_blank"
|
56 |
class="btn btn-info text-right" style="float: right"><?php _e('View Examples', 'woo-discount-rules'); ?></a>
|
57 |
-
<a href="https://docs.flycart.org/en/collections/
|
58 |
class="btn btn-info text-right" style="float: right"><?php _e('Documentation', 'woo-discount-rules'); ?></a>
|
59 |
</div>
|
60 |
|
@@ -134,7 +134,7 @@ $is_pro = \Wdr\App\Helpers\Helper::hasPro();
|
|
134 |
foreach ($rules as $rule_row) { ?>
|
135 |
<tr id="<?php echo $rule_row->getId(); ?>" class="awdr-listing-rule-tr">
|
136 |
<th scope="row" class="check-column awdr-listing-rule-check-box-align">
|
137 |
-
<span class="dashicons dashicons-menu" style="padding-left: 5px;"></span>
|
138 |
</th>
|
139 |
<th scope="row" class="check-column awdr-listing-rule-check-box-align">
|
140 |
<input id="cb-select-<?php echo $rule_row->getId(); ?>" class="wdr-rules-selector"
|
54 |
}?>
|
55 |
<a href="https://www.flycart.org/woocommerce-discount-rules-examples?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=examples#commonly-asked-scenarios" target="_blank"
|
56 |
class="btn btn-info text-right" style="float: right"><?php _e('View Examples', 'woo-discount-rules'); ?></a>
|
57 |
+
<a href="https://docs.flycart.org/en/collections/806883-woocommerce-discount-rules?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=documentation" target="_blank"
|
58 |
class="btn btn-info text-right" style="float: right"><?php _e('Documentation', 'woo-discount-rules'); ?></a>
|
59 |
</div>
|
60 |
|
134 |
foreach ($rules as $rule_row) { ?>
|
135 |
<tr id="<?php echo $rule_row->getId(); ?>" class="awdr-listing-rule-tr">
|
136 |
<th scope="row" class="check-column awdr-listing-rule-check-box-align">
|
137 |
+
<span class="dashicons dashicons-menu awdr-sortable-handle" style="padding-left: 5px;"></span>
|
138 |
</th>
|
139 |
<th scope="row" class="check-column awdr-listing-rule-check-box-align">
|
140 |
<input id="cb-select-<?php echo $rule_row->getId(); ?>" class="wdr-rules-selector"
|
v2/App/Views/Admin/Tabs/settings.php
CHANGED
@@ -33,7 +33,8 @@
|
|
33 |
<tr>
|
34 |
<td scope="row">
|
35 |
<label for="apply_product_discount_to" class="awdr-left-align"><?php _e('Apply discount', 'woo-discount-rules') ?></label>
|
36 |
-
<span class="wdr_settings_desc_text awdr-clear-both"><?php esc_attr_e('Highest/Lowest/First/All matched rules', 'woo-discount-rules');
|
|
|
37 |
</td>
|
38 |
<td>
|
39 |
<select name="apply_product_discount_to" class="apply_product_and_cart_discount_to" data-subsequent="apply_product_discount_subsequently_row">
|
@@ -106,6 +107,21 @@
|
|
106 |
for="do_not_suppress_other_discount_plugins"><?php _e('No', 'woo-discount-rules'); ?></label>
|
107 |
</td>
|
108 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
<?php
|
110 |
do_action('advanced_woo_discount_rules_general_settings_fields', $configuration);
|
111 |
?>
|
@@ -141,6 +157,7 @@
|
|
141 |
<?php
|
142 |
$customize_on_sale_badge = $configuration->getConfig('customize_on_sale_badge', '');
|
143 |
$force_override_on_sale_badge = $configuration->getConfig('force_override_on_sale_badge', '');
|
|
|
144 |
?>
|
145 |
<input type="checkbox" name="customize_on_sale_badge" id="customize_on_sale_badge"
|
146 |
value="1" <?php echo ( $customize_on_sale_badge == 1 ? 'checked' : '') ?>><label
|
@@ -149,6 +166,12 @@
|
|
149 |
<input type="checkbox" name="force_override_on_sale_badge" id="force_override_on_sale_badge"
|
150 |
value="1" <?php echo ( $force_override_on_sale_badge == 1 ? 'checked' : '') ?>><label
|
151 |
for="force_override_on_sale_badge" class="padding10"><?php _e('Force override the label for sale badge (useful when your theme has override for sale badge).', 'woo-discount-rules'); ?></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
</td>
|
153 |
</tr>
|
154 |
<tr class="sale_badge_customizer" style="<?php echo ($show_on_sale_badge != 'disabled' && $customize_on_sale_badge == 1) ? '':'display:none;'?>">
|
@@ -163,6 +186,18 @@
|
|
163 |
cols="30"><?php echo $configuration->getConfig('on_sale_badge_html', '<span class="onsale">Sale!</span>'); ?></textarea>
|
164 |
</td>
|
165 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
<tr>
|
167 |
<td scope="row">
|
168 |
<label for="" class="awdr-left-align"><?php _e('Show discount table ', 'woo-discount-rules') ?></label>
|
@@ -280,8 +315,8 @@
|
|
280 |
</td>
|
281 |
<td>
|
282 |
<select name="apply_cart_discount_as">
|
283 |
-
<option value="fee" <?php echo ($configuration->getConfig('apply_cart_discount_as', '
|
284 |
-
<option value="coupon" <?php echo ($configuration->getConfig('apply_cart_discount_as', '
|
285 |
</select>
|
286 |
</td>
|
287 |
</tr>
|
33 |
<tr>
|
34 |
<td scope="row">
|
35 |
<label for="apply_product_discount_to" class="awdr-left-align"><?php _e('Apply discount', 'woo-discount-rules') ?></label>
|
36 |
+
<span class="wdr_settings_desc_text awdr-clear-both"><?php esc_attr_e('Highest/Lowest/First/All matched rules', 'woo-discount-rules'); ?><br />
|
37 |
+
<?php _e('<p class="wdr_settings_desc_text text-warning"><strong>Note</strong> : Priority will not work for free shipping rule.</p>', 'woo-discount-rules'); ?></span>
|
38 |
</td>
|
39 |
<td>
|
40 |
<select name="apply_product_discount_to" class="apply_product_and_cart_discount_to" data-subsequent="apply_product_discount_subsequently_row">
|
107 |
for="do_not_suppress_other_discount_plugins"><?php _e('No', 'woo-discount-rules'); ?></label>
|
108 |
</td>
|
109 |
</tr>
|
110 |
+
<tr>
|
111 |
+
<td scope="row">
|
112 |
+
<label class="awdr-left-align"><?php _e('Use minified CSS and JS', 'woo-discount-rules') ?></label>
|
113 |
+
<span class="wdr_settings_desc_text awdr-clear-both"></span>
|
114 |
+
</td>
|
115 |
+
<td>
|
116 |
+
<input type="radio" name="compress_css_and_js" id="compress_css_and_js_0"
|
117 |
+
value="1" <?php echo($configuration->getConfig('compress_css_and_js', 0) ? 'checked' : '') ?>><label
|
118 |
+
for="compress_css_and_js_0"><?php _e('Yes', 'woo-discount-rules'); ?></label>
|
119 |
+
<input type="radio" name="compress_css_and_js"
|
120 |
+
id="compress_css_and_js_1"
|
121 |
+
value="0" <?php echo(!$configuration->getConfig('compress_css_and_js', 0) ? 'checked' : '') ?>><label
|
122 |
+
for="compress_css_and_js_1"><?php _e('No', 'woo-discount-rules'); ?></label>
|
123 |
+
</td>
|
124 |
+
</tr>
|
125 |
<?php
|
126 |
do_action('advanced_woo_discount_rules_general_settings_fields', $configuration);
|
127 |
?>
|
157 |
<?php
|
158 |
$customize_on_sale_badge = $configuration->getConfig('customize_on_sale_badge', '');
|
159 |
$force_override_on_sale_badge = $configuration->getConfig('force_override_on_sale_badge', '');
|
160 |
+
$display_percentage_on_sale_badge = $configuration->getConfig('display_percentage_on_sale_badge', '');
|
161 |
?>
|
162 |
<input type="checkbox" name="customize_on_sale_badge" id="customize_on_sale_badge"
|
163 |
value="1" <?php echo ( $customize_on_sale_badge == 1 ? 'checked' : '') ?>><label
|
166 |
<input type="checkbox" name="force_override_on_sale_badge" id="force_override_on_sale_badge"
|
167 |
value="1" <?php echo ( $force_override_on_sale_badge == 1 ? 'checked' : '') ?>><label
|
168 |
for="force_override_on_sale_badge" class="padding10"><?php _e('Force override the label for sale badge (useful when your theme has override for sale badge).', 'woo-discount-rules'); ?></label>
|
169 |
+
<br>
|
170 |
+
<div class="display_percentage_on_sale_badge_con">
|
171 |
+
<input type="checkbox" name="display_percentage_on_sale_badge" id="display_percentage_on_sale_badge"
|
172 |
+
value="1" <?php echo ( $display_percentage_on_sale_badge == 1 ? 'checked' : '') ?>><label
|
173 |
+
for="display_percentage_on_sale_badge" class="padding10"><?php _e('I would like to display percentage in sale badge (Displays only when rule matches else displays default sale badge content).', 'woo-discount-rules'); ?></label>
|
174 |
+
</div>
|
175 |
</td>
|
176 |
</tr>
|
177 |
<tr class="sale_badge_customizer" style="<?php echo ($show_on_sale_badge != 'disabled' && $customize_on_sale_badge == 1) ? '':'display:none;'?>">
|
186 |
cols="30"><?php echo $configuration->getConfig('on_sale_badge_html', '<span class="onsale">Sale!</span>'); ?></textarea>
|
187 |
</td>
|
188 |
</tr>
|
189 |
+
<tr class="sale_badge_percentage_customizer" style="<?php echo ($show_on_sale_badge != 'disabled' && $display_percentage_on_sale_badge == 1) ? '':'display:none;'?>">
|
190 |
+
<td scope="row">
|
191 |
+
<label for="" class="awdr-left-align"><?php _e('Sale badge percentage content', 'woo-discount-rules') ?></label>
|
192 |
+
<span class="wdr_settings_desc_text awdr-clear-both"><?php _e('You can use HTML inside. <br><b>IMPORTANT NOTE:</b> This customized sale badge will be applicable only for products that are part of the discount rules configured in this plugin <b>Eg:</b><span class="onsale">Sale!</span>', 'woo-discount-rules'); ?></span>
|
193 |
+
</td>
|
194 |
+
<td>
|
195 |
+
<textarea name="on_sale_badge_percentage_html"
|
196 |
+
placeholder='<span class="onsale"><?php _e('{{percentage}}%', 'woo-discount-rules') ?></span>'
|
197 |
+
rows="5"
|
198 |
+
cols="30"><?php echo $configuration->getConfig('on_sale_badge_percentage_html', '<span class="onsale">{{percentage}}%</span>'); ?></textarea>
|
199 |
+
</td>
|
200 |
+
</tr>
|
201 |
<tr>
|
202 |
<td scope="row">
|
203 |
<label for="" class="awdr-left-align"><?php _e('Show discount table ', 'woo-discount-rules') ?></label>
|
315 |
</td>
|
316 |
<td>
|
317 |
<select name="apply_cart_discount_as">
|
318 |
+
<option value="fee" <?php echo ($configuration->getConfig('apply_cart_discount_as', 'coupon') == 'fee') ? 'selected' : ''; ?> ><?php _e('Fee', 'woo-discount-rules'); ?></option>
|
319 |
+
<option value="coupon" <?php echo ($configuration->getConfig('apply_cart_discount_as', 'coupon') == 'coupon') ? 'selected' : ''; ?>><?php _e('Coupon', 'woo-discount-rules'); ?></option>
|
320 |
</select>
|
321 |
</td>
|
322 |
</tr>
|
v2/Assets/Css/admin_style.min.css
ADDED
@@ -0,0 +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}
|
v2/Assets/Css/customize-table.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.awdr_discount_bar{padding:10px;margin-bottom:10px;border-radius:4px}
|
v2/Assets/Css/dragtable.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.dragtable-sortable{list-style-type:none;margin:0;padding:0;-moz-user-select:none}.dragtable-sortable li{margin:0;padding:0;float:left;font-size:1em;background:#fff}.dragtable-sortable td,.dragtable-sortable th{border-left:0}.dragtable-sortable li:first-child td,.dragtable-sortable li:first-child th{border-left:1px solid #ccc}.ui-sortable-helper{opacity:.7}.ui-sortable-placeholder{-moz-box-shadow:4px 5px 4px #c6c6c6 inset;-webkit-box-shadow:4px 5px 4px #c6c6c6 inset;box-shadow:4px 5px 4px #c6c6c6 inset;border-bottom:1px solid #ccc;border-top:1px solid #ccc;visibility:visible!important;background:#efefef!important;visibility:visible!important}.ui-sortable-placeholder *{opacity:0;visibility:hidden}
|
v2/Assets/Js/admin-statistics.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
var response_content,isjQueryReady=!1,isGoogleChartsReady=!1,isInitialized=!1;function googleChartsLoadCallback(){isGoogleChartsReady=!0,init()}function init(){isjQueryReady&&isGoogleChartsReady&&!isInitialized&&(isInitialized=!0,jQuery(".chart-period").change(function(){var t=jQuery(".chart-period").val(),e=new Date;if("this_week"===t)e.setDate(e.getDate()-e.getDay()+1),jQuery(".chart-period-start").val(format_date(e)),e.setDate(e.getDate()+6),jQuery(".chart-period-end").val(format_date(e));else if("this_month"===t){var a=new Date(e.getFullYear(),e.getMonth(),1);jQuery(".chart-period-start").val(format_date(a));var r=new Date(e.getFullYear(),e.getMonth()+1,-1);jQuery(".chart-period-end").val(format_date(r))}}),jQuery(".chart-period-start, .chart-period-end").change(function(){jQuery(".chart-period").val("custom")}),jQuery(".chart-options").submit(function(t){return t.preventDefault(),showChart(jQuery(this).serialize()),!1}),jQuery(window).resize(function(){response_content.data.columns.length>1&&renderChart(response_content.data)}),jQuery(".chart-period").change(),jQuery(".chart-options").submit())}function renderChart(t){var e=new google.visualization.DataTable;(t.columns&&t.columns.forEach(function(t,a){e.addColumn(0===a?"string":"number",t)}),t.rows)&&(e.addRows(Object.values(t.rows)),new google.visualization.NumberFormat({fractionDigits:2}).format(e,1));var a=jQuery("#chart-container").width(),r=jQuery(window).height()-jQuery("#chart-container").offset().top;200>r&&(r=200);var o={chart:{title:t.title?t.title:"",subtitle:t.subtitle?t.subtitle:""},width:a,height:r};new google.charts.Line(document.getElementById("chart-container")).draw(e,o)}function showChart(t){let e=jQuery(".woo_discount_loader");e.show(),jQuery.post(ajaxurl,{action:"wdr_admin_statistics",method:"get_chart_data",params:t},function(t){e.hide(),t.success&&t.data.columns.length>1?(response_content=t,renderChart(t.data)):jQuery("#chart-container").html(wdr_data.localization_data.chart_data)},"json")}function to2Digits(t){return t<10?"0"+t:t}function format_date(t){return[to2Digits(t.getFullYear()),to2Digits(t.getMonth()+1),to2Digits(t.getDate())].join("-")}google.charts.load("current",{packages:["line"]}),google.charts.setOnLoadCallback(googleChartsLoadCallback),jQuery(document).ready(function(){isjQueryReady=!0,jQuery(".chart-type").select2(),init()});
|
v2/Assets/Js/admin_script.js
CHANGED
@@ -940,7 +940,7 @@ jQuery(document).ready(function ($) {
|
|
940 |
case 'all_products':
|
941 |
break;
|
942 |
case 'products':
|
943 |
-
if (
|
944 |
filter_array.push("fails");
|
945 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
946 |
$(element).find('.select2-selection').focus();
|
@@ -949,7 +949,7 @@ jQuery(document).ready(function ($) {
|
|
949 |
}
|
950 |
break;
|
951 |
case 'product_category':
|
952 |
-
if (
|
953 |
filter_array.push("fails");
|
954 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
955 |
$(element).find('.select2-selection').focus();
|
@@ -958,7 +958,7 @@ jQuery(document).ready(function ($) {
|
|
958 |
}
|
959 |
break;
|
960 |
case 'product_attributes':
|
961 |
-
if (
|
962 |
filter_array.push("fails");
|
963 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
964 |
$(element).find('.select2-selection').focus();
|
@@ -967,7 +967,7 @@ jQuery(document).ready(function ($) {
|
|
967 |
}
|
968 |
break;
|
969 |
case 'product_tags':
|
970 |
-
if (
|
971 |
filter_array.push("fails");
|
972 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
973 |
$(element).find('.select2-selection').focus();
|
@@ -976,7 +976,7 @@ jQuery(document).ready(function ($) {
|
|
976 |
}
|
977 |
break;
|
978 |
case 'product_sku':
|
979 |
-
if (
|
980 |
filter_array.push("fails");
|
981 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
982 |
$(element).find('.select2-selection').focus();
|
@@ -987,7 +987,7 @@ jQuery(document).ready(function ($) {
|
|
987 |
case 'product_on_sale':
|
988 |
break;
|
989 |
default:
|
990 |
-
if (
|
991 |
filter_array.push("fails");
|
992 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
993 |
$(element).find('.select2-selection').focus();
|
@@ -1056,7 +1056,7 @@ jQuery(document).ready(function ($) {
|
|
1056 |
});
|
1057 |
break;
|
1058 |
case 'wdr_set_discount':
|
1059 |
-
$('.set_range_setter').find('.
|
1060 |
let min_qty = $(element).find('.set_discount_min').val();
|
1061 |
let max_val = $(element).find('.set_discount_value').val();
|
1062 |
if (min_qty == '') {
|
@@ -1130,7 +1130,7 @@ jQuery(document).ready(function ($) {
|
|
1130 |
let max_val = $(element).find('.bxgy-val').val();
|
1131 |
|
1132 |
if (bxgy_type == 'bxgy_product') {
|
1133 |
-
if (
|
1134 |
discount_array.push("fails");
|
1135 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1136 |
$(element).find('.select2-selection').focus();
|
@@ -1138,7 +1138,7 @@ jQuery(document).ready(function ($) {
|
|
1138 |
$(element).find('.select2-selection').css("border", "1px solid #7e8993");
|
1139 |
}
|
1140 |
} else if (bxgy_type == 'bxgy_category') {
|
1141 |
-
if (
|
1142 |
discount_array.push("fails");
|
1143 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1144 |
$(element).find('.select2-selection').focus();
|
@@ -1257,7 +1257,7 @@ jQuery(document).ready(function ($) {
|
|
1257 |
break;
|
1258 |
case 'cart_payment_method':
|
1259 |
let wc_payment_gateway = $(element).find('.select2-hidden-accessible').val();
|
1260 |
-
if (
|
1261 |
condition_array.push("fails");
|
1262 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1263 |
$(element).find('.select2-selection').focus();
|
@@ -1278,7 +1278,7 @@ jQuery(document).ready(function ($) {
|
|
1278 |
case 'cart_item_product_attributes':
|
1279 |
let wc_attributes = $(element).find('.awdr-attribute-validation').val();
|
1280 |
let attribute_qty = $(element).find('.awdr-num-validation').val();
|
1281 |
-
if (
|
1282 |
condition_array.push("fails");
|
1283 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1284 |
$(element).find('.select2-selection').focus();
|
@@ -1296,7 +1296,7 @@ jQuery(document).ready(function ($) {
|
|
1296 |
case 'cart_item_product_category':
|
1297 |
let wc_category = $(element).find('.awdr-category-validation').val();
|
1298 |
let category_qty = $(element).find('.awdr-num-validation').val();
|
1299 |
-
if (
|
1300 |
condition_array.push("fails");
|
1301 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1302 |
$(element).find('.select2-selection').focus();
|
@@ -1316,7 +1316,7 @@ jQuery(document).ready(function ($) {
|
|
1316 |
let min_qty = $(element).find('.product_from_qty').val();
|
1317 |
let max_qty = $(element).find('.product_to_qty').val();
|
1318 |
let combination_operator = $(element).find('.combination_operator').val();
|
1319 |
-
if (
|
1320 |
condition_array.push("fails");
|
1321 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1322 |
$(element).find('.select2-selection').focus();
|
@@ -1347,7 +1347,7 @@ jQuery(document).ready(function ($) {
|
|
1347 |
case 'cart_item_product_sku':
|
1348 |
let wc_sku = $(element).find('.awdr-sku-validation').val();
|
1349 |
let sku_qty = $(element).find('.awdr-num-validation').val();
|
1350 |
-
if (
|
1351 |
condition_array.push("fails");
|
1352 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1353 |
$(element).find('.select2-selection').focus();
|
@@ -1365,7 +1365,7 @@ jQuery(document).ready(function ($) {
|
|
1365 |
case 'cart_item_product_tags':
|
1366 |
let wc_tags = $(element).find('.awdr-tag-validation').val();
|
1367 |
let tag_qty = $(element).find('.awdr-num-validation').val();
|
1368 |
-
if (
|
1369 |
condition_array.push("fails");
|
1370 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1371 |
$(element).find('.select2-selection').focus();
|
@@ -1383,7 +1383,7 @@ jQuery(document).ready(function ($) {
|
|
1383 |
case 'cart_item_products':
|
1384 |
let wc_products = $(element).find('.awdr-product-validation').val();
|
1385 |
let product_qty = $(element).find('.awdr-num-validation').val();
|
1386 |
-
if (
|
1387 |
condition_array.push("fails");
|
1388 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1389 |
$(element).find('.select2-selection').focus();
|
@@ -1403,7 +1403,7 @@ jQuery(document).ready(function ($) {
|
|
1403 |
let from_qty = $(element).find('.cat_from_qty').val();
|
1404 |
let to_qty = $(element).find('.cat_to_qty').val();
|
1405 |
let cat_combination = $(element).find('.cat_combination_operator').val();
|
1406 |
-
if (
|
1407 |
condition_array.push("fails");
|
1408 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1409 |
$(element).find('.select2-selection').focus();
|
@@ -1461,7 +1461,7 @@ jQuery(document).ready(function ($) {
|
|
1461 |
break;
|
1462 |
case 'order_days':
|
1463 |
let order_days = $(element).find('.order_days').val();
|
1464 |
-
if (
|
1465 |
condition_array.push("fails");
|
1466 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1467 |
$(element).find('.select2-selection').focus();
|
@@ -1485,7 +1485,7 @@ jQuery(document).ready(function ($) {
|
|
1485 |
break;
|
1486 |
case 'purchase_last_order':
|
1487 |
let last_order = $(element).find('.wdr-wc-order-status').val();
|
1488 |
-
if (
|
1489 |
condition_array.push("fails");
|
1490 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1491 |
$(element).find('.select2-selection').focus();
|
@@ -1496,7 +1496,7 @@ jQuery(document).ready(function ($) {
|
|
1496 |
case 'purchase_last_order_amount':
|
1497 |
let last_order_amount_status = $(element).find('.wdr-wc-order-status').val();
|
1498 |
let last_order_amount = $(element).find('.float_only_field').val();
|
1499 |
-
if (
|
1500 |
condition_array.push("fails");
|
1501 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1502 |
$(element).find('.select2-selection').focus();
|
@@ -1514,7 +1514,7 @@ jQuery(document).ready(function ($) {
|
|
1514 |
case 'purchase_previous_orders':
|
1515 |
let made_order_status = $(element).find('.wdr-wc-order-status').val();
|
1516 |
let made_order_amount = $(element).find('.float_only_field').val();
|
1517 |
-
if (
|
1518 |
condition_array.push("fails");
|
1519 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1520 |
$(element).find('.select2-selection').focus();
|
@@ -1533,14 +1533,14 @@ jQuery(document).ready(function ($) {
|
|
1533 |
let made_order_status_for_product = $(element).find('.wdr-wc-order-status').val();
|
1534 |
let made_order_amount_for_product = $(element).find('.float_only_field').val();
|
1535 |
let ordered_product = $(element).find('.specific_product').val();
|
1536 |
-
if (
|
1537 |
condition_array.push("fails");
|
1538 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').css("border", "1px solid red");
|
1539 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').focus();
|
1540 |
} else {
|
1541 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').css("border", "1px solid #7e8993");
|
1542 |
}
|
1543 |
-
if (
|
1544 |
condition_array.push("fails");
|
1545 |
$(element).find('.wdr-previous-order-product-status .select2-selection').css("border", "1px solid red");
|
1546 |
$(element).find('.wdr-previous-order-product-status .select2-selection').focus();
|
@@ -1566,7 +1566,7 @@ jQuery(document).ready(function ($) {
|
|
1566 |
} else {
|
1567 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').css("border", "1px solid #7e8993");
|
1568 |
}
|
1569 |
-
if (
|
1570 |
condition_array.push("fails");
|
1571 |
$(element).find('.wdr-previous-order-product-status .select2-selection').css("border", "1px solid red");
|
1572 |
$(element).find('.wdr-previous-order-product-status .select2-selection').focus();
|
@@ -1585,7 +1585,7 @@ jQuery(document).ready(function ($) {
|
|
1585 |
case 'purchase_spent':
|
1586 |
let spent_status = $(element).find('.wdr-wc-order-status').val();
|
1587 |
let spent_amount = $(element).find('.float_only_field').val();
|
1588 |
-
if (
|
1589 |
condition_array.push("fails");
|
1590 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1591 |
$(element).find('.select2-selection').focus();
|
@@ -1612,7 +1612,7 @@ jQuery(document).ready(function ($) {
|
|
1612 |
break;
|
1613 |
case 'shipping_country':
|
1614 |
let shipping_country = $(element).find('.get_awdr_shipping_country').val();
|
1615 |
-
if (
|
1616 |
condition_array.push("fails");
|
1617 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1618 |
$(element).find('.select2-selection').focus();
|
@@ -1623,7 +1623,7 @@ jQuery(document).ready(function ($) {
|
|
1623 |
case 'shipping_state':
|
1624 |
let shipping_state = $(element).find('.get_awdr_shipping_state').val();
|
1625 |
let shipping_state_based_country = $(element).find('.get_awdr_state_based_country').val();
|
1626 |
-
if (
|
1627 |
condition_array.push("fails");
|
1628 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1629 |
$(element).find('.select2-selection').focus();
|
@@ -1631,7 +1631,7 @@ jQuery(document).ready(function ($) {
|
|
1631 |
$(element).find('.select2-selection').css("border", "1px solid #7e8993");
|
1632 |
}
|
1633 |
|
1634 |
-
if (
|
1635 |
condition_array.push("fails");
|
1636 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1637 |
$(element).find('.select2-selection').focus();
|
@@ -1671,7 +1671,7 @@ jQuery(document).ready(function ($) {
|
|
1671 |
break;
|
1672 |
case 'user_list':
|
1673 |
let user_list = $(element).find('.wdr_user_list').val();
|
1674 |
-
if (
|
1675 |
condition_array.push("fails");
|
1676 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1677 |
$(element).find('.select2-selection').focus();
|
@@ -1681,7 +1681,7 @@ jQuery(document).ready(function ($) {
|
|
1681 |
break;
|
1682 |
case 'user_role':
|
1683 |
let user_role = $(element).find('.wdr_user_role').val();
|
1684 |
-
if (
|
1685 |
condition_array.push("fails");
|
1686 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1687 |
$(element).find('.select2-selection').focus();
|
@@ -2130,16 +2130,47 @@ jQuery(document).ready(function ($) {
|
|
2130 |
/**
|
2131 |
* sorting rule priority
|
2132 |
*/
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2141 |
}
|
2142 |
-
}
|
|
|
|
|
2143 |
|
2144 |
function updatePriorityOrder(data) {
|
2145 |
$.ajax({
|
@@ -2486,7 +2517,21 @@ jQuery(document).ready(function ($) {
|
|
2486 |
$('.awdr-discount-container').show();
|
2487 |
$('.' + data_placement).find('.bulk_range_setter_group').addClass('bulk_range_setter').attr('id', 'bulk_adjustment_sortable');
|
2488 |
$('.' + data_placement).find('.set_range_setter_group').addClass('set_range_setter').attr('id', 'bulk_adjustment_sortable');
|
2489 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2490 |
$("#bulk_adjustment_sortable").disableSelection();
|
2491 |
$('.awdr-filter-heading').html(wdr_data.localization_data.common_filter_heading);
|
2492 |
$('.awdr-filter-content').html(wdr_data.localization_data.common_filter_description);
|
@@ -2607,21 +2652,39 @@ jQuery(document).ready(function ($) {
|
|
2607 |
$(document).on('change', '.on_sale_badge_condition', function () {
|
2608 |
if ($(this).val() === 'disabled') {
|
2609 |
$('.sale_badge_toggle').hide();
|
2610 |
-
$('.sale_badge_customizer').hide();
|
2611 |
} else {
|
2612 |
$('.sale_badge_toggle').show();
|
2613 |
if ($('#customize_on_sale_badge').prop("checked") == true) {
|
2614 |
$('.sale_badge_customizer').show();
|
|
|
2615 |
} else {
|
2616 |
$('.sale_badge_customizer').hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2617 |
}
|
2618 |
}
|
2619 |
});
|
2620 |
$(document).on('change', '#customize_on_sale_badge', function () {
|
2621 |
if ($(this).prop("checked") == true) {
|
2622 |
$('.sale_badge_customizer').show();
|
|
|
2623 |
} else {
|
2624 |
$('.sale_badge_customizer').hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2625 |
}
|
2626 |
});
|
2627 |
$(document).on('change', '#badge_colorpicker', function () {
|
@@ -2690,7 +2753,7 @@ jQuery(document).ready(function ($) {
|
|
2690 |
|
2691 |
$(document).on('change', '.get_awdr_state_based_country', function (){
|
2692 |
let selected_country = $(this).val();
|
2693 |
-
if(!selected_country){
|
2694 |
return false;
|
2695 |
}
|
2696 |
let selected_index = $(this).parents('.wdr-conditions-container').attr('data-index');
|
940 |
case 'all_products':
|
941 |
break;
|
942 |
case 'products':
|
943 |
+
if (product_filter_val.length == 0) {
|
944 |
filter_array.push("fails");
|
945 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
946 |
$(element).find('.select2-selection').focus();
|
949 |
}
|
950 |
break;
|
951 |
case 'product_category':
|
952 |
+
if (product_filter_val.length == 0) {
|
953 |
filter_array.push("fails");
|
954 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
955 |
$(element).find('.select2-selection').focus();
|
958 |
}
|
959 |
break;
|
960 |
case 'product_attributes':
|
961 |
+
if (product_filter_val.length == 0) {
|
962 |
filter_array.push("fails");
|
963 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
964 |
$(element).find('.select2-selection').focus();
|
967 |
}
|
968 |
break;
|
969 |
case 'product_tags':
|
970 |
+
if (product_filter_val.length == 0) {
|
971 |
filter_array.push("fails");
|
972 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
973 |
$(element).find('.select2-selection').focus();
|
976 |
}
|
977 |
break;
|
978 |
case 'product_sku':
|
979 |
+
if (product_filter_val.length == 0) {
|
980 |
filter_array.push("fails");
|
981 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
982 |
$(element).find('.select2-selection').focus();
|
987 |
case 'product_on_sale':
|
988 |
break;
|
989 |
default:
|
990 |
+
if (product_filter_val.length == 0) {
|
991 |
filter_array.push("fails");
|
992 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
993 |
$(element).find('.select2-selection').focus();
|
1056 |
});
|
1057 |
break;
|
1058 |
case 'wdr_set_discount':
|
1059 |
+
$('.set_range_setter').find('.bundle-set-range-main').each(function (index, element) {
|
1060 |
let min_qty = $(element).find('.set_discount_min').val();
|
1061 |
let max_val = $(element).find('.set_discount_value').val();
|
1062 |
if (min_qty == '') {
|
1130 |
let max_val = $(element).find('.bxgy-val').val();
|
1131 |
|
1132 |
if (bxgy_type == 'bxgy_product') {
|
1133 |
+
if (product_qty.length == 0) {
|
1134 |
discount_array.push("fails");
|
1135 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1136 |
$(element).find('.select2-selection').focus();
|
1138 |
$(element).find('.select2-selection').css("border", "1px solid #7e8993");
|
1139 |
}
|
1140 |
} else if (bxgy_type == 'bxgy_category') {
|
1141 |
+
if (category_qty.length == 0) {
|
1142 |
discount_array.push("fails");
|
1143 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1144 |
$(element).find('.select2-selection').focus();
|
1257 |
break;
|
1258 |
case 'cart_payment_method':
|
1259 |
let wc_payment_gateway = $(element).find('.select2-hidden-accessible').val();
|
1260 |
+
if (wc_payment_gateway.length == 0) {
|
1261 |
condition_array.push("fails");
|
1262 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1263 |
$(element).find('.select2-selection').focus();
|
1278 |
case 'cart_item_product_attributes':
|
1279 |
let wc_attributes = $(element).find('.awdr-attribute-validation').val();
|
1280 |
let attribute_qty = $(element).find('.awdr-num-validation').val();
|
1281 |
+
if (wc_attributes.length == 0) {
|
1282 |
condition_array.push("fails");
|
1283 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1284 |
$(element).find('.select2-selection').focus();
|
1296 |
case 'cart_item_product_category':
|
1297 |
let wc_category = $(element).find('.awdr-category-validation').val();
|
1298 |
let category_qty = $(element).find('.awdr-num-validation').val();
|
1299 |
+
if (wc_category.length == 0) {
|
1300 |
condition_array.push("fails");
|
1301 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1302 |
$(element).find('.select2-selection').focus();
|
1316 |
let min_qty = $(element).find('.product_from_qty').val();
|
1317 |
let max_qty = $(element).find('.product_to_qty').val();
|
1318 |
let combination_operator = $(element).find('.combination_operator').val();
|
1319 |
+
if (wc_product.length == 0) {
|
1320 |
condition_array.push("fails");
|
1321 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1322 |
$(element).find('.select2-selection').focus();
|
1347 |
case 'cart_item_product_sku':
|
1348 |
let wc_sku = $(element).find('.awdr-sku-validation').val();
|
1349 |
let sku_qty = $(element).find('.awdr-num-validation').val();
|
1350 |
+
if (wc_sku.length == 0) {
|
1351 |
condition_array.push("fails");
|
1352 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1353 |
$(element).find('.select2-selection').focus();
|
1365 |
case 'cart_item_product_tags':
|
1366 |
let wc_tags = $(element).find('.awdr-tag-validation').val();
|
1367 |
let tag_qty = $(element).find('.awdr-num-validation').val();
|
1368 |
+
if (wc_tags.length == 0) {
|
1369 |
condition_array.push("fails");
|
1370 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1371 |
$(element).find('.select2-selection').focus();
|
1383 |
case 'cart_item_products':
|
1384 |
let wc_products = $(element).find('.awdr-product-validation').val();
|
1385 |
let product_qty = $(element).find('.awdr-num-validation').val();
|
1386 |
+
if (wc_products.length == 0) {
|
1387 |
condition_array.push("fails");
|
1388 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1389 |
$(element).find('.select2-selection').focus();
|
1403 |
let from_qty = $(element).find('.cat_from_qty').val();
|
1404 |
let to_qty = $(element).find('.cat_to_qty').val();
|
1405 |
let cat_combination = $(element).find('.cat_combination_operator').val();
|
1406 |
+
if (wc_cat.length == 0) {
|
1407 |
condition_array.push("fails");
|
1408 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1409 |
$(element).find('.select2-selection').focus();
|
1461 |
break;
|
1462 |
case 'order_days':
|
1463 |
let order_days = $(element).find('.order_days').val();
|
1464 |
+
if (order_days.length == 0) {
|
1465 |
condition_array.push("fails");
|
1466 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1467 |
$(element).find('.select2-selection').focus();
|
1485 |
break;
|
1486 |
case 'purchase_last_order':
|
1487 |
let last_order = $(element).find('.wdr-wc-order-status').val();
|
1488 |
+
if (last_order.length == 0) {
|
1489 |
condition_array.push("fails");
|
1490 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1491 |
$(element).find('.select2-selection').focus();
|
1496 |
case 'purchase_last_order_amount':
|
1497 |
let last_order_amount_status = $(element).find('.wdr-wc-order-status').val();
|
1498 |
let last_order_amount = $(element).find('.float_only_field').val();
|
1499 |
+
if (last_order_amount_status.length == 0) {
|
1500 |
condition_array.push("fails");
|
1501 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1502 |
$(element).find('.select2-selection').focus();
|
1514 |
case 'purchase_previous_orders':
|
1515 |
let made_order_status = $(element).find('.wdr-wc-order-status').val();
|
1516 |
let made_order_amount = $(element).find('.float_only_field').val();
|
1517 |
+
if (made_order_status.length == 0) {
|
1518 |
condition_array.push("fails");
|
1519 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1520 |
$(element).find('.select2-selection').focus();
|
1533 |
let made_order_status_for_product = $(element).find('.wdr-wc-order-status').val();
|
1534 |
let made_order_amount_for_product = $(element).find('.float_only_field').val();
|
1535 |
let ordered_product = $(element).find('.specific_product').val();
|
1536 |
+
if (ordered_product.length == 0) {
|
1537 |
condition_array.push("fails");
|
1538 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').css("border", "1px solid red");
|
1539 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').focus();
|
1540 |
} else {
|
1541 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').css("border", "1px solid #7e8993");
|
1542 |
}
|
1543 |
+
if (made_order_status_for_product.length == 0) {
|
1544 |
condition_array.push("fails");
|
1545 |
$(element).find('.wdr-previous-order-product-status .select2-selection').css("border", "1px solid red");
|
1546 |
$(element).find('.wdr-previous-order-product-status .select2-selection').focus();
|
1566 |
} else {
|
1567 |
$(element).find('.wdr-previous-order-product-selector .select2-selection').css("border", "1px solid #7e8993");
|
1568 |
}
|
1569 |
+
if (status_for_product_qty.length == 0) {
|
1570 |
condition_array.push("fails");
|
1571 |
$(element).find('.wdr-previous-order-product-status .select2-selection').css("border", "1px solid red");
|
1572 |
$(element).find('.wdr-previous-order-product-status .select2-selection').focus();
|
1585 |
case 'purchase_spent':
|
1586 |
let spent_status = $(element).find('.wdr-wc-order-status').val();
|
1587 |
let spent_amount = $(element).find('.float_only_field').val();
|
1588 |
+
if (spent_status.length == 0) {
|
1589 |
condition_array.push("fails");
|
1590 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1591 |
$(element).find('.select2-selection').focus();
|
1612 |
break;
|
1613 |
case 'shipping_country':
|
1614 |
let shipping_country = $(element).find('.get_awdr_shipping_country').val();
|
1615 |
+
if (shipping_country.length == 0) {
|
1616 |
condition_array.push("fails");
|
1617 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1618 |
$(element).find('.select2-selection').focus();
|
1623 |
case 'shipping_state':
|
1624 |
let shipping_state = $(element).find('.get_awdr_shipping_state').val();
|
1625 |
let shipping_state_based_country = $(element).find('.get_awdr_state_based_country').val();
|
1626 |
+
if (shipping_state.length == 0) {
|
1627 |
condition_array.push("fails");
|
1628 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1629 |
$(element).find('.select2-selection').focus();
|
1631 |
$(element).find('.select2-selection').css("border", "1px solid #7e8993");
|
1632 |
}
|
1633 |
|
1634 |
+
if (shipping_state_based_country.length == 0) {
|
1635 |
condition_array.push("fails");
|
1636 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1637 |
$(element).find('.select2-selection').focus();
|
1671 |
break;
|
1672 |
case 'user_list':
|
1673 |
let user_list = $(element).find('.wdr_user_list').val();
|
1674 |
+
if (user_list.length == 0) {
|
1675 |
condition_array.push("fails");
|
1676 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1677 |
$(element).find('.select2-selection').focus();
|
1681 |
break;
|
1682 |
case 'user_role':
|
1683 |
let user_role = $(element).find('.wdr_user_role').val();
|
1684 |
+
if (user_role.length == 0) {
|
1685 |
condition_array.push("fails");
|
1686 |
$(element).find('.select2-selection').css("border", "1px solid red");
|
1687 |
$(element).find('.select2-selection').focus();
|
2130 |
/**
|
2131 |
* sorting rule priority
|
2132 |
*/
|
2133 |
+
var isMobile = false;
|
2134 |
+
if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|
2135 |
+
|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {
|
2136 |
+
isMobile = true;
|
2137 |
+
}
|
2138 |
+
function desktopDrogAndDrop(){
|
2139 |
+
$("#sortable").sortable({
|
2140 |
+
delay: 150,
|
2141 |
+
stop: function (event, ui) {
|
2142 |
+
var selectedData = new Array();
|
2143 |
+
$('#sortable>tr').each(function () {
|
2144 |
+
selectedData.push($(this).attr("id"));
|
2145 |
+
});
|
2146 |
+
updatePriorityOrder(selectedData);
|
2147 |
+
}
|
2148 |
+
});
|
2149 |
+
}
|
2150 |
+
|
2151 |
+
function responsiveDrogAndDrop(){
|
2152 |
+
$('#sortable').sortable({
|
2153 |
+
handle: ".awdr-sortable-handle",
|
2154 |
+
delay: 150,
|
2155 |
+
stop: function (event, ui) {
|
2156 |
+
var selectedData = new Array();
|
2157 |
+
$('#sortable>tr').each(function () {
|
2158 |
+
selectedData.push($(this).attr("id"));
|
2159 |
+
});
|
2160 |
+
updatePriorityOrder(selectedData);
|
2161 |
+
}
|
2162 |
+
});
|
2163 |
+
}
|
2164 |
+
|
2165 |
+
if($(window).width() > 1024){
|
2166 |
+
if(isMobile == true){
|
2167 |
+
responsiveDrogAndDrop();
|
2168 |
+
}else{
|
2169 |
+
desktopDrogAndDrop();
|
2170 |
}
|
2171 |
+
}else{
|
2172 |
+
responsiveDrogAndDrop();
|
2173 |
+
}
|
2174 |
|
2175 |
function updatePriorityOrder(data) {
|
2176 |
$.ajax({
|
2517 |
$('.awdr-discount-container').show();
|
2518 |
$('.' + data_placement).find('.bulk_range_setter_group').addClass('bulk_range_setter').attr('id', 'bulk_adjustment_sortable');
|
2519 |
$('.' + data_placement).find('.set_range_setter_group').addClass('set_range_setter').attr('id', 'bulk_adjustment_sortable');
|
2520 |
+
|
2521 |
+
if($(window).width() > 1024){
|
2522 |
+
if(isMobile == true){
|
2523 |
+
$('#bulk_adjustment_sortable').sortable({
|
2524 |
+
handle: ".awdr-sortable-handle",
|
2525 |
+
});
|
2526 |
+
}else{
|
2527 |
+
$('#bulk_adjustment_sortable').sortable();
|
2528 |
+
}
|
2529 |
+
}else{
|
2530 |
+
$('#bulk_adjustment_sortable').sortable({
|
2531 |
+
handle: ".awdr-sortable-handle",
|
2532 |
+
});
|
2533 |
+
}
|
2534 |
+
|
2535 |
$("#bulk_adjustment_sortable").disableSelection();
|
2536 |
$('.awdr-filter-heading').html(wdr_data.localization_data.common_filter_heading);
|
2537 |
$('.awdr-filter-content').html(wdr_data.localization_data.common_filter_description);
|
2652 |
$(document).on('change', '.on_sale_badge_condition', function () {
|
2653 |
if ($(this).val() === 'disabled') {
|
2654 |
$('.sale_badge_toggle').hide();
|
2655 |
+
$('.sale_badge_customizer,.sale_badge_percentage_customizer').hide();
|
2656 |
} else {
|
2657 |
$('.sale_badge_toggle').show();
|
2658 |
if ($('#customize_on_sale_badge').prop("checked") == true) {
|
2659 |
$('.sale_badge_customizer').show();
|
2660 |
+
$('.display_percentage_on_sale_badge_con').show();
|
2661 |
} else {
|
2662 |
$('.sale_badge_customizer').hide();
|
2663 |
+
$('#display_percentage_on_sale_badge').prop('checked', false).trigger('change');
|
2664 |
+
$('.display_percentage_on_sale_badge_con').hide();
|
2665 |
+
}
|
2666 |
+
if ($('#display_percentage_on_sale_badge').prop("checked") == true) {
|
2667 |
+
$('.sale_badge_percentage_customizer').show();
|
2668 |
+
} else {
|
2669 |
+
$('.sale_badge_percentage_customizer').hide();
|
2670 |
}
|
2671 |
}
|
2672 |
});
|
2673 |
$(document).on('change', '#customize_on_sale_badge', function () {
|
2674 |
if ($(this).prop("checked") == true) {
|
2675 |
$('.sale_badge_customizer').show();
|
2676 |
+
$('.display_percentage_on_sale_badge_con').show();
|
2677 |
} else {
|
2678 |
$('.sale_badge_customizer').hide();
|
2679 |
+
$('#display_percentage_on_sale_badge').prop('checked', false).trigger('change');
|
2680 |
+
$('.display_percentage_on_sale_badge_con').hide();
|
2681 |
+
}
|
2682 |
+
});
|
2683 |
+
$(document).on('change', '#display_percentage_on_sale_badge', function () {
|
2684 |
+
if ($(this).prop("checked") == true) {
|
2685 |
+
$('.sale_badge_percentage_customizer').show();
|
2686 |
+
} else {
|
2687 |
+
$('.sale_badge_percentage_customizer').hide();
|
2688 |
}
|
2689 |
});
|
2690 |
$(document).on('change', '#badge_colorpicker', function () {
|
2753 |
|
2754 |
$(document).on('change', '.get_awdr_state_based_country', function (){
|
2755 |
let selected_country = $(this).val();
|
2756 |
+
if(!selected_country || selected_country == '' || selected_country.length == 0){
|
2757 |
return false;
|
2758 |
}
|
2759 |
let selected_index = $(this).parents('.wdr-conditions-container').attr('data-index');
|
v2/Assets/Js/admin_script.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(document).ready(function(e){const d={counts:1};function t(d){let t=d.val(),a=d.parents(".wdr-conditions-container").attr("data-index");"greater_than_or_equal"==t||"greater_than"==t?e(".promo_show_hide_"+a).show():e(".promo_show_hide_"+a).hide()}function a(t,a){e.ajax({data:{method:"rebuild_onsale_list",action:"wdr_ajax",rules:t,awdr_nonce:a.attr("data-awdr_nonce")},type:"post",url:ajaxurl,error:function(e,t){l(wdr_data.localization_data.error,"error",d),a.removeAttr("disabled")},success:function(e){a.html(wdr_data.localization_data.rebuild_on_sale_list_processed_text),a.removeAttr("disabled")}})}function i(d){d.selectWoo({width:"100%",minimumInputLength:1,placeholder:d.data("placeholder"),escapeMarkup:function(e){return e},language:{noResults:function(){return wdr_data.labels.select2_no_results},errorLoading:function(){return wdr_data.labels.searching_text}},ajax:{url:ajaxurl,type:"POST",dataType:"json",delay:250,data:function(t){return{query:t.term,action:"wdr_ajax",method:d.data("list")||"products",awdr_nonce:e("input[name=wdr_ajax_select2]").val()||"",taxonomy:d.data("taxonomy")||"",selected:d.val()}},processResults:function(e){return{results:e.data||[]}}}}),d.parent().find(".select2-search__field").css("width","100%")}function o(e){return 0===e?0:parseInt(e)+1}function r(){let d=[];return e(".wdr-filter-group").each(function(t,a){let i=e(a).find(".wdr-product-filter-type").val(),o=e(a).find(".awdr_validation").val();switch(i){case"all_products":break;case"products":case"product_category":case"product_attributes":case"product_tags":case"product_sku":0==o.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"product_on_sale":break;default:0==o.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993")}}),d}function s(d){let t=[];switch(d){case"wdr_simple_discount":let a=e(".product_discount_value").val();""!=a&&a?e(".product_discount_value").css("border","1px solid #7e8993"):(t.push("fails"),e(".product_discount_value").css("border","1px solid red"),e(".product_discount_value").focus());break;case"wdr_cart_discount":let i=e(".awdr_cart_discount_value").val();""!=i&&i?e(".awdr_cart_discount_value").css("border","1px solid #7e8993"):(t.push("fails"),e(".awdr_cart_discount_value").css("border","1px solid red"),e(".awdr_cart_discount_value").focus());break;case"wdr_free_shipping":break;case"wdr_bulk_discount":e(".bulk_range_setter").find(".awdr-bulk-group").each(function(d,a){let i=e(a).find(".bulk_discount_min").val(),o=e(a).find(".bulk_discount_max").val(),r=e(a).find(".bulk_discount_value").val();""==i&&""==o?(t.push("fails"),e(a).find(".bulk_discount_min").css("border","1px solid red"),e(a).find(".bulk_discount_min").focus(),e(a).find(".bulk_discount_max").css("border","1px solid red"),e(a).find(".bulk_discount_max").focus()):(e(a).find(".bulk_discount_min").css("border","1px solid #7e8993"),e(a).find(".bulk_discount_max").css("border","1px solid #7e8993"));let s=parseInt(r);""==r||s<0?(t.push("fails"),e(a).find(".bulk_discount_value").css("border","1px solid red"),e(a).find(".bulk_discount_value").focus()):e(a).find(".bulk_discount_value").css("border","1px solid #7e8993")});break;case"wdr_set_discount":e(".set_range_setter").find(".bundle-set-range-main").each(function(d,a){let i=e(a).find(".set_discount_min").val(),o=e(a).find(".set_discount_value").val();""==i?(t.push("fails"),e(a).find(".set_discount_min").css("border","1px solid red"),e(a).find(".set_discount_min").focus()):e(a).find(".set_discount_min").css("border","1px solid #7e8993"),""==o?(t.push("fails"),e(a).find(".set_discount_value").css("border","1px solid red"),e(a).find(".set_discount_value").focus()):e(a).find(".set_discount_value").css("border","1px solid #7e8993")});break;case"wdr_buy_x_get_x_discount":e(".buyx_getx_range_setter").find(".buyx_getx_individual_range").each(function(d,a){let i=e(a).find(".bxgx-min").val(),o=e(a).find(".bxgx-max").val(),r=e(a).find(".bxgx-qty").val(),s=e(a).find(".buyx_getx_discount_select").val(),n=e(a).find(".bxgx-value").val();1==e(a).find(".awdr-bogo-recurcive").prop("checked")&&(""==i?(t.push("fails"),e(a).find(".bxgx-min").css("border","1px solid red"),e(a).find(".bxgx-min").focus()):e(a).find(".bxgx-min").css("border","1px solid #7e8993")),""==i&&""==o?(t.push("fails"),e(a).find(".bxgx-min").css("border","1px solid red"),e(a).find(".bxgx-min").focus(),e(a).find(".bxgx-max").css("border","1px solid red"),e(a).find(".bxgx-max").focus()):(e(a).find(".bxgx-min").css("border","1px solid #7e8993"),e(a).find(".bxgx-max").css("border","1px solid #7e8993")),""==r?(t.push("fails"),e(a).find(".bxgx-qty").css("border","1px solid red"),e(a).find(".bxgx-qty").focus()):e(a).find(".bxgx-qty").css("border","1px solid #7e8993"),"free_product"!=s&&""==n?(t.push("fails"),e(a).find(".bxgx-value").css("border","1px solid red"),e(a).find(".bxgx-value").focus()):e(a).find(".bxgx-value").css("border","1px solid #7e8993")});break;case"wdr_buy_x_get_y_discount":let o=e(".select_bxgy_type").val();e(".awdr_buyx_gety_range_setter").find(".buyx_gety_individual_range").each(function(d,a){let i=e(a).find(".bxgy-min").val(),r=e(a).find(".bxgy-max").val(),s=e(a).find(".bxgy-product-selector").val(),n=e(a).find(".bxgy-category-selector").val(),l=e(a).find(".bxgy-qty").val(),c=e(a).find(".buyx_gety_discount_select").val(),_=e(a).find(".bxgy-val").val();"bxgy_product"==o?0==s.length?(t.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"):"bxgy_category"==o?0==n.length?(t.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"):"0"!=o&&o?e(".select_bxgy_type").css("border","1px solid #7e8993"):(t.push("fails"),e(".select_bxgy_type").css("border","1px solid red"),e(".select_bxgy_type").focus()),1==e(a).find(".awdr-bogo-recurcive").prop("checked")&&(""==i?(t.push("fails"),e(a).find(".bxgy-min").css("border","1px solid red"),e(a).find(".bxgy-min").focus()):e(a).find(".bxgy-min").css("border","1px solid #7e8993")),""==i&&""==r?(t.push("fails"),e(a).find(".bxgy-min").css("border","1px solid red"),e(a).find(".bxgy-min").focus(),e(a).find(".bxgy-max").css("border","1px solid red"),e(a).find(".bxgy-max").focus()):(e(a).find(".bxgy-min").css("border","1px solid #7e8993"),e(a).find(".bxgy-max").css("border","1px solid #7e8993")),""==l?(t.push("fails"),e(a).find(".bxgy-qty").css("border","1px solid red"),e(a).find(".bxgy-qty").focus()):e(a).find(".bxgy-qty").css("border","1px solid #7e8993"),"free_product"!=c&&""==_?(t.push("fails"),e(a).find(".bxgy-val").css("border","1px solid red"),e(a).find(".bxgy-val").focus()):e(a).find(".bxgy-val").css("border","1px solid #7e8993")});break;default:case"not_selected":t.push("fails")}return t}function n(){let d=[];return e(".wdr-condition-group").each(function(t,a){let i=e(a).find(".wdr-product-condition-type").val();if(void 0!==i)switch(i){case"cart_subtotal":""==e(a).find(".float_only_field").val()?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"cart_items_quantity":""==e(a).find(".float_only_field").val()?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"cart_coupon":let t=e(a).find(".wdr_copon_type").val(),o=e(a).find(".coupon_name_msg").val(),r=e(a).find("#rm-coupon").val();"custom_coupon"==t?""==o?(d.push("fails"),e(a).find(".coupon_name_msg").css("border","1px solid red"),e(a).find(".coupon_name_msg").focus()):e(a).find(".coupon_name_msg").css("border","1px solid #7e8993"):r?e(a).find(".select2-selection").css("border","1px solid #7e8993"):(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus());break;case"cart_items_weight":""==e(a).find(".float_only_field").val()?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"cart_payment_method":0==e(a).find(".select2-hidden-accessible").val().length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"cart_line_items_count":""==e(a).find(".float_only_field").val()?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"cart_item_product_attributes":let s=e(a).find(".awdr-attribute-validation").val(),n=e(a).find(".awdr-num-validation").val();0==s.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==n?(d.push("fails"),e(a).find(".awdr-num-validation").css("border","1px solid red"),e(a).find(".awdr-num-validation").focus()):e(a).find(".awdr-num-validation").css("border","1px solid #7e8993");break;case"cart_item_product_category":let l=e(a).find(".awdr-category-validation").val(),c=e(a).find(".awdr-num-validation").val();0==l.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==c?(d.push("fails"),e(a).find(".awdr-num-validation").css("border","1px solid red"),e(a).find(".awdr-num-validation").focus()):e(a).find(".awdr-num-validation").css("border","1px solid #7e8993");break;case"cart_item_product_combination":let _=e(a).find(".awdr-product-validation").val(),u=e(a).find(".product_from_qty").val(),p=e(a).find(".product_to_qty").val(),f=e(a).find(".combination_operator").val();0==_.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),"in_range"==f?""==u&&""==p?(d.push("fails"),e(a).find(".product_from_qty").css("border","1px solid red"),e(a).find(".product_from_qty").focus(),e(a).find(".product_to_qty").css("border","1px solid red"),e(a).find(".product_to_qty").focus()):(e(a).find(".product_from_qty").css("border","1px solid #7e8993"),e(a).find(".product_to_qty").css("border","1px solid #7e8993")):""==u?(d.push("fails"),e(a).find(".product_from_qty").css("border","1px solid red"),e(a).find(".product_from_qty").focus()):e(a).find(".product_from_qty").css("border","1px solid #7e8993");break;case"cart_item_product_sku":let w=e(a).find(".awdr-sku-validation").val(),h=e(a).find(".awdr-num-validation").val();0==w.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==h?(d.push("fails"),e(a).find(".awdr-num-validation").css("border","1px solid red"),e(a).find(".awdr-num-validation").focus()):e(a).find(".awdr-num-validation").css("border","1px solid #7e8993");break;case"cart_item_product_tags":let b=e(a).find(".awdr-tag-validation").val(),m=e(a).find(".awdr-num-validation").val();0==b.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==m?(d.push("fails"),e(a).find(".awdr-num-validation").css("border","1px solid red"),e(a).find(".awdr-num-validation").focus()):e(a).find(".awdr-num-validation").css("border","1px solid #7e8993");break;case"cart_item_products":let g=e(a).find(".awdr-product-validation").val(),v=e(a).find(".awdr-num-validation").val();0==g.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==v?(d.push("fails"),e(a).find(".awdr-num-validation").css("border","1px solid red"),e(a).find(".awdr-num-validation").focus()):e(a).find(".awdr-num-validation").css("border","1px solid #7e8993");break;case"cart_item_category_combination":let x=e(a).find(".awdr-cat-validation").val(),y=e(a).find(".cat_from_qty").val(),k=e(a).find(".cat_to_qty").val(),z=e(a).find(".cat_combination_operator").val();0==x.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),"in_range"==z?""==y&&""==k?(d.push("fails"),e(a).find(".cat_from_qty").css("border","1px solid red"),e(a).find(".cat_from_qty").focus(),e(a).find(".cat_to_qty").css("border","1px solid red"),e(a).find(".cat_to_qty").focus()):(e(a).find(".cat_from_qty").css("border","1px solid #7e8993"),e(a).find(".cat_to_qty").css("border","1px solid #7e8993")):""==y?(d.push("fails"),e(a).find(".cat_from_qty").css("border","1px solid red"),e(a).find(".cat_from_qty").focus()):e(a).find(".cat_from_qty").css("border","1px solid #7e8993");break;case"order_date":let q=e(a).find(".awdr-from-date").val(),j=e(a).find(".awdr-end-date").val();""==q&&""==j?(d.push("fails"),e(a).find(".awdr-from-date").css("border","1px solid red"),e(a).find(".awdr-from-date").focus(),e(a).find(".awdr-end-date").css("border","1px solid red"),e(a).find(".awdr-end-date").focus()):(e(a).find(".awdr-from-date").css("border","1px solid #7e8993"),e(a).find(".awdr-end-date").css("border","1px solid #7e8993"));break;case"order_date_and_time":let I=e(a).find(".awdr-from-date").val(),O=e(a).find(".awdr-end-date").val();""==I&&""==O?(d.push("fails"),e(a).find(".awdr-from-date").css("border","1px solid red"),e(a).find(".awdr-from-date").focus(),e(a).find(".awdr-end-date").css("border","1px solid red"),e(a).find(".awdr-end-date").focus()):(e(a).find(".awdr-from-date").css("border","1px solid #7e8993"),e(a).find(".awdr-end-date").css("border","1px solid #7e8993"));break;case"order_days":0==e(a).find(".order_days").val().length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"order_time":let T=e(a).find(".wdr-from-time").val(),C=e(a).find(".wdr-to-time").val();""==T&&""==C?(d.push("fails"),e(a).find(".wdr-from-time").css("border","1px solid red"),e(a).find(".wdr-from-time").focus(),e(a).find(".wdr-to-time").css("border","1px solid red"),e(a).find(".wdr-to-time").focus()):(e(a).find(".wdr-from-time").css("border","1px solid #7e8993"),e(a).find(".wdr-to-time").css("border","1px solid #7e8993"));break;case"purchase_last_order":0==e(a).find(".wdr-wc-order-status").val().length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"purchase_last_order_amount":let S=e(a).find(".wdr-wc-order-status").val(),A=e(a).find(".float_only_field").val();0==S.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==A?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"purchase_previous_orders":let D=e(a).find(".wdr-wc-order-status").val(),R=e(a).find(".float_only_field").val();0==D.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==R?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"purchase_previous_orders_for_specific_product":let M=e(a).find(".wdr-wc-order-status").val(),F=e(a).find(".float_only_field").val();0==e(a).find(".specific_product").val().length?(d.push("fails"),e(a).find(".wdr-previous-order-product-selector .select2-selection").css("border","1px solid red"),e(a).find(".wdr-previous-order-product-selector .select2-selection").focus()):e(a).find(".wdr-previous-order-product-selector .select2-selection").css("border","1px solid #7e8993"),0==M.length?(d.push("fails"),e(a).find(".wdr-previous-order-product-status .select2-selection").css("border","1px solid red"),e(a).find(".wdr-previous-order-product-status .select2-selection").focus()):e(a).find(".wdr-previous-order-product-status .select2-selection").css("border","1px solid #7e8993"),""==F?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"purchase_quantities_for_specific_product":let B=e(a).find(".wdr-wc-order-status").val(),L=e(a).find(".float_only_field").val();e(a).find(".specific_product").val()?e(a).find(".wdr-previous-order-product-selector .select2-selection").css("border","1px solid #7e8993"):(d.push("fails"),e(a).find(".wdr-previous-order-product-selector .select2-selection").css("border","1px solid red"),e(a).find(".wdr-previous-order-product-selector .select2-selection").focus()),0==B.length?(d.push("fails"),e(a).find(".wdr-previous-order-product-status .select2-selection").css("border","1px solid red"),e(a).find(".wdr-previous-order-product-status .select2-selection").focus()):e(a).find(".wdr-previous-order-product-status .select2-selection").css("border","1px solid #7e8993"),""==L?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"purchase_spent":let Y=e(a).find(".wdr-wc-order-status").val(),E=e(a).find(".float_only_field").val();0==Y.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),""==E?(d.push("fails"),e(a).find(".float_only_field").css("border","1px solid red"),e(a).find(".float_only_field").focus()):e(a).find(".float_only_field").css("border","1px solid #7e8993");break;case"shipping_city":""==e(a).find(".awdr-validation").val()?(d.push("fails"),e(a).find(".awdr-validation").css("border","1px solid red"),e(a).find(".awdr-validation").focus()):e(a).find(".awdr-validation").css("border","1px solid #7e8993");break;case"shipping_country":0==e(a).find(".get_awdr_shipping_country").val().length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"shipping_state":let H=e(a).find(".get_awdr_shipping_state").val(),W=e(a).find(".get_awdr_state_based_country").val();0==H.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993"),0==W.length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"shipping_zipcode":""==e(a).find(".awdr-validation").val()?(d.push("fails"),e(a).find(".awdr-validation").css("border","1px solid red"),e(a).find(".awdr-validation").focus()):e(a).find(".awdr-validation").css("border","1px solid #7e8993");break;case"Billing_city":""==e(a).find(".awdr-validation").val()?(d.push("fails"),e(a).find(".awdr-validation").css("border","1px solid red"),e(a).find(".awdr-validation").focus()):e(a).find(".awdr-validation").css("border","1px solid #7e8993");break;case"user_email":""==e(a).find(".awdr-validation").val()?(d.push("fails"),e(a).find(".awdr-validation").css("border","1px solid red"),e(a).find(".awdr-validation").focus()):e(a).find(".awdr-validation").css("border","1px solid #7e8993");break;case"user_list":0==e(a).find(".wdr_user_list").val().length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993");break;case"user_role":0==e(a).find(".wdr_user_role").val().length?(d.push("fails"),e(a).find(".select2-selection").css("border","1px solid red"),e(a).find(".select2-selection").focus()):e(a).find(".select2-selection").css("border","1px solid #7e8993")}}),d}function l(d,t="success",a=null){switch(t){case"error":var i="wdr-alert-error";break;case"warning":i="wdr-alert-warning";break;default:case"success":i="wdr-alert-success"}let o="wdr-notify-msg-"+a.counts,r='<div style="display: none;" class="wdr-alert '+i+'" id="'+o+'">'+d+"</div>";e("#notify-msg-holder").append(r);let s=e("#"+o);var n=a.counts;a.counts=parseInt(n)+parseInt(1),s.fadeIn(500),setTimeout(function(){s.fadeOut(500),s.remove()},5e3)}e(".wdr-btn-add-product-filter").click(function(){wdr_buildrule.show_hide_rule_block({showBlockId:".wdr-filter-block",hideBlockId:".wdr-discount-template, .wdr-advanced-layout-block",thisObject:this})}),e(".add-product-filter").click(function(){var d=e(".wdr-filter-group-items").children().last().attr("data-index");d=o(d),wdr_buildrule.wdr_clone_field({addFilterType:".wdr-build-filter-type",addFilterMethod:".products",addRemoveIcon:".wdr-icon-remove",ruleAppendTo:".wdr-filter-group-items",newIndex:d}),i(e('.wdr-filter-group[data-index="'+d+'"]').find('[data-field="autocomplete"]')),e(".wdr-filter-group[data-index="+d+"]").append("<div class='wdr_filter_desc_text'>"+wdr_data.localization_data.filter_products+"</div>")}),e(document).on("click",".remove-current-row",function(){e(".wdr-filter-group-items > div").length>=2&&wdr_buildrule.remove_wdr_field_group({parentsRow:".wdr-filter-group",thisObject:this})}),e(document).on("change",".wdr-product-filter-type",function(){let d=e(this).parents(".wdr-filter-group").data("index"),t=e(this).val();switch(wdr_buildrule.remove_wdr_field_group({parentRow:e(this).parent()}),wdr_buildrule.wdr_clone_field({addFilterMethod:"."+t,addRemoveIcon:".wdr-icon-remove",ruleAppendTo:e(this).parents(".wdr-filter-group"),newIndex:d}),t){case"products":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_products+"</div>");break;case"product_category":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_Category+"</div>");break;case"product_attributes":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_Attributes+"</div>");break;case"product_tags":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_Tags+"</div>");break;case"product_sku":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_SKUs+"</div>");break;case"product_on_sale":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_On_sale_products+"</div>");break;case"all_products":e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_all_products+"</div>");break;default:e('.wdr-filter-group[data-index="'+d+'"]').append('<div class="wdr_filter_desc_text">'+wdr_data.localization_data.filter_custom_taxonomies+"</div>")}i(e(this).parents(".wdr-filter-group").find('[data-field="autocomplete"]'))}),e(".wdr-btn-add-condition").click(function(){wdr_buildrule.show_hide_rule_block({showBlockId:".wdr-condition-template",hideBlockId:".wdr-filter-block, .wdr-discount-template, .wdr-advanced-layout-block",thisObject:this})}),e(".add-product-condition").click(function(){var d=e(".wdr-condition-group-items").children().last().attr("data-index");d=o(d),wdr_buildrule.wdr_clone_field({addConditionType:".wdr-build-condition-type",addFilterMethod:".cart_subtotal",addRemoveIcon:".wdr-icon-remove",ruleAppendTo:".wdr-condition-group-items",newIndex:d}),"1"==wdr_data.enable_subtotal_promo_text&&wdr_buildrule.wdr_clone_field({addConditionType:"empty-promo",addFilterMethod:".wdr-subtotal-promo-messeage-main",addRemoveIcon:".wdr-icon-remove",ruleAppendTo:".wdr-condition-group-items",newIndex:d}),e(".subtotal_operator").trigger("change")}),e(document).on("change",".subtotal_operator",function(){"1"==wdr_data.enable_subtotal_promo_text&&t(e(this))}),e(document).on("change",".wdr_quantity_operator",function(){"1"==wdr_data.enable_cart_quantity_promo_text&&t(e(this))}),e(document).on("click",".remove-current-row",function(){if(e(".wdr-condition-group-items > div").length>=2&&(wdr_buildrule.remove_wdr_field_group({parentsRow:".wdr-conditions-container",thisObject:this}),"1"==wdr_data.enable_subtotal_promo_text||"1"==wdr_data.enable_cart_quantity_promo_text)){let d=e(this).parent(".wdr-btn-remove").siblings(".wdr-condition-type").find(".wdr-product-condition-type").val();if("cart_subtotal"==d){let d=e(this).parents(".wdr-conditions-container").attr("data-index");e(".promo_show_hide_"+d).remove()}if("cart_items_quantity"==d){let d=e(this).parents(".wdr-conditions-container").attr("data-index");e(".promo_show_hide_"+d).remove()}}}),e(document).on("change",".wdr-product-condition-type",function(){var d=e(this).parents(".wdr-condition-group").data("index"),t=e(this).val();wdr_buildrule.remove_wdr_field_group({parentRow:e(this).parent()}),wdr_buildrule.wdr_clone_field({addFilterMethod:"."+t,addRemoveIcon:".wdr-icon-remove",ruleAppendTo:e(this).parents(".wdr-conditions-container"),newIndex:d});var a=e(this).parents(".wdr-conditions-container").attr("data-index");"undefined"!=e(".promo_show_hide_"+a)[0]&&e(".promo_show_hide_"+a).remove(),"order_time"==t?e(".wdr_time_picker").datetimepicker({datepicker:!1,format:"H:i"}):"cart_subtotal"==t?("1"==wdr_data.enable_subtotal_promo_text&&wdr_buildrule.wdr_clone_field({addConditionType:"empty-promo",addFilterMethod:".wdr-subtotal-promo-messeage-main",addRemoveIcon:".wdr-icon-remove",ruleAppendTo:".wdr-condition-group-items",newIndex:d}),e(".subtotal_operator").trigger("change")):"cart_items_quantity"==t&&("1"==wdr_data.enable_cart_quantity_promo_text&&wdr_buildrule.wdr_clone_field({addConditionType:"empty-promo",addFilterMethod:".wdr-cart-quantity-promo-messeage-main",addRemoveIcon:".wdr-icon-remove",ruleAppendTo:".wdr-condition-group-items",newIndex:d}),e(".wdr_quantity_operator").trigger("change")),i(e(this).parents(".wdr-conditions-container").find('[data-field="autocomplete"]')),e(this).parents(".wdr-conditions-container").find('[data-field="preloaded"]').each(function(d,t){var a=e(t),i=wdr_data.lists[a.data("list")];a.selectWoo({width:"100%",escapeMarkup:function(e){return e},minimumInputLength:1,placeholder:a.data("placeholder"),language:{noResults:function(){return wdr_data.labels.select2_no_results}},data:i}),a.parent().find(".select2-search__field").css("width","100%")}),function(d){d.each(function(d,t){var a=e(t),i=wdr_data.lists[a.data("list")];a.selectWoo({width:"100%",escapeMarkup:function(e){return e},placeholder:a.data("placeholder"),language:{noResults:function(){return wdr_data.labels.select2_no_results}},data:i}),a.parent().find(".select2-search__field").css("width","100%")})}(e(this).parents(".wdr-conditions-container").find('[data-field="autoloaded"]')),function(d){d.each(function(d,t){var a=e(t),i=a.data("class");"start_dateonly"==i?e('[data-class="'+i+'"]').datetimepicker({format:"Y-m-d",onShow:function(d){this.setOptions({maxDate:!!e('[data-class="end_dateonly"]').val()&&e('[data-class="end_dateonly"]').val()})},timepicker:!1}):"end_dateonly"==i?e('[data-class="'+i+'"]').datetimepicker({format:"Y-m-d",onShow:function(d){this.setOptions({minDate:!!e('[data-class="start_dateonly"]').val()&&e('[data-class="start_dateonly"]').val()})},timepicker:!1}):"start_datetimeonly"==i?e('[data-class="'+i+'"]').datetimepicker({timepicker:!0,format:"Y-m-d H:i",onShow:function(d){this.setOptions({maxDate:!!e('[data-class="end_datetimeonly"]').val()&&e('[data-class="end_datetimeonly"]').val()})}}):"end_datetimeonly"==i&&e('[data-class="'+i+'"]').datetimepicker({timepicker:!0,format:"Y-m-d H:i",onShow:function(d){this.setOptions({minDate:!!e('[data-class="start_datetimeonly"]').val()&&e('[data-class="start_datetimeonly"]').val()})}})})}(e(this).parents(".wdr-conditions-container").find('[data-field="date"]'))}),e(document).on("change",".wdr_copon_type",function(){var d=e(this).val();"at_least_one_any"===d?(e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-search").css("display","none"),e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-value").css("display","none")):"none_at_all"===d?(e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-search").css("display","none"),e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-value").css("display","none")):"custom_coupon"===d?(e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-search").css("display","none"),e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-value").css("display","block")):(e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-value").css("display","none"),e(this).parents(".wdr_cart_coupon_group").find(".wdr-cart-coupon-search").css("display","block"),i(e(this).parents(".wdr-conditions-container").find('[data-field="autocomplete"]')))}),e(".wdr-btn-add-discount").click(function(){wdr_buildrule.show_hide_rule_block({showBlockId:".wdr-discount-template",hideBlockId:".wdr-filter-block, .wdr-advanced-layout-block",thisObject:this})}),e(document).on("click",".add_discount_elements",function(){var d=e(this).data("append"),t=e(this).data("discount-method"),a=e(this).data("next-starting-value"),r=e("."+d).children().last().attr("data-index");if(r=o(r),wdr_buildrule.wdr_clone_field({addFilterMethod:"."+t,ruleAppendTo:"."+d,addDiscountElement:"enable",newIndex:r}),""!=a&&"undefined"!=a){e("."+d+" "+a+":last-child").find(".awdr_value_selector").val("");let t=e("."+d+" "+a+":nth-last-child(2)").find(".awdr_auto_add_value").val();""==(t=parseInt(t)+1)||isNaN(t)||e("."+d+" "+a+":nth-last-child(1)").find(".awdr_next_value").val(t)}"add_buyx_gety_range"==t?(e(".buyx_gety_individual_range[data-index="+r+"]").find(".awdr-buyx-gety-max").show(),e(".buyx_gety_individual_range[data-index="+r+"]").find(".awdr-bogo-recurcive").prop("checked",!1),e(".wdr-buyx-gety-discount-inner").css("border-bottom","1px solid #ddd")):"add_buyx_getx_range"==t&&(e(".buyx_getx_individual_range[data-index="+r+"]").find(".awdr-buyx-getx-max").show(),e(".buyx_getx_individual_range[data-index="+r+"]").find(".awdr-bogo-recurcive").prop("checked",!1),e(".buyx_getx_individual_range").css("border-bottom","1px solid #ddd")),i(e("."+d+" div:last-child").find('[data-field="autocomplete"]')),i(e("."+d+" div:last-child").find('[data-list="product_category"]'))}),e(document).on("click",".wdr_discount_remove",function(){wdr_buildrule.remove_wdr_field_group({parentsRow:".wdr-discount-group",thisObject:this})}),e(document).on("click",'[data-click="wdr-bottombar"]',function(){var d=e(this).data("dtype");e(this).hide(),e("."+d).show()}),e(document).on("click","#awdr_rebuild_on_sale_list",function(){var d=e("#awdr_rebuild_on_sale_rules").val();e(".awdr_rebuild_on_sale_list_notice").html(""),null!=d?(e("#awdr_rebuild_on_sale_list").attr("disabled","disabled"),e("#awdr_rebuild_on_sale_list").html(wdr_data.localization_data.rebuild_on_sale_list_processing_text),a(d,e(this))):e(".awdr_rebuild_on_sale_list_notice").html(wdr_data.localization_data.rebuild_on_sale_list_error_please_select_rule)}),e(document).on("click","#awdr_rebuild_on_sale_list_on_rule_page",function(){e(this).attr("disabled","disabled"),e(this).html(wdr_data.localization_data.rebuild_on_sale_list_processing_text),a(null,e(this))}),e(document).on("click","#awdr_do_v1_v2_migration",function(){e(".wdr_migration_process").append(wdr_data.localization_data.processing_migration_text),function t(a){e.ajax({data:{method:"do_v1_v2_migration",action:"wdr_ajax",awdr_nonce:a},type:"post",url:ajaxurl,error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(i){null!=i.data.status?("completed"==i.data.status?(l(wdr_data.localization_data.processing_migration_success_message,"success",d),location.reload()):t(a),e(".wdr_migration_process_status").html(i.data.display_text)):location.reload()}})}(e(this).attr("data-awdr_nonce"))}),e(document).on("click","#awdr_skip_v1_v2_migration",function(){e(".wdr_migration_process").append(wdr_data.localization_data.skip_migration_text),e.ajax({data:{method:"skip_v1_v2_migration",action:"wdr_ajax"},type:"post",url:ajaxurl,error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(t){"failed"===t?l(wdr_data.localization_data.error,"error",d):!0===t.data&&(e(".wdr_migration_process").append(wdr_data.localization_data.skip_migration_success_message),l(wdr_data.localization_data.skip_migration_success_message,"success",d)),location.reload()}})}),e(".awdr-switch-version-button").on("click",function(d){d.preventDefault();var t=e(this).attr("data-version"),a=e(this).attr("data-page"),i=e(this).attr("data-nonce");e.ajax({url:ajaxurl,type:"POST",data:{action:"awdr_switch_version",version:t,page:a,wdr_nonce:i},success:function(d){1==d.data.status&&window.location.replace(d.data.url),e(".wdr_switch_message").html(d.data.message)}})}),e(document).on("click",".wdr_duplicate_rule",function(){let t=e(".woo_discount_loader");e.ajax({data:{rowid:e(this).data("duplicate-rule"),awdr_nonce:e(this).data("awdr_nonce"),method:"duplicate_rule",action:"wdr_ajax"},type:"post",url:ajaxurl,beforeSend:function(){t.show()},complete:function(){t.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(e){"failed"===e?l(wdr_data.localization_data.error,"error",d):l(wdr_data.localization_data.duplicate_rule,"success",d),location.reload()}})}),e(document).on("click",".wdr_delete_rule",function(){var t=e(this).closest("tr");if(confirm(wdr_data.localization_data.delete_confirm)){let a=e(".woo_discount_loader");e.ajax({data:{rowid:e(this).data("delete-rule"),awdr_nonce:e(this).data("awdr_nonce"),method:"delete_rule",action:"wdr_ajax"},type:"post",url:ajaxurl,beforeSend:function(){a.show()},complete:function(){a.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(e){"failed"===e?l(wdr_data.localization_data.error,"error",d):(l(wdr_data.localization_data.deleted_rule,"success",d),t.hide(500,function(){t.remove()}))}})}}),e(document).on("change",".wdr_manage_status",function(){let t="",a=e(this).closest("tr");t=1==e(this).prop("checked")?1:0;let i=e(".woo_discount_loader");e.ajax({data:{rowid:e(this).data("manage-status"),awdr_nonce:e(this).data("awdr_nonce"),method:"manage_status",action:"wdr_ajax",changeto:t},type:"post",url:ajaxurl,beforeSend:function(){i.show()},complete:function(){i.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(i){"failed"===i?l(wdr_data.localization_data.error,"error",d):1==t?(e(a).find(".awdr-enabled-status").show(),l(wdr_data.localization_data.enabled_rule,"success",d)):(e(a).find(".awdr-enabled-status").hide(),l(wdr_data.localization_data.disabled_rule,"success",d))}})}),e(".edit-filters").selectWoo({width:"100%",minimumInputLength:1,placeholder:wdr_data.labels.placeholders,language:{noResults:function(){return wdr_data.labels.select2_no_results}},ajax:{url:ajaxurl,type:"POST",dataType:"json",delay:250,data:function(d){return{query:d.term,action:"wdr_ajax",method:e(this).data("list")||"products",awdr_nonce:e("input[name=wdr_ajax_select2]").val()||"",taxonomy:e(this).data("taxonomy")||"",selected:e(this).val()}},processResults:function(e){return{results:e.data||[]}}}}),e(".edit-filters").parent().find(".select2-search__field").css("width","100%"),e(".edit-preloaded-values").each(function(d,t){var a=e(t),i=wdr_data.lists[a.data("list")];a.selectWoo({width:"100%",escapeMarkup:function(e){return e},minimumInputLength:1,placeholder:a.data("placeholder"),language:{noResults:function(){return wdr_data.labels.select2_no_results}},data:i}),a.parent().find(".select2-search__field").css("width","100%")}),e(".edit-all-loaded-values").each(function(d,t){var a=e(t),i=wdr_data.lists[a.data("list")];a.selectWoo({width:"100%",escapeMarkup:function(e){return e},placeholder:a.data("placeholder"),language:{noResults:function(){return wdr_data.labels.select2_no_results}},data:i}),a.parent().find(".select2-search__field").css("width","100%")}),e("#wdr-save-rule").submit(function(t){if(t.preventDefault(),!function(d){let t=e(".awdr-product-discount-type").val(),a=[],i=[],o=[];switch(t){case"wdr_simple_discount":case"wdr_cart_discount":a=r(),i=s(t),o=n();break;case"wdr_free_shipping":o=n();break;case"wdr_bulk_discount":case"wdr_set_discount":case"wdr_buy_x_get_x_discount":case"wdr_buy_x_get_y_discount":a=r(),i=s(t),o=n();break;default:case"not_selected":}if(-1!==a.indexOf("fails"))return!1;if(-1!==i.indexOf("fails"))return!1;if(-1!==o.indexOf("fails"))return!1;return!0}(e(this)))return!1;let a=e(".woo_discount_loader");e.ajax({data:e(this).serialize(),type:"post",url:ajaxurl,beforeSend:function(){a.show()},complete:function(){a.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(t){var a=t.data;if(t.success)null!=a.build_index&&null!=a.build_index.required_rebuild&&1==a.build_index.required_rebuild&&e(".awdr_rebuild_on_sale_rule_page_con").addClass("need_attention"),a.redirect?(window.location.href=a.redirect,l(wdr_data.localization_data.save_rule,"success",d)):(e(".wdr_desc_text.coupon_error_msg").hide(),e(".coupon_name_msg").css("border",""),l(wdr_data.localization_data.save_rule,"success",d));else if(a.coupon_message)e(".coupon_name_msg").css("border","1px solid #FF0000").focus(),l(wdr_data.localization_data.coupon_exists,"error",d);else for(const[e,t]of Object.entries(a))a.hasOwnProperty(e)&&t.forEach(function(e){l(e,"error",d)})}})}),e(document).on("click",".wdr_save_close",function(){e("input[name=wdr_save_close]").val("1"),e(".wdr_save_stay").click()}),e("#configuration-form").submit(function(t){t.preventDefault();let a=e(this).serialize(),i=e(".woo_discount_loader");e.ajax({data:a,type:"post",url:ajaxurl,beforeSend:function(){i.show()},complete:function(){i.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(t){switch(t.data.save_popup){case"alert_in_popup":"alert_in_popup"==t.data.save_popup&&"passed"==t.data.security_pass?(e(".awdr-save-green").show(),setTimeout(function(){e(".awdr-save-green").fadeOut(500),window.location.replace(wdr_data.admin_url+"&tab=settings")},2e3)):"alert_in_popup"==t.data.save_popup&&"fails"==t.data.security_pass&&(e(".awdr-error-red").show(),setTimeout(function(){e(".awdr-error-red").fadeOut(500),window.location.replace(wdr_data.admin_url+"&tab=settings")},2e3));break;case"alert_in_normal":"alert_in_normal"==t.data.save_popup&&"passed"==t.data.security_pass?(l(wdr_data.localization_data.save_settings,"success",d),setTimeout(function(){window.location.replace(wdr_data.admin_url+"&tab=settings")},1e3)):"alert_in_normal"==t.data.save_popup&&"fails"==t.data.security_pass&&(l(wdr_data.localization_data.error,"error",d),setTimeout(function(){window.location.replace(wdr_data.admin_url+"&tab=settings")},1e3));break;default:e(".awdr-error-red").show(),l(wdr_data.localization_data.error,"error",d),setTimeout(function(){e(".awdr-error-red").fadeOut(500),window.location.replace(wdr_data.admin_url+"&tab=settings")},1e3)}}})}),e("#awdr_advanced_configuration_form").submit(function(t){t.preventDefault();let a=e(this).serialize(),i=e(".woo_discount_loader");e.ajax({data:a,type:"post",url:ajaxurl,beforeSend:function(){i.show()},complete:function(){i.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(d){"passed"==d.data.security_pass?(e(".awdr-save-green").show(),setTimeout(function(){e(".awdr-save-green").fadeOut(500),window.location.replace(wdr_data.admin_url+"&tab=advanced_section")},2e3)):"fails"==d.data.security_pass&&(e(".awdr-error-red").show(),setTimeout(function(){e(".awdr-error-red").fadeOut(500),window.location.replace(wdr_data.admin_url+"&tab=advanced_section")},2e3))}})}),e(document).on("click",".bulk-table-customized-setting",function(){e("input[name=customizer_save_alert]").val("1"),e(".save-configuration-submit").click()}),e("#sort_customizable_table").dragtable({persistState:function(d){d.el.find("th").each(function(t){""!=this.id&&(d.sortOrder[this.id]=t,"customize-bulk-table-title"==this.id?e(".customize_bulk_table_title").val(t):"customize-bulk-table-discount"==this.id?e(".customize_bulk_table_discount").val(t):"customize-bulk-table-range"==this.id&&e(".customize_bulk_table_range").val(t))})}}),e("#wdr-bulk-action-top").submit(function(t){if(t.preventDefault(),!(e('input[name="saved_rules[]"]:checked').length>0))return!1;{let d,t=e("#bulk-action-selector-top").val();if("enable"==t)d=confirm("Are you sure to enable the selected rules?");else if("disable"==t)d=confirm("Are you sure to disable the selected rules?");else{if("delete"!=t)return!1;d=confirm("Are you sure to delete the selected rules?")}if(0==d)return!1}let a=e(".woo_discount_loader");e.ajax({data:e(this).serialize(),type:"post",url:ajaxurl,beforeSend:function(){a.show()},complete:function(){a.hide()},error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(e){"disabled"==e.disable?l(wdr_data.localization_data.disabled_rule,"success",d):"enabled"==e.enable?l(wdr_data.localization_data.enabled_rule,"success",d):"deleted"==e.delete?l(wdr_data.localization_data.deleted_rule,"success",d):l(wdr_data.localization_data.error,"error",d),window.location.replace(wdr_data.admin_url)}})}),e("#wdr-search-top").submit(function(d){d.preventDefault();var t=e(this).serializeArray(),a=t[0].value+"&name="+t[1].value;window.location.replace(a)}),e(document).on("keypress keyup blur",".float_only_field",function(d){e(this).val(e(this).val().replace(/[^0-9\.]/g,"")),46===d.which&&-1===e(this).val().indexOf(".")||!(d.which<48||d.which>57)||d.preventDefault()}),e(document).on("keypress keyup blur",".number_only_field",function(e){(e.which<48||e.which>57)&&e.preventDefault()}),e('[data-class="start_dateonly"]').datetimepicker({timepicker:!1,format:"Y-m-d",onShow:function(d){this.setOptions({maxDate:!!e('[data-class="end_dateonly"]').val()&&e('[data-class="end_dateonly"]').val()})}}),e('[data-class="end_dateonly"]').datetimepicker({timepicker:!1,format:"Y-m-d",onShow:function(d){this.setOptions({minDate:!!e('[data-class="start_dateonly"]').val()&&e('[data-class="start_dateonly"]').val()})}}),e('[data-class="start_datetimeonly"]').datetimepicker({timepicker:!0,format:"Y-m-d H:i",onShow:function(d){this.setOptions({maxDate:!!e('[data-class="end_datetimeonly"]').val()&&e('[data-class="end_datetimeonly"]').val()})}}),e('[data-class="end_datetimeonly"]').datetimepicker({timepicker:!0,format:"Y-m-d H:i",onShow:function(d){this.setOptions({minDate:!!e('[data-class="start_datetimeonly"]').val()&&e('[data-class="start_datetimeonly"]').val()})}}),e(".wdr_time_picker").datetimepicker({datepicker:!1,format:"H:i"}),e(document).on("change",".wdr-bulk-type",function(){"product_selected_categories"==e(this).val()?e(".wdr-bulk-cat-selector").show():e(".wdr-bulk-cat-selector").hide()}),e(".settings_option_show_hide").click(function(){var d=e(this).data("name");"1"==e(this).val()?(e("."+d).show(),"hide_table_position"==d&&e(".wdr-popup-link").show()):(e("."+d).hide(),"hide_table_position"==d&&e(".wdr-popup-link").hide())}),e(".bulk_table_customizer_preview").click(function(){var d=e(this).data("colname");"show"==e(this).data("showhide")?e("."+d).show():e("."+d).hide()}),e(".settings_option_show_hide_on_change").change(function(){"disabled"==e(this).val()?e(".display_you_saved_text").hide():e(".display_you_saved_text").show()}),e(document).on("change",".wdr-rules-select",function(){var d=e(".wdr-rules-select"),t=e(this).val();"off"==t?(d.val("on"),e(".wdr-rules-selector").prop("checked",!0)):"on"==t&&(d.val("off"),e(".wdr-rules-selector").prop("checked",!1))}),e(document).on("change",".wdr-rules-selector",function(){var d=e(".wdr-rules-select"),t=e(".wdr-ruleboard input:checkbox").length,a=e(".wdr-ruleboard input:checkbox:checked").length;t==a?(d.val("on"),d.prop("checked",!0)):t!=a&&(d.val("off"),d.prop("checked",!1))});document.getElementById("ruleHeader");var c=!1;function _(){e("#sortable").sortable({handle:".awdr-sortable-handle",delay:150,stop:function(d,t){var a=new Array;e("#sortable>tr").each(function(){a.push(e(this).attr("id"))}),u(a)}})}function u(t){e.ajax({data:{position:t,method:"update_priority_order",action:"wdr_ajax",awdr_nonce:e("input[name=awdr_rule_list_nonce]").val()},type:"post",url:ajaxurl,error:function(e,t){l(wdr_data.localization_data.error,"error",d)},success:function(e){!1===e?l(wdr_data.localization_data.error,"error",d):l(wdr_data.localization_data.save_priority,"success",d)}})}if((/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(c=!0),e(window).width()>1024?1==c?_():e("#sortable").sortable({delay:150,stop:function(d,t){var a=new Array;e("#sortable>tr").each(function(){a.push(e(this).attr("id"))}),u(a)}}):_(),e("#sortable").disableSelection(),e(document).on("click",".help-popup",function(){var d="#"+e(this).attr("data-id");e(d).dialog({modal:!0,closeText:""})}),e(document).on("click",".remove-clicked-discount-block",function(){var d=e(this).data("showblock"),t=e(this).data("removeval"),a=e(this).data("removeopt");e("."+d).hide(),e("."+t).removeAttr("value"),e("."+a).prop("selectedIndex",0),e("[data-dtype="+d+"]").show(),"wdr-bulk-discount"==d&&(e(".bulk_product_category_selector option:selected").remove(),e(".wdr-bulk-cat-selector").hide())}),e(".wdr-btn-add-message").click(function(){wdr_buildrule.show_hide_rule_block({showBlockId:".wdr-advanced-layout-block",hideBlockId:".wdr-discount-template, .wdr-filter-block",thisObject:this})}),e(".bulk-min").length>=2){var p=e(".bulk_discount_min").val(),f=e(".bulk_discount_max").val(),w=e(".bulk_discount_value").val();(p||f||w)&&e(".adv-msg-min-qty, .adv-msg-max-qty").show()}if(e(".set-min").length>=2){p=e(".set_discount_min").val(),w=e(".set_discount_value").val();(p||w)&&(e(".adv-msg-min-qty").show(),e(".adv-msg-max-qty").hide())}function h(){e(".wdr-condition-group").each(function(d,t){let a=e(t).find(".wdr-product-condition-type").val();if(void 0!==a)switch(a){case"cart_item_product_onsale":e(this).remove()}})}e(".popup_table_discount_column_value").click(function(){1==e(this).val()?(e(".wdr_table_discounted_value").show(),e(".wdr_table_discounted_price").hide()):(e(".wdr_table_discounted_value").hide(),e(".wdr_table_discounted_price").show())}),e(".modal-trigger").click(function(d){d.preventDefault(),dataModal=e(this).attr("data-modal"),e("#"+dataModal).css({display:"block"})}),e(".close-modal, .modal-sandbox").click(function(){e(".modal").css({display:"none"})}),e("#badge_colorpicker").on("change",function(){e("#badge_hexcolor").val(this.value)}),e("#badge_hexcolor").on("change",function(){e("#badge_colorpicker").val(this.value)}),e("#text_colorpicker").on("change",function(){e("#text_hexcolor").val(this.value)}),e("#text_hexcolor").on("change",function(){e("#text_colorpicker").val(this.value)}),e("#awdr_shortcode_copy_btn").on("click",function(){var d,t;d="#awdr_shortcode_text",t=e("<input>"),e("body").append(t),t.val(e(d).text()).select(),document.execCommand("copy"),t.remove();var a=e(this);a.html(wdr_data.localization_data.copied),setTimeout(function(){a.html(wdr_data.localization_data.copy_shortcode)},2e3)}),e(".tips, .help_tip, .woocommerce-help-tip").tipTip({attribute:"data-tip",fadeIn:50,fadeOut:50,delay:200}),e(".awdr_popup_col_name_text_box").keyup(function(){var d=e(this).val(),t=e(this).data("keyup");e("."+t).html(d)}),e(".awdr_popup_col_name_text_box").blur(function(){var d=e(this).val(),t=e(this).data("keyup");e("."+t).html(d)}),e(".apply_product_and_cart_discount_to").change(function(){let d=e(this).data("subsequent");"all"==e(this).val()?e("."+d).show():e("."+d).hide()}),e(document).on("change",".awdr-bogo-discount-type",function(){let d=e(this).val(),t=e(this).attr("data-parent"),a=e(this).attr("data-siblings");switch(d){case"flat":e(this).parent("."+t).siblings("."+a).show(),e(this).parent("."+t).siblings("."+a).find(".wdr_desc_text").text(wdr_data.localization_data.buyx_getx_value);break;case"percentage":e(this).parent("."+t).siblings("."+a).show(),e(this).parent("."+t).siblings("."+a).find(".wdr_desc_text").text(wdr_data.localization_data.buyx_getx_percentage);break;case"free_product":default:e(this).parent("."+t).siblings("."+a).hide()}}),e(document).on("change",".awdr-bogo-recurcive",function(){let d=e(this).attr("data-recursive-row"),t=e(this).attr("data-recursive-parent"),a=e(this).attr("data-hide-add-range"),i=e(this).attr("data-bogo-max-range"),o=e(this).attr("data-bogo-min-range"),r=e(this).attr("data-bogo-border"),s=e("."+d).length,n=e(this).attr("data-ranges-row-parent");if(0==e(this).prop("checked"))return e(this).parents("."+n).siblings("."+a).show(),""!=i&&(e(this).parents("."+t).siblings("."+i).show(),e(this).parents("."+t).siblings().find("."+i).show()),e(this).parents("."+t).siblings("."+o).find(".wdr_desc_text").text(wdr_data.localization_data.recursive_min_qty),void e("."+r).css("border-bottom","1px solid #ddd");if(s>3){confirm(wdr_data.localization_data.recursive_warning)?e(this).parents("."+d).siblings().remove():e(this).prop("checked",!1)}1==e(this).prop("checked")&&(e(this).parents("."+n).siblings("."+a).hide(),""!=i&&(e(this).parents("."+t).siblings("."+i).hide(),e(this).parents("."+t).siblings().find("."+i).hide()),e(this).parents("."+t).siblings("."+o).find(".wdr_desc_text").text(wdr_data.localization_data.recursive_qty),e("."+r).css("border-bottom","unset"))}),e(document).on("change",".awdr_mode_of_operator",function(){let d=e(this).val();"wdr_buy_x_get_y_discount"!=e(".awdr-product-discount-type").val()?"variation"==d?(e(".awdr-discount-content").html(wdr_data.localization_data.bulk_variants_discount_description),e(".awdr-example").html(wdr_data.localization_data.mode_variation_cumulative_example)):"product"==d?(e(".awdr-discount-content").html(wdr_data.localization_data.bulk_individual_product_discount_description),e(".awdr-example").html("")):(e(".awdr-discount-content").html(wdr_data.localization_data.bulk_filter_together_discount_description),e(".awdr-example").html("")):"variation"==d?(e(".awdr-bxgy-dynamic-tip").attr("title",wdr_data.localization_data.bulk_variants_discount_description_tool_tip),e(".awdr-example").html(wdr_data.localization_data.mode_variation_cumulative_example)):"product"==d?(e(".awdr-bxgy-dynamic-tip").attr("title",wdr_data.localization_data.bulk_individual_product_discount_description_tool_tip),e(".awdr-example").html("")):(e(".awdr-bxgy-dynamic-tip").attr("title",wdr_data.localization_data.bulk_filter_together_discount_description_tool_tip),e(".awdr-example").html(""))}),e(document).on("change",".awdr-product-discount-type",function(){e(".awdr-example").html("");var d=e(this).data("placement");let t=e(this).val();switch(t){case"wdr_simple_discount":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_cart_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_x_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide();break;case"wdr_cart_discount":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_x_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide();break;case"wdr_free_shipping":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_cart_discount,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_x_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide();break;case"wdr_bulk_discount":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_cart_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_x_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide();break;case"wdr_set_discount":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_cart_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_buy_x_get_x_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide();break;case"wdr_buy_x_get_x_discount":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_cart_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide();break;case"wdr_buy_x_get_y_discount":e(".awdr_doc_"+t).show(),e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_cart_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_x_discount").hide();break;default:case"not_selected":e(".awdr_doc_wdr_simple_discount,.awdr_doc_wdr_cart_discount,.awdr_doc_wdr_free_shipping,.awdr_doc_wdr_bulk_discount,.awdr_doc_wdr_set_discount,.awdr_doc_wdr_buy_x_get_x_discount,.awdr_doc_wdr_buy_x_get_y_discount").hide()}"not_selected"!=e(this).val()&&"wdr_free_shipping"!=e(this).val()?(wdr_buildrule.wdr_clone_field({addFilterMethod:"."+e(this).val(),ruleAppendTo:"."+d,addDiscountType:"enable"}),e(".awdr-free-shipping-special-condition").hasClass("wdr-hide")||e(".awdr-free-shipping-special-condition").addClass("wdr-hide"),h(),e(".calculate_cart_from option[value='from_filter']").show(),e(".adv-msg-discount, .adv-msg-discount-price").show(),e(".awdr-hidden-new-rule").fadeIn(500),e(".awdr-filter-section").fadeIn(500),e("button.wdr_save_stay, button.wdr_save_close").attr("disabled",!1).removeClass("wdr_save_btn_disabled"),i(e("."+d).find('[data-field="autocomplete"]')),e(".awdr-discount-container").show(),e("."+d).find(".bulk_range_setter_group").addClass("bulk_range_setter").attr("id","bulk_adjustment_sortable"),e("."+d).find(".set_range_setter_group").addClass("set_range_setter").attr("id","bulk_adjustment_sortable"),e(window).width()>1024?1==c?e("#bulk_adjustment_sortable").sortable({handle:".awdr-sortable-handle"}):e("#bulk_adjustment_sortable").sortable():e("#bulk_adjustment_sortable").sortable({handle:".awdr-sortable-handle"}),e("#bulk_adjustment_sortable").disableSelection(),e(".awdr-filter-heading").html(wdr_data.localization_data.common_filter_heading),e(".awdr-filter-content").html(wdr_data.localization_data.common_filter_description),e(".awdr-discount-heading").html(wdr_data.localization_data.common_discount_heading),e(".awdr-discount-content").html(wdr_data.localization_data.common_discount_description),e(".awdr-rules-content").html(wdr_data.localization_data.common_rules_description),"wdr_buy_x_get_y_discount"==e(this).val()&&(e(".awdr-free-shipping-special-condition").hasClass("wdr-hide")||e(".awdr-free-shipping-special-condition").addClass("wdr-hide"),h(),e(".awdr-discount-heading").html(wdr_data.localization_data.two_column_bxgy_discount_heading),i(e("."+d).find('[data-list="product_category"]')),e(".adv-msg-min-qty, .adv-msg-max-qty, .adv-msg-discount, .adv-msg-discount-price").hide()),"wdr_buy_x_get_x_discount"==e(this).val()&&(e(".awdr-free-shipping-special-condition").hasClass("wdr-hide")||e(".awdr-free-shipping-special-condition").addClass("wdr-hide"),h(),e(".adv-msg-min-qty, .adv-msg-max-qty, .adv-msg-discount, .adv-msg-discount-price").hide()),"wdr_bulk_discount"==e(this).val()?(e(".awdr-free-shipping-special-condition").hasClass("wdr-hide")||e(".awdr-free-shipping-special-condition").addClass("wdr-hide"),h(),e(".awdr-discount-heading").html(wdr_data.localization_data.two_column_bulk_discount_heading),e(".awdr_mode_of_operator").trigger("change"),e(".adv-msg-min-qty, .adv-msg-max-qty, .adv-msg-discount, .adv-msg-discount-price").show()):"wdr_set_discount"==e(this).val()&&(e(".awdr-free-shipping-special-condition").hasClass("wdr-hide")||e(".awdr-free-shipping-special-condition").addClass("wdr-hide"),h(),e(".awdr_mode_of_operator").trigger("change"),e(".awdr-discount-heading").html(wdr_data.localization_data.two_column_set_discount_heading),e(".adv-msg-min-qty, .adv-msg-discount, .adv-msg-discount-price").show(),e(".adv-msg-max-qty").hide())):"wdr_free_shipping"==e(this).val()?(e(".awdr-free-shipping-special-condition").removeClass("wdr-hide"),e(".awdr-hidden-new-rule").fadeIn(500),e(".awdr-filter-section").fadeOut(),e("button.wdr_save_stay, button.wdr_save_close").attr("disabled",!1).removeClass("wdr_save_btn_disabled"),e("."+d).html(""),e(".awdr-discount-container").hide(),e(".adv-msg-min-qty, .adv-msg-max-qty, .adv-msg-discount, .adv-msg-discount-price").hide(),e(".calculate_cart_from option[value='from_filter']").hide()):(e(".awdr-free-shipping-special-condition").hasClass("wdr-hide")||e(".awdr-free-shipping-special-condition").addClass("wdr-hide"),h(),e("button.wdr_save_stay, button.wdr_save_close").attr("disabled",!0).addClass("wdr_save_btn_disabled"),e(".awdr-hidden-new-rule").fadeOut(500)),e(this).trigger("advanced_woo_discount_rules_on_change_adjustment_type",[e(this).val()])}),e(".awdr-product-discount-type").trigger("change"),"view"==wdr_data.rule_id?e("button.wdr_save_stay, button.wdr_save_close").attr("disabled",!1).removeClass("wdr_save_btn_disabled"):e("button.wdr_save_stay, button.wdr_save_close").attr("disabled",!0).addClass("wdr_save_btn_disabled"),e(document).on("change",".apply_fee_coupon_checkbox",function(){1==e(this).prop("checked")?e(this).parents(".awdr_rtl_compatible").siblings(".apply_fee_coupon_label").show():e(this).parents(".awdr_rtl_compatible").siblings(".apply_fee_coupon_label").hide()}),e(document).on("change",".bulk_table_customizer_show_hide_column",function(){var d=e(this).data("colname");1==e(this).prop("checked")?e("."+d).show():e("."+d).hide()});var b,m=document.getElementsByClassName("awdr-accordion");for(b=0;b<m.length;b++)m[b].addEventListener("click",function(d){d.preventDefault(),this.classList.toggle("awdr-accordion-active");var t=this.nextElementSibling;"block"===t.style.display?e(t).slideUp(1e3):e(t).slideDown(1e3)});e(document).on("change",".on_sale_badge_condition",function(){"disabled"===e(this).val()?(e(".sale_badge_toggle").hide(),e(".sale_badge_customizer,.sale_badge_percentage_customizer").hide()):(e(".sale_badge_toggle").show(),1==e("#customize_on_sale_badge").prop("checked")?(e(".sale_badge_customizer").show(),e(".display_percentage_on_sale_badge_con").show()):(e(".sale_badge_customizer").hide(),e("#display_percentage_on_sale_badge").prop("checked",!1).trigger("change"),e(".display_percentage_on_sale_badge_con").hide()),1==e("#display_percentage_on_sale_badge").prop("checked")?e(".sale_badge_percentage_customizer").show():e(".sale_badge_percentage_customizer").hide())}),e(document).on("change","#customize_on_sale_badge",function(){1==e(this).prop("checked")?(e(".sale_badge_customizer").show(),e(".display_percentage_on_sale_badge_con").show()):(e(".sale_badge_customizer").hide(),e("#display_percentage_on_sale_badge").prop("checked",!1).trigger("change"),e(".display_percentage_on_sale_badge_con").hide())}),e(document).on("change","#display_percentage_on_sale_badge",function(){1==e(this).prop("checked")?e(".sale_badge_percentage_customizer").show():e(".sale_badge_percentage_customizer").hide()}),e(document).on("change","#badge_colorpicker",function(){let d=e(this).val();e(".awdr_admin_discount_bar").css("background-color",d)}),e(document).on("change","#badge_hexcolor",function(){let d=e(this).val();e(".awdr_admin_discount_bar").css("background-color",d)}),e(document).on("change","#text_colorpicker",function(){let d=e(this).val();e(".awdr_admin_discount_bar").css("color",d)}),e(document).on("change","#text_hexcolor",function(){let d=e(this).val();e(".awdr_admin_discount_bar").css("color",d)}),e(document).on("change","#awdr_discount_bar_content",function(){let d=e(this).val();e(".awdr_admin_discount_bar").html(d)}),e(document).on("click",".awdr-hidden-search",function(){let d=e(".awdr-hidden-name").val();e(".wdr-rule-search-key").val(d),e("#wdr-search-top").submit()}),e(document).on("change","#select_usage_limits",function(){let d=e("#select_usage_limits").val();if(""==d)e(".awdr-rule-limit-disabled-outer .rule_limit_msg_outer").hide(),e(".awdr-rule-limit-disabled").hide();else{var t=e(".awdr-used-limit-total").html();d<=parseInt(t)?(e(".awdr-rule-limit-disabled").hide(),e(".awdr-rule-limit-disabled-outer").show(),e(".awdr-rule-limit-disabled-outer .rule_limit_msg_outer").html(wdr_data.localization_data.invalid_rule_limit)):(e(".awdr-rule-limit-disabled").hide(),e(".awdr-rule-limit-disabled-outer").hide())}}),e("#awdr-import-csv").on("submit",function(){return!!new RegExp("([a-zA-Z0-9s_\\.-:])+(.csv)$").test(e("#awdr-file-uploader").val().toLowerCase())||(e("#awdr-upload-response").html(wdr_data.localization_data.invalid_file_type),!1)}),e(document).on("change",".get_awdr_state_based_country",function(){let d=e(this).val();if(!d||""==d||0==d.length)return!1;let t=e(this).parents(".wdr-conditions-container").attr("data-index"),a=e(this).parents(".wdr_shipping_state_group"),i=e(this).parent().siblings(".wdr-shipping-state-value"),o=e(".woo_discount_loader");var r={action:"wdr_ajax",method:"get_state_details",selected_country:d,selected_state:e(this).parent().siblings(".wdr-shipping-state-value").find(".get_awdr_shipping_state").val(),selected_index:t,awdr_nonce:e("input[name=wdr_ajax_select2]").val()||""};e.ajax({url:ajaxurl,data:r,type:"POST",beforeSend:function(){o.show()},complete:function(){o.hide()},success:function(d){i.remove(),a.append("<div class='wdr-shipping-state-value wdr-select-filed-hight wdr-search-box' style='width: min-content;'>"+d.data+"<span class='wdr_select2_desc_text'>"+wdr_data.localization_data.select_state+"</span> </div>"),e(".append-preloaded-values").selectWoo()},error:function(e){console.log("error")}})}),e(".get_awdr_state_based_country").trigger("change")});
|
v2/Assets/Js/awdr-dynamic-price.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t){t.extend({AdvanceWooDiscountRules:{form:null,product_id:null,quantity:0,options:[],target:null,getDynamicDiscountPriceFromCartForm:function(t,o,r){void 0!==r&&(this.options=r),void 0!==o&&(this.target=o),void 0!==t&&t.is("form")?this.form=t:this.logError("Incorrect form provided"),this.product_id=this.getProductIdFromForm(),this.quantity=this.getProductQuantityFromForm(),this.getDiscountPriceForProduct()},getDiscountPriceForProduct:function(){if(null===this.product_id||0==this.product_id)return this.logError("Invalid product"),[];var o={action:"awdr_get_product_discount",product_id:this.product_id,qty:this.quantity,awdr_nonce:awdr_params.nonce};void 0!==this.options.custom_price&&(o.custom_price=this.options.custom_price);var r=this.target,i=this.options;t.ajax({url:awdr_params.ajaxurl,data:o,type:"POST",success:function(o){t(document.body).trigger("advanced_woo_discount_rules_on_get_response_for_dynamic_discount",[o,r,i])},error:function(t){}})},getProductIdFromForm:function(){var t=this.form.find('[name="variation_id"]'),o=this.form.find('[name="add-to-cart"]');return t.length?parseInt(t.val()):!!o.length&&parseInt(o.val())},getProductQuantityFromForm:function(){var t=this.form.find('input[name="quantity"]');return 0===t.length?0:t.val()},logError:function(t){console.error("Advance discount rule error: %s",t)}}})}(jQuery);
|
v2/Assets/Js/awdr_recipe.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
jQuery(document).ready(function(r){r(".awdr_recipe_main_card").click(function(){let e=r(this).attr("data-recipe-group");r("."+e).show(),r(".awdr_recipe_main_card").each(function(a,t){let c=r(t).attr("data-recipe-group");e!=c?(r("."+c).hide(),r(t).css({"background-color":"#ffffff",color:"#444444"})):r(t).css({"background-color":"#6495ed",color:"#ffffff"})})}),r(document).on("click",".awdr_recipe_content",function(){var e=r(this).attr("data-recipe-nonce"),a=r(this).attr("data-select-recipe"),t=r(this).next();r.ajax({data:{method:"create_rule_recipe",action:"wdr_ajax",awdr_nonce:e,awdr_recipe_type:a},type:"post",url:ajaxurl,error:function(r,e){notify(wdr_data.localization_data.error,"error",alert_counter)},success:function(e){var a=e.data;e.success?a.redirect&&0!=parseInt(a.rule_id)?(t.attr("href",a.redirect),t.show(),t.css({"background-color":"#f3f5f6",color:"#0071a1","border-color":"#7e8993"})):(r(".wdr_desc_text.coupon_error_msg").hide(),r(".coupon_name_msg").css("border",""),notify(wdr_data.localization_data.save_rule,"success",alert_counter)):notify(wdr_data.localization_data.save_priority,"success",alert_counter)}})})});
|
v2/Assets/Js/jquery.dragtable.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){e.widget("akottr.dragtable",{options:{revert:!1,dragHandle:".table-handle",maxMovingRows:40,excludeFooter:!1,onlyHeaderThreshold:100,dragaccept:null,persistState:null,restoreState:null,exact:!0,clickDelay:10,containment:null,cursor:"move",cursorAt:!1,distance:0,tolerance:"pointer",axis:"x",beforeStart:e.noop,beforeMoving:e.noop,beforeReorganize:e.noop,beforeStop:e.noop},originalTable:{el:null,selectedHandle:null,sortOrder:null,startIndex:0,endIndex:0},sortableTable:{el:e(),selectedHandle:e(),movingRow:e()},persistState:function(){var t=this;this.originalTable.el.find("th").each(function(e){""!==this.id&&(t.originalTable.sortOrder[this.id]=e)}),e.ajax({url:this.options.persistState,data:this.originalTable.sortOrder})},_restoreState:function(t){for(var i in t)this.originalTable.startIndex=e("#"+i).closest("th").prevAll().length+1,this.originalTable.endIndex=parseInt(t[i],10)+1,this._bubbleCols()},_bubbleCols:function(){var e,t,i,o,a=this.originalTable.startIndex,l=this.originalTable.endIndex,s=this.originalTable.el.children();if(this.options.excludeFooter&&(s=s.not("tfoot")),a<l)for(e=a;e<l;e++)for(i=s.find("> tr > td:nth-child("+e+")").add(s.find("> tr > th:nth-child("+e+")")),o=s.find("> tr > td:nth-child("+(e+1)+")").add(s.find("> tr > th:nth-child("+(e+1)+")")),t=0;t<i.length;t++)n(i[t],o[t]);else for(e=a;e>l;e--)for(i=s.find("> tr > td:nth-child("+e+")").add(s.find("> tr > th:nth-child("+e+")")),o=s.find("> tr > td:nth-child("+(e-1)+")").add(s.find("> tr > th:nth-child("+(e-1)+")")),t=0;t<i.length;t++)n(i[t],o[t])},_rearrangeTableBackroundProcessing:function(){var n=this;return function(){n._bubbleCols(),n.options.beforeStop(n.originalTable),n.sortableTable.el.remove(),function(){e("#__dragtable_disable_text_selection__").remove(),t?e(document.body).attr("onselectstart",t):e(document.body).removeAttr("onselectstart");i?e(document.body).attr("unselectable",i):e(document.body).removeAttr("unselectable")}(),null!==n.options.persistState&&(e.isFunction(n.options.persistState)?n.options.persistState(n.originalTable):n.persistState())}},_rearrangeTable:function(){var e=this;return function(){e.originalTable.selectedHandle.removeClass("dragtable-handle-selected"),e.sortableTable.el.sortable("disable"),e.sortableTable.el.addClass("dragtable-disabled"),e.options.beforeReorganize(e.originalTable,e.sortableTable),e.originalTable.endIndex=e.sortableTable.movingRow.prevAll().length+1,setTimeout(e._rearrangeTableBackroundProcessing(),50)}},_generateSortable:function(t){!t.cancelBubble&&(t.cancelBubble=!0);for(var i=this,n=this.originalTable.el[0].attributes,o="",a=0;a<n.length;a++)n[a].nodeValue&&"id"!=n[a].nodeName&&"width"!=n[a].nodeName&&(o+=n[a].nodeName+'="'+n[a].nodeValue+'" ');var l=[],s=[];this.originalTable.el.find("tr").slice(0,this.options.maxMovingRows).each(function(t,i){for(var n=this.attributes,o="",a=0;a<n.length;a++)n[a].nodeValue&&"id"!=n[a].nodeName&&(o+=" "+n[a].nodeName+'="'+n[a].nodeValue+'"');l.push(o),s.push(e(this).height())});var r=[],d=0,h=i.originalTable.el.children();if(this.options.excludeFooter&&(h=h.not("tfoot")),h.find("> tr > th").each(function(t,i){var n=e(this).is(":visible")?e(this).outerWidth():0;r.push(n),d+=n}),i.options.exact){var c=d-i.originalTable.el.outerWidth();r[0]-=c}var b='<ul class="dragtable-sortable" style="position:absolute; width:'+(d+=2)+'px;">';h.find("> tr > th").each(function(t,n){var a=e(this).is(":visible")?e(this).outerWidth():0;b+='<li style="width:'+a+'px;">',b+="<table "+o+">";var r=h.find("> tr > th:nth-child("+(t+1)+")");i.options.maxMovingRows>1&&(r=r.add(h.find("> tr > td:nth-child("+(t+1)+")").slice(0,i.options.maxMovingRows-1))),r.each(function(t){var i=e(this).clone().wrap("<div></div>").parent().html();0===i.toLowerCase().indexOf("<th")&&(b+="<thead>"),b+="<tr "+l[t]+'" style="height:'+s[t]+'px;">',b+=i,0===i.toLowerCase().indexOf("<th")&&(b+="</thead>"),b+="</tr>"}),b+="</table>",b+="</li>"}),b+="</ul>",this.sortableTable.el=this.originalTable.el.before(b).prev(),this.sortableTable.el.find("> li > table").each(function(t,i){e(this).css("width",r[t]+"px")}),this.sortableTable.selectedHandle=this.sortableTable.el.find("th .dragtable-handle-selected");var u,g=this.options.dragaccept?"li:has("+this.options.dragaccept+")":"li";this.sortableTable.el.sortable({items:g,stop:this._rearrangeTable(),revert:this.options.revert,tolerance:this.options.tolerance,containment:this.options.containment,cursor:this.options.cursor,cursorAt:this.options.cursorAt,distance:this.options.distance,axis:this.options.axis}),this.originalTable.startIndex=e(t.target).closest("th").prevAll().length+1,this.options.beforeMoving(this.originalTable,this.sortableTable),this.sortableTable.movingRow=this.sortableTable.el.find("> li:nth-child("+this.originalTable.startIndex+")"),u=e('<style id="__dragtable_disable_text_selection__" type="text/css">body { -ms-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;user-select:none; }</style>'),e(document.head).append(u),e(document.body).attr("onselectstart","return false;").attr("unselectable","on"),window.getSelection?window.getSelection().removeAllRanges():document.selection.empty(),this.sortableTable.movingRow.trigger(e.extend(e.Event(t.type),{which:1,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,screenX:t.screenX,screenY:t.screenY}));var p=this.sortableTable.el.find(".ui-sortable-placeholder");!p.height()<=0&&p.css("height",this.sortableTable.el.find(".ui-sortable-helper").height()),p.html('<div class="outer" style="height:100%;"><div class="inner" style="height:100%;"></div></div>')},bindTo:{},_create:function(){this.originalTable={el:this.element,selectedHandle:e(),sortOrder:{},startIndex:0,endIndex:0},this.bindTo=this.originalTable.el.find("th"),this.options.dragaccept&&(this.bindTo=this.bindTo.filter(this.options.dragaccept)),this.bindTo.find(this.options.dragHandle).length>0&&(this.bindTo=this.bindTo.find(this.options.dragHandle)),null!==this.options.restoreState&&(e.isFunction(this.options.restoreState)?this.options.restoreState(this.originalTable):this._restoreState(this.options.restoreState));var t=this;this.bindTo.mousedown(function(i){1===i.which&&!1!==t.options.beforeStart(t.originalTable)&&(clearTimeout(this.downTimer),this.downTimer=setTimeout(function(){t.originalTable.selectedHandle=e(this),t.originalTable.selectedHandle.addClass("dragtable-handle-selected"),t._generateSortable(i)},t.options.clickDelay))}).mouseup(function(e){clearTimeout(this.downTimer)})},redraw:function(){this.destroy(),this._create()},destroy:function(){this.bindTo.unbind("mousedown"),e.Widget.prototype.destroy.apply(this,arguments)}});var t=e(document.body).attr("onselectstart"),i=e(document.body).attr("unselectable");function n(e,t){var i=e.parentNode,n=e.nextSibling===t?e:e.nextSibling;t.parentNode.insertBefore(e,t),i.insertBefore(t,n)}}(jQuery);
|
v2/Assets/Js/rulebuilder.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
var wdr_buildrule;!function(e){wdr_buildrule={wdr_clone_field:function(l){var d=e.extend({addFilterType:null,addFilterMethod:null,ruleAppendTo:null,addConditionType:null,addRemoveIcon:null,addDiscountElement:null,addDiscountType:null,newIndex:null},l),n=e(d.addRemoveIcon).html(),i=e(d.addFilterMethod).html();if(null===d.addDiscountElement&&null!==d.addFilterType&&null!==d.addFilterMethod&&null!==d.ruleAppendTo){var o=e(d.addFilterType).html();o=o.replace(new RegExp("{i}","g"),d.newIndex),i=i.replace(new RegExp("{i}","g"),d.newIndex),e(d.ruleAppendTo).append('<div class="wdr-grid wdr-filter-group" data-index="'+d.newIndex+'">'+o+i+n+"</div>")}else if(null===d.addDiscountType&&null===d.addDiscountElement&&null===d.addFilterType&&null!==d.addFilterMethod&&null!==d.ruleAppendTo&&null===d.addConditionType)i=i.replace(new RegExp("{i}","g"),d.newIndex),e(d.ruleAppendTo).append(i+n);else if(null===d.addDiscountElement&&null!==d.addConditionType&&null!==d.addFilterMethod&&null!==d.ruleAppendTo){var t=e(d.addConditionType).html();let l="",i="";var a=e(d.addFilterMethod).html();a=a.replace(new RegExp("{i}","g"),d.newIndex),t&&"undefined"!=t?(t=t.replace(new RegExp("{i}","g"),d.newIndex),e(d.ruleAppendTo).append('<div class="'+i+' wdr-conditions-container wdr-condition-group" style="'+l+'" data-index="'+d.newIndex+'">'+t+a+n+"</div>")):(t="",l="display:none",i="promo_show_hide_"+d.newIndex,n="",e(d.ruleAppendTo+" [data-index='"+d.newIndex+"']").after('<div class="'+i+' wdr-conditions-container wdr-condition-group" style="'+l+'" data-index="'+d.newIndex+'">'+t+a+n+"</div>"))}else null==d.addDiscountType&&null!==d.addDiscountElement&&null!==d.addFilterMethod&&null!==d.ruleAppendTo?(i=i.replace(new RegExp("{i}","g"),d.newIndex),e(d.ruleAppendTo).append(i)):null!==d.addDiscountType&&null!==d.ruleAppendTo&&e(d.ruleAppendTo).html(i)},remove_wdr_field_group:function(l){var d=e.extend({parentRow:null,parentsRow:null,siblingElements:null,thisObject:null},l);null!==d.parentsRow&&null!==d.thisObject&&e(d.thisObject).parents(d.parentsRow).remove(),null!==d.parentRow&&null===d.siblingElements&&e(d.parentRow).siblings().remove()},show_hide_rule_block:function(l){var d=e.extend({showBlockId:null,hideBlockId:null,thisObject:null,discountTab:null,showTabId:null},l);null!==d.showBlockId&&null===d.hideBlockId&&e(d.showBlockId).show(),null!==d.showBlockId&&null!==d.hideBlockId&&(e(d.showBlockId).show(),e(d.hideBlockId).hide(),e(d.thisObject).siblings(".wdr-active").removeClass("wdr-active wdr-inactive").prop("disabled",!1).addClass("wdr-inactive"),e(d.thisObject).removeClass("wdr-inactive").addClass("wdr-active")),null!==d.showBlockId&&null!==d.hideBlockId&&(e(d.showBlockId).show(),e(d.hideBlockId).hide(),e(d.thisObject).siblings(".wdr-active").removeClass("wdr-active").prop("disabled",!1),e(d.thisObject).addClass("wdr-active"))}}}(jQuery);
|
v2/Assets/Js/site_main.js
CHANGED
@@ -179,6 +179,11 @@
|
|
179 |
});
|
180 |
$( ".single_variation_wrap" ).on( "show_variation", function ( event, variation, purchasable ) {
|
181 |
let variation_id = variation.variation_id;
|
|
|
|
|
|
|
|
|
|
|
182 |
awdr_load_variation_table(variation_id);
|
183 |
});
|
184 |
}
|
179 |
});
|
180 |
$( ".single_variation_wrap" ).on( "show_variation", function ( event, variation, purchasable ) {
|
181 |
let variation_id = variation.variation_id;
|
182 |
+
if(variation.is_bundled != undefined){
|
183 |
+
if(variation.is_bundled == true){
|
184 |
+
return;
|
185 |
+
}
|
186 |
+
}
|
187 |
awdr_load_variation_table(variation_id);
|
188 |
});
|
189 |
}
|
v2/Assets/Js/site_main.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(a){function t(){a("body").trigger("update_checkout")}"1"==awdr_params.refresh_order_review&&(a(document).on("change",'input[name="payment_method"],input[name="billing_city"],input[name="billing_postcode"]',function(){t()}),a(document).on("blur",'input[name="billing_email"], select#billing_state',function(){t()})),a(document).ready(function(a){function t(){"show_dynamically"==awdr_params.enable_update_price_with_qty&&a(document).on("change",'[name="quantity"]',function(){var t=a(this);setTimeout(function(){var r=t.val(),i=0,_="",e=t.closest("form");if(e.find('button[name="add-to-cart"]').length){i=e.find('button[name="add-to-cart"]').val();var o="div.product p.price";null!=awdr_params.custom_target_simple_product&&""!=awdr_params.custom_target_simple_product&&(o=awdr_params.custom_target_simple_product),_=a(o).first()}else if(e.find('input[name="variation_id"]').length){i=e.find('input[name="variation_id"]').val();o="div.product .woocommerce-variation-price";null!=awdr_params.custom_target_variable_product&&""!=awdr_params.custom_target_variable_product&&(o=awdr_params.custom_target_variable_product),_=a(o),a(o+" .price").length||_.html("<div class='price'></div>"),_=a(o+" .price")}if(!i||0==i){if(null!=awdr_params.custom_simple_product_id_selector&&""!=awdr_params.custom_simple_product_id_selector){let t=awdr_params.custom_simple_product_id_selector;i=a(t).val();let r="div.product p.price";null!=awdr_params.custom_target_simple_product&&""!=awdr_params.custom_target_simple_product&&(r=awdr_params.custom_target_simple_product),_=a(r).first()}if(null!=awdr_params.custom_variable_product_id_selector&&""!=awdr_params.custom_variable_product_id_selector){let t=awdr_params.custom_variable_product_id_selector;i=a(t).val();let r="div.product .woocommerce-variation-price";null!=awdr_params.custom_target_variable_product&&""!=awdr_params.custom_target_variable_product&&(r=awdr_params.custom_target_variable_product),a(r+" .price").length||_.html("<div class='price'></div>"),_=a(r+" .price")}}if(i&&_&&0!=i){var c={action:"wdr_ajax",method:"get_price_html",product_id:i,qty:r,awdr_nonce:awdr_params.nonce};a.ajax({url:awdr_params.ajaxurl,data:c,type:"POST",success:function(a){a.price_html?_.html(a.price_html):null!=a.original_price_html&&_.html(a.original_price_html)},error:function(a){_.html("")}})}},0)})}if(awdr_params.js_init_trigger&&a(document).on(awdr_params.js_init_trigger,function(){t()}),t(),"1"==awdr_params.awdr_dynamic_bulk_table_status&&"on"==awdr_params.awdr_dynamic_bulk_table_off){function r(t){setTimeout(function(){if(""!=t&&"0"!=t){var r={action:"wdr_ajax",method:"get_variable_product_bulk_table",product_id:t,awdr_nonce:awdr_params.nonce};let i="div.awdr-bulk-customizable-table";null!=awdr_params.awdr_opacity_to_bulk_table&&""!=awdr_params.awdr_opacity_to_bulk_table&&(i=awdr_params.awdr_opacity_to_bulk_table),a.ajax({url:awdr_params.ajaxurl,data:r,type:"POST",beforeSend:function(){a(i).css("opacity","0.5")},complete:function(){a(i).css("opacity","1")},success:function(t){t.bulk_table&&a(".awdr-bulk-customizable-table").html(t.bulk_table)},error:function(t){a(".awdr-bulk-customizable-table").html("")}})}},100)}a(".single_variation_wrap").on("hide_variation",function(t){r(a(this).closest("form").find('input[name="product_id"]').val())}),a(".single_variation_wrap").on("show_variation",function(a,t,i){let _=t.variation_id;null!=t.is_bundled&&1==t.is_bundled||r(_)})}})}(jQuery);
|
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.
|
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.
|
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.
|
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.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 |
* 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;
|