Version Description
- 23/03/21 =
- Feature - Cross sell feature for BXGY cheapest product option.
- Feature - Recipe: sample rules to add.
- Improvement - SKU with product title in product select box.
- Improvement - Subtotal based promotion UI improvement at backend.
- Improvement - Multi site query optimize.
- Improvement - Smart Coupons plugin compatible.
- Improvement - Sale badge translation improvement.
- Improvement - Event: advanced_woo_discount_rules_get_attribute_id_from_taxonomy_name
- Improvement - Event: advanced_woo_discount_rules_exclude_non_stock_product_on_sale_page
- Improvement - Event: advanced_woo_discount_rules_strikeout_price_html additional params.
- Improvement - Translation improvement.
- Fix - Variable product with tag condition not working.
- Fix - The discount bar is not displayed for variable product SKU filter.
- Fix - Show product on sale page even if only the variant has chosen.
- Fix - Report for BXGY cheapest product discount (fixed discount) is not shown.
- Fix - Category select box is not showing all language categories while having WPML.
Download this release
Release Info
Developer | flycart |
Plugin | Discount Rules for WooCommerce |
Version | 2.3.5 |
Comparing to | |
See all releases |
Code changes from version 2.3.4 to 2.3.5
- i18n/languages/woo-discount-rules.pot +370 -268
- readme.txt +20 -2
- v2/App/Conditions/Base.php +7 -1
- v2/App/Controllers/Admin/Settings.php +4 -0
- v2/App/Controllers/Admin/Tabs/Help.php +1 -1
- v2/App/Controllers/Admin/Tabs/Recipe.php +46 -0
- v2/App/Controllers/Admin/WDRAjax.php +46 -2
- v2/App/Controllers/ManageDiscount.php +14 -5
- v2/App/Controllers/ShortCodeManager.php +13 -0
- v2/App/Helpers/Filter.php +5 -3
- v2/App/Helpers/Helper.php +2 -2
- v2/App/Helpers/Rule.php +4 -6
- v2/App/Helpers/Validation.php +45 -0
- v2/App/Helpers/Woocommerce.php +14 -0
- v2/App/Models/DBTable.php +12 -6
- v2/App/Models/Recipes.php +157 -0
- v2/App/Views/Admin/Rules/Discounts/Main.php +1 -1
- v2/App/Views/Admin/Rules/Discounts/simple.php +1 -1
- v2/App/Views/Admin/Rules/Filters/Main.php +1 -1
- v2/App/Views/Admin/Rules/Manage.php +1 -1
- v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php +2 -2
- v2/App/Views/Admin/Tabs/Recipe.php +52 -0
- v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php +18 -0
- v2/App/Views/Admin/Tabs/RecipeTypes/BulkDiscountRecipe.php +23 -0
- v2/App/Views/Admin/Tabs/RecipeTypes/BundleDiscountRecipe.php +13 -0
- v2/App/Views/Admin/Tabs/RecipeTypes/CartDiscountRecipe.php +23 -0
- v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php +21 -0
- v2/App/Views/Admin/Tabs/settings.php +1 -1
- v2/Assets/Css/admin_style.css +65 -0
- v2/Assets/Js/admin_script.js +1 -0
- v2/Assets/Js/awdr_recipe.js +59 -0
- v2/Assets/Js/rulebuilder.js +5 -3
- woo-discount-rules.php +3 -3
i18n/languages/woo-discount-rules.pot
CHANGED
@@ -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
|
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 |
|
@@ -182,7 +182,7 @@ msgid "Your server current date and time: "
|
|
182 |
msgstr ""
|
183 |
|
184 |
#: v1/helper/general-helper.php:797
|
185 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
186 |
#: v2/App/Views/Admin/Rules/Manage.php:148
|
187 |
#: v2/App/Views/Admin/Rules/Manage.php:149
|
188 |
#: v2/App/Views/Admin/Rules/Manage.php:150
|
@@ -195,24 +195,24 @@ msgstr ""
|
|
195 |
#: v2/App/Views/Admin/Tabs/settings.php:122
|
196 |
#: v2/App/Views/Admin/Tabs/settings.php:169
|
197 |
#: v2/App/Views/Admin/Tabs/settings.php:240
|
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 |
|
208 |
-
#: v1/helper/general-helper.php:1266 v2/App/Helpers/Helper.php:
|
209 |
msgid "Invalid token"
|
210 |
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:40
|
215 |
#: v2/App/Controllers/Admin/Settings.php:41
|
|
|
216 |
msgid "Woo Discount Rules"
|
217 |
msgstr ""
|
218 |
|
@@ -278,7 +278,7 @@ msgstr ""
|
|
278 |
#: v1/includes/advanced/free_shipping_method.php:73
|
279 |
#: v1/includes/discount-base.php:1128 v1/view/cart-rules.php:133
|
280 |
#: v1/view/pricing-rules.php:163 v1/view/settings_promotion.php:65
|
281 |
-
#: v1/view/settings_promotion.php:100 v2/App/Controllers/Admin/Settings.php:
|
282 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:77
|
283 |
msgid "Enable"
|
284 |
msgstr ""
|
@@ -306,7 +306,7 @@ msgid "Failed to save"
|
|
306 |
msgstr ""
|
307 |
|
308 |
#: v1/includes/discount-base.php:207 v1/view/cart-rules.php:162
|
309 |
-
#: v1/view/pricing-rules.php:192 v2/App/Controllers/Admin/Settings.php:
|
310 |
msgid "Active"
|
311 |
msgstr ""
|
312 |
|
@@ -316,7 +316,7 @@ msgstr ""
|
|
316 |
#: v1/view/settings_promotion.php:22 v1/view/settings_promotion.php:62
|
317 |
#: v1/view/settings_promotion.php:97 v1/view/settings_promotion.php:132
|
318 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:252
|
319 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
320 |
msgid "Disabled"
|
321 |
msgstr ""
|
322 |
|
@@ -388,7 +388,7 @@ msgstr ""
|
|
388 |
|
389 |
#: v1/includes/discount-base.php:1089 v1/view/view-pricing-rules.php:654
|
390 |
#: v1/view/view-pricing-rules.php:657 v1/view/view-pricing-rules.php:677
|
391 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
392 |
msgid "Quantity"
|
393 |
msgstr ""
|
394 |
|
@@ -417,7 +417,7 @@ msgid "Adjustment Type"
|
|
417 |
msgstr ""
|
418 |
|
419 |
#: v1/includes/discount-base.php:1095 v1/view/view-pricing-rules.php:954
|
420 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
421 |
msgid "Discount percentage"
|
422 |
msgstr ""
|
423 |
|
@@ -564,7 +564,7 @@ msgid "Are you sure to remove this ?"
|
|
564 |
msgstr ""
|
565 |
|
566 |
#: v1/includes/discount-base.php:1129 v1/view/cart-rules.php:130
|
567 |
-
#: v1/view/pricing-rules.php:160 v2/App/Controllers/Admin/Settings.php:
|
568 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:78
|
569 |
msgid "Disable"
|
570 |
msgstr ""
|
@@ -684,7 +684,7 @@ msgid "Shipping zip code"
|
|
684 |
msgstr ""
|
685 |
|
686 |
#: v1/includes/discount-base.php:1156 v1/view/view-cart-rules.php:365
|
687 |
-
#: v1/view/view-pricing-rules.php:536 v2/App/Helpers/Helper.php:
|
688 |
#: v2/App/Helpers/ProOptions.php:192 v2/App/Helpers/ProOptions.php:200
|
689 |
#: v2/App/Helpers/ProOptions.php:208 v2/App/Helpers/ProOptions.php:216
|
690 |
#: v2/App/Helpers/ProOptions.php:224 v2/App/Helpers/ProOptions.php:232
|
@@ -778,7 +778,7 @@ msgstr ""
|
|
778 |
#: v1/includes/discount-base.php:1173 v1/view/settings_price_rules.php:208
|
779 |
#: v1/view/settings_price_rules.php:226 v1/view/settings_price_rules.php:244
|
780 |
#: v1/view/settings_price_rules.php:262
|
781 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
782 |
msgid "Show"
|
783 |
msgstr ""
|
784 |
|
@@ -844,7 +844,7 @@ msgid ""
|
|
844 |
msgstr ""
|
845 |
|
846 |
#: v1/includes/discount-base.php:1186 v1/view/view-cart-rules.php:221
|
847 |
-
#: v2/App/Controllers/Base.php:47
|
848 |
msgid "Products"
|
849 |
msgstr ""
|
850 |
|
@@ -1017,7 +1017,7 @@ msgid ""
|
|
1017 |
msgstr ""
|
1018 |
|
1019 |
#: v1/includes/discount-base.php:1302
|
1020 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
1021 |
#, php-format
|
1022 |
msgid ""
|
1023 |
"Sorry, it is not possible to apply coupon <b>\"%s\"</b> as you already have "
|
@@ -1025,7 +1025,7 @@ msgid ""
|
|
1025 |
msgstr ""
|
1026 |
|
1027 |
#: v1/includes/discount-base.php:1357 v1/view/includes/menu.php:18
|
1028 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
1029 |
#: v2/App/Controllers/Admin/Tabs/GeneralSettings.php:23
|
1030 |
msgid "Settings"
|
1031 |
msgstr ""
|
@@ -1281,7 +1281,7 @@ msgstr ""
|
|
1281 |
|
1282 |
#: v1/view/cart-rules.php:104 v1/view/cart-rules.php:214
|
1283 |
#: v1/view/pricing-rules.php:134 v1/view/pricing-rules.php:244
|
1284 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
1285 |
msgid "Language"
|
1286 |
msgstr ""
|
1287 |
|
@@ -1414,7 +1414,7 @@ msgid ""
|
|
1414 |
"conditions"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
-
#: v1/view/documentation.php:72 v2/App/Helpers/Helper.php:
|
1418 |
msgid "Category Combination"
|
1419 |
msgstr ""
|
1420 |
|
@@ -1436,7 +1436,7 @@ msgstr ""
|
|
1436 |
|
1437 |
#: v1/view/includes/cart-menu.php:13 v1/view/includes/sub-menu.php:13
|
1438 |
#: v1/view/template/discount-table.php:42 v1/view/view-cart-rules.php:756
|
1439 |
-
#: v1/view/view-pricing-rules.php:708 v2/App/Controllers/Admin/Settings.php:
|
1440 |
#: v2/App/Views/Admin/Rules/Discounts/Bulk.php:59
|
1441 |
#: v2/App/Views/Admin/Rules/Manage.php:209
|
1442 |
msgid "Discount"
|
@@ -1621,8 +1621,7 @@ msgstr ""
|
|
1621 |
#: v2/App/Views/Admin/Tabs/settings.php:174
|
1622 |
#: v2/App/Views/Admin/Tabs/settings.php:269
|
1623 |
#: v2/App/Views/Admin/Tabs/settings.php:298
|
1624 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1625 |
-
#: v2/App/Views/Admin/Tabs/settings.php:394
|
1626 |
msgid "Yes"
|
1627 |
msgstr ""
|
1628 |
|
@@ -1637,8 +1636,7 @@ msgstr ""
|
|
1637 |
#: v2/App/Views/Admin/Tabs/settings.php:177
|
1638 |
#: v2/App/Views/Admin/Tabs/settings.php:273
|
1639 |
#: v2/App/Views/Admin/Tabs/settings.php:304
|
1640 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1641 |
-
#: v2/App/Views/Admin/Tabs/settings.php:399
|
1642 |
msgid "No"
|
1643 |
msgstr ""
|
1644 |
|
@@ -1767,7 +1765,7 @@ msgstr ""
|
|
1767 |
#: v1/view/settings_price_rules.php:137 v1/view/settings_price_rules.php:211
|
1768 |
#: v1/view/settings_price_rules.php:229 v1/view/settings_price_rules.php:247
|
1769 |
#: v1/view/settings_price_rules.php:265
|
1770 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
1771 |
msgid "Don't Show"
|
1772 |
msgstr ""
|
1773 |
|
@@ -1876,19 +1874,19 @@ msgstr ""
|
|
1876 |
msgid "Display savings text (for price rules)"
|
1877 |
msgstr ""
|
1878 |
|
1879 |
-
#: v1/view/settings_promotion.php:25 v2/App/Views/Admin/Tabs/settings.php:
|
1880 |
msgid "On each line item"
|
1881 |
msgstr ""
|
1882 |
|
1883 |
-
#: v1/view/settings_promotion.php:28 v2/App/Views/Admin/Tabs/settings.php:
|
1884 |
msgid "On after total"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: v1/view/settings_promotion.php:31 v2/App/Views/Admin/Tabs/settings.php:
|
1888 |
msgid "Both in line item and after total"
|
1889 |
msgstr ""
|
1890 |
|
1891 |
-
#: v1/view/settings_promotion.php:39 v2/App/Views/Admin/Tabs/settings.php:
|
1892 |
msgid "Savings text to show"
|
1893 |
msgstr ""
|
1894 |
|
@@ -1902,7 +1900,8 @@ msgstr ""
|
|
1902 |
|
1903 |
#: v1/view/settings_promotion.php:73 v1/view/settings_promotion.php:108
|
1904 |
#: v1/view/view-cart-rules.php:730
|
1905 |
-
#: v2/App/Views/Admin/Rules/Others/
|
|
|
1906 |
msgid "Message"
|
1907 |
msgstr ""
|
1908 |
|
@@ -1924,19 +1923,19 @@ msgid ""
|
|
1924 |
"discounts)"
|
1925 |
msgstr ""
|
1926 |
|
1927 |
-
#: v1/view/settings_promotion.php:134 v2/App/Views/Admin/Tabs/settings.php:
|
1928 |
msgid "Shop page"
|
1929 |
msgstr ""
|
1930 |
|
1931 |
-
#: v1/view/settings_promotion.php:137 v2/App/Views/Admin/Tabs/settings.php:
|
1932 |
msgid "Product page"
|
1933 |
msgstr ""
|
1934 |
|
1935 |
-
#: v1/view/settings_promotion.php:140 v2/App/Views/Admin/Tabs/settings.php:
|
1936 |
msgid "Cart page"
|
1937 |
msgstr ""
|
1938 |
|
1939 |
-
#: v1/view/settings_promotion.php:143 v2/App/Views/Admin/Tabs/settings.php:
|
1940 |
msgid "Checkout page"
|
1941 |
msgstr ""
|
1942 |
|
@@ -1971,6 +1970,7 @@ msgstr ""
|
|
1971 |
|
1972 |
#: v1/view/template/loop/sale-flash.php:23
|
1973 |
#: v1/view/template/single-product/sale-flash.php:23
|
|
|
1974 |
#: v2/App/Views/Templates/loop/sale-flash.php:23
|
1975 |
#: v2/App/Views/Templates/single-product/sale-flash.php:23
|
1976 |
msgid "Sale!"
|
@@ -2104,7 +2104,7 @@ msgid "To"
|
|
2104 |
msgstr ""
|
2105 |
|
2106 |
#: v1/view/view-cart-rules.php:140 v1/view/view-pricing-rules.php:149
|
2107 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
2108 |
#, php-format
|
2109 |
msgid "Current date and time: %s"
|
2110 |
msgstr ""
|
@@ -2135,7 +2135,7 @@ msgid "Promotion message"
|
|
2135 |
msgstr ""
|
2136 |
|
2137 |
#: v1/view/view-cart-rules.php:718
|
2138 |
-
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:
|
2139 |
msgid "Subtotal from"
|
2140 |
msgstr ""
|
2141 |
|
@@ -2149,16 +2149,18 @@ msgid ""
|
|
2149 |
msgstr ""
|
2150 |
|
2151 |
#: v1/view/view-cart-rules.php:735
|
|
|
2152 |
#, php-format
|
2153 |
msgid "Spend {{difference_amount}} more and get 10% discount"
|
2154 |
msgstr ""
|
2155 |
|
2156 |
#: v1/view/view-cart-rules.php:737
|
2157 |
-
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:
|
2158 |
msgid "{{difference_amount}} -> Difference amount to get discount"
|
2159 |
msgstr ""
|
2160 |
|
2161 |
#: v1/view/view-cart-rules.php:738
|
|
|
2162 |
#, php-format
|
2163 |
msgid "<b>Eg:</b> Spend {{difference_amount}} more and get 10% discount"
|
2164 |
msgstr ""
|
@@ -2371,7 +2373,7 @@ msgstr ""
|
|
2371 |
msgid "Do not use"
|
2372 |
msgstr ""
|
2373 |
|
2374 |
-
#: v1/view/view-pricing-rules.php:394 v2/App/Helpers/Helper.php:
|
2375 |
#: v2/App/Views/Admin/Tabs/settings.php:284
|
2376 |
msgid "Coupon"
|
2377 |
msgstr ""
|
@@ -2396,8 +2398,8 @@ msgstr ""
|
|
2396 |
msgid "Make sure you have created the coupon already"
|
2397 |
msgstr ""
|
2398 |
|
2399 |
-
#: v1/view/view-pricing-rules.php:484 v2/App/Conditions/CartSubTotal.php:
|
2400 |
-
#: v2/App/Helpers/Helper.php:
|
2401 |
msgid "Subtotal"
|
2402 |
msgstr ""
|
2403 |
|
@@ -2573,7 +2575,7 @@ msgstr ""
|
|
2573 |
msgid "Limitation: Strikeout for add-on price and subtotal in product page."
|
2574 |
msgstr ""
|
2575 |
|
2576 |
-
#: v2/App/Compatibility/ProductAddOnsByWooCommerce.php:
|
2577 |
msgid "Show discount price in product pages for WooCommerce Product Add Ons."
|
2578 |
msgstr ""
|
2579 |
|
@@ -2586,121 +2588,121 @@ msgid "Line Item Count"
|
|
2586 |
msgstr ""
|
2587 |
|
2588 |
#: v2/App/Conditions/CartLineItemsCount.php:16
|
2589 |
-
#: v2/App/Conditions/CartSubTotal.php:
|
2590 |
#: v2/App/Helpers/ProOptions.php:136 v2/App/Helpers/ProOptions.php:144
|
2591 |
#: v2/App/Helpers/ProOptions.php:152 v2/App/Views/Admin/Tabs/settings.php:257
|
2592 |
msgid "Cart"
|
2593 |
msgstr ""
|
2594 |
|
2595 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2596 |
msgid ""
|
2597 |
"We found that your were using our old \"Woo discount rules\" plugin, Please "
|
2598 |
"disable it!"
|
2599 |
msgstr ""
|
2600 |
|
2601 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2602 |
msgid "no results"
|
2603 |
msgstr ""
|
2604 |
|
2605 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2606 |
msgid "Select Values"
|
2607 |
msgstr ""
|
2608 |
|
2609 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2610 |
msgid "Searching…"
|
2611 |
msgstr ""
|
2612 |
|
2613 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2614 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:294
|
2615 |
msgid " - (Running)"
|
2616 |
msgstr ""
|
2617 |
|
2618 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2619 |
msgid "Oops!! something went wrong!"
|
2620 |
msgstr ""
|
2621 |
|
2622 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2623 |
msgid "Rule duplicated successfully!"
|
2624 |
msgstr ""
|
2625 |
|
2626 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2627 |
msgid "Rule deleted successfully!"
|
2628 |
msgstr ""
|
2629 |
|
2630 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2631 |
msgid "Are you sure want to delete this rule!"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2635 |
msgid "Rule disabled successfully!"
|
2636 |
msgstr ""
|
2637 |
|
2638 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2639 |
msgid "Rule enabled successfully!"
|
2640 |
msgstr ""
|
2641 |
|
2642 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2643 |
msgid "Rule saved successfully!"
|
2644 |
msgstr ""
|
2645 |
|
2646 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2647 |
msgid "Settings saved successfully!"
|
2648 |
msgstr ""
|
2649 |
|
2650 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2651 |
msgid "Rule priority changed successfully!"
|
2652 |
msgstr ""
|
2653 |
|
2654 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2655 |
msgid "Rule priority not changed !"
|
2656 |
msgstr ""
|
2657 |
|
2658 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2659 |
msgid "No data for this period"
|
2660 |
msgstr ""
|
2661 |
|
2662 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2663 |
msgid "Oops! Coupon already exists in Woocommerce"
|
2664 |
msgstr ""
|
2665 |
|
2666 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2667 |
msgid "Copied!"
|
2668 |
msgstr ""
|
2669 |
|
2670 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2671 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
2672 |
msgid "Copy ShortCode"
|
2673 |
msgstr ""
|
2674 |
|
2675 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2676 |
msgid "If you make this recursive other row(s) will be removed!"
|
2677 |
msgstr ""
|
2678 |
|
2679 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2680 |
msgid "Minimum Quantity"
|
2681 |
msgstr ""
|
2682 |
|
2683 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2684 |
msgid "Discount value"
|
2685 |
msgstr ""
|
2686 |
|
2687 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2688 |
msgid "Filter (Buy)"
|
2689 |
msgstr ""
|
2690 |
|
2691 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2692 |
#: v2/App/Views/Admin/Rules/Manage.php:163
|
2693 |
msgid "Filter"
|
2694 |
msgstr ""
|
2695 |
|
2696 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2697 |
msgid ""
|
2698 |
"<p>Choose <b>what gets discount</b> (products/categories/attributes/SKU and "
|
2699 |
"so on )</p>\n"
|
2700 |
"<p>Note : You can also exclude products/categories.</p>"
|
2701 |
msgstr ""
|
2702 |
|
2703 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2704 |
msgid ""
|
2705 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3914904-bulk-"
|
2706 |
"discounts-tiered-pricing-discounts-discount-rules-2-0?utm_source=woo-"
|
@@ -2709,7 +2711,7 @@ msgid ""
|
|
2709 |
"\"_blank\">Read Docs</a>"
|
2710 |
msgstr ""
|
2711 |
|
2712 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2713 |
msgid ""
|
2714 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3809899-bundle-set-"
|
2715 |
"discount-discount-rules-2-0?utm_source=woo-discount-rules-"
|
@@ -2717,7 +2719,7 @@ msgid ""
|
|
2717 |
"\"font-size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2718 |
msgstr ""
|
2719 |
|
2720 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2721 |
msgid ""
|
2722 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810570-buy-x-get-"
|
2723 |
"y-discount-rules-2-0?utm_source=woo-discount-rules-"
|
@@ -2725,7 +2727,7 @@ msgid ""
|
|
2725 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2726 |
msgstr ""
|
2727 |
|
2728 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2729 |
msgid ""
|
2730 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810071-buy-one-"
|
2731 |
"get-one-free-buy-x-get-x-discount-rules-2-0?utm_source=woo-discount-rules-"
|
@@ -2733,12 +2735,12 @@ msgid ""
|
|
2733 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2734 |
msgstr ""
|
2735 |
|
2736 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2737 |
msgid ""
|
2738 |
"<p>Select discount type and its value (percentage/price/fixed price)</p>"
|
2739 |
msgstr ""
|
2740 |
|
2741 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2742 |
msgid ""
|
2743 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2744 |
"<div class=\"awdr-count-by-description\"><b>Filter set above :</b><p> This "
|
@@ -2753,7 +2755,7 @@ msgid ""
|
|
2753 |
"p></div>"
|
2754 |
msgstr ""
|
2755 |
|
2756 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2757 |
msgid ""
|
2758 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2759 |
"<div class=\"awdr-count-by-description\"><b>Individual Product :</b><p>This "
|
@@ -2767,7 +2769,7 @@ msgid ""
|
|
2767 |
"because WooCommerce considers a variant as a product itself. </p></div>"
|
2768 |
msgstr ""
|
2769 |
|
2770 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2771 |
msgid ""
|
2772 |
"<p>Select discount type and its value (percentage/price/fixed price)</p><div "
|
2773 |
"class=\"awdr-count-by-description\"><b>All variants in each product "
|
@@ -2780,28 +2782,28 @@ msgid ""
|
|
2780 |
"</p></div>"
|
2781 |
msgstr ""
|
2782 |
|
2783 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2784 |
msgid "Rules (optional)"
|
2785 |
msgstr ""
|
2786 |
|
2787 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2788 |
msgid ""
|
2789 |
"<p>Choose Buy Products. (products/categories/attributes/tags/sku) Example : "
|
2790 |
"For Buy X get Y scenarios, choose X here.</p>"
|
2791 |
msgstr ""
|
2792 |
|
2793 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2794 |
msgid ""
|
2795 |
"<p>Choose on which products the discount should be applied (This can be "
|
2796 |
"products/categories/SKU)</p>"
|
2797 |
msgstr ""
|
2798 |
|
2799 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2800 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2801 |
msgid "Get Discount"
|
2802 |
msgstr ""
|
2803 |
|
2804 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2805 |
msgid ""
|
2806 |
"<p>Enter the min/max ranges and choose free item quantity.</p><p>Note : "
|
2807 |
"Enable recursive checkbox if the discounts should be applied in sequential "
|
@@ -2809,7 +2811,7 @@ msgid ""
|
|
2809 |
"p>"
|
2810 |
msgstr ""
|
2811 |
|
2812 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2813 |
msgid ""
|
2814 |
"<p>Choose the adjustment type to which the discount should be applied. You "
|
2815 |
"can choose from products/categories/all products.</p><p>Note : Enable "
|
@@ -2817,14 +2819,14 @@ msgid ""
|
|
2817 |
"</p>"
|
2818 |
msgstr ""
|
2819 |
|
2820 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2821 |
msgid ""
|
2822 |
"<p>Discount will be applied <b>only the selected products (based on mode of "
|
2823 |
"apply)</b></p><p>Note : Enable recursive checkbox if the discounts should be "
|
2824 |
"applied in sequential ranges. </p>"
|
2825 |
msgstr ""
|
2826 |
|
2827 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2828 |
msgid ""
|
2829 |
"<p>Discount will be applied <b>only the selected categories (based on mode "
|
2830 |
"of apply)</b></p><p>Note : Enable recursive checkbox if the discounts should "
|
@@ -2835,7 +2837,7 @@ msgid ""
|
|
2835 |
"table>"
|
2836 |
msgstr ""
|
2837 |
|
2838 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2839 |
msgid ""
|
2840 |
"<p>Discount applies on the cheapest/highest priced <b>product IN CART</b>.</"
|
2841 |
"p><p>Note : Enable recursive checkbox if the discounts should be applied in "
|
@@ -2845,40 +2847,40 @@ msgid ""
|
|
2845 |
"tr></tr><tr><td>4</td><td>5</td><td>2</td></tr></tbody></table>"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2849 |
msgid "<p>Processing migration, please wait...</p>"
|
2850 |
msgstr ""
|
2851 |
|
2852 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2853 |
msgid "<p>Migration completed.</p>"
|
2854 |
msgstr ""
|
2855 |
|
2856 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2857 |
msgid "<p>Migration skipped.</p>"
|
2858 |
msgstr ""
|
2859 |
|
2860 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2861 |
msgid "<p>Skipping migration, please wait...</p>"
|
2862 |
msgstr ""
|
2863 |
|
2864 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2865 |
msgid ""
|
2866 |
"<span><b>Example:</b> Product A - Small and Product A - Medium will be "
|
2867 |
"counted as 2 quantity</span>"
|
2868 |
msgstr ""
|
2869 |
|
2870 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2871 |
msgid "<span>Discount applies to all eligible products in the store</span>"
|
2872 |
msgstr ""
|
2873 |
|
2874 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2875 |
msgid ""
|
2876 |
"<span>Choose products that get the discount using \"In List\". If you want "
|
2877 |
"to exclude a few products, choose \"Not In List\" and select the products "
|
2878 |
"you wanted to exclude from discount. (You can add multiple filters)</span>"
|
2879 |
msgstr ""
|
2880 |
|
2881 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2882 |
msgid ""
|
2883 |
"<span>Choose categories that get the discount using \"In List\". If you want "
|
2884 |
"to exclude a few categories, choose \"Not In List\" and select the "
|
@@ -2886,7 +2888,7 @@ msgid ""
|
|
2886 |
"filters of same type)</span>"
|
2887 |
msgstr ""
|
2888 |
|
2889 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2890 |
msgid ""
|
2891 |
"<span> Choose attributes that get the discount using \"In List\". If you "
|
2892 |
"want to exclude a few attributes, choose \"Not In List\" and select the "
|
@@ -2894,62 +2896,62 @@ msgid ""
|
|
2894 |
"filters of same type)</span>"
|
2895 |
msgstr ""
|
2896 |
|
2897 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2898 |
msgid ""
|
2899 |
"<span>Choose tags that get the discount using \"In List\". If you want to "
|
2900 |
"exclude a few tags, choose \"Not In List\" and select the tags you wanted to "
|
2901 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2902 |
msgstr ""
|
2903 |
|
2904 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2905 |
msgid ""
|
2906 |
"<span>Choose SKUs that get the discount using \"In List\". If you want to "
|
2907 |
"exclude a few SKUs, choose \"Not In List\" and select the SKUs you wanted to "
|
2908 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2909 |
msgstr ""
|
2910 |
|
2911 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2912 |
msgid ""
|
2913 |
"<span>Choose whether you want to include (or exclude) products on sale "
|
2914 |
"(those having a sale price) for the discount </span>"
|
2915 |
msgstr ""
|
2916 |
|
2917 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2918 |
msgid "<span>Discount applies to custom taxonomy</span>"
|
2919 |
msgstr ""
|
2920 |
|
2921 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2922 |
msgid "Processing please wait.."
|
2923 |
msgstr ""
|
2924 |
|
2925 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2926 |
msgid "Rebuild index processed"
|
2927 |
msgstr ""
|
2928 |
|
2929 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2930 |
msgid "Please select the rules to build index"
|
2931 |
msgstr ""
|
2932 |
|
2933 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2934 |
msgid "Invalid File. Upload : <b style='color:red;'>.csv</b> File. </br>"
|
2935 |
msgstr ""
|
2936 |
|
2937 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2938 |
msgid ""
|
2939 |
"<b>This rule is not running currently:</b> Rule reached maximum usage limit"
|
2940 |
msgstr ""
|
2941 |
|
2942 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2943 |
msgid ""
|
2944 |
"<b>This rule is not running currently:</b> Start date and time is set in the "
|
2945 |
"future date"
|
2946 |
msgstr ""
|
2947 |
|
2948 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2949 |
msgid "<b>This rule is not running currently:</b> Validity expired"
|
2950 |
msgstr ""
|
2951 |
|
2952 |
-
#: v2/App/Controllers/Admin/Settings.php:
|
2953 |
msgid "Select State"
|
2954 |
msgstr ""
|
2955 |
|
@@ -2970,6 +2972,10 @@ msgstr ""
|
|
2970 |
msgid "Import/Export"
|
2971 |
msgstr ""
|
2972 |
|
|
|
|
|
|
|
|
|
2973 |
#: v2/App/Controllers/Admin/Tabs/Reports/RuleAmount.php:14
|
2974 |
#: v2/App/Controllers/Admin/Tabs/Reports/RuleAmountWithCartDiscount.php:11
|
2975 |
#: v2/App/Controllers/Admin/Tabs/Reports/RuleNameDiscount.php:24
|
@@ -2998,6 +3004,10 @@ msgstr ""
|
|
2998 |
msgid "All Rules (except cart adjustment type)"
|
2999 |
msgstr ""
|
3000 |
|
|
|
|
|
|
|
|
|
3001 |
#: v2/App/Controllers/Base.php:42
|
3002 |
msgid "All Products"
|
3003 |
msgstr ""
|
@@ -3014,7 +3024,7 @@ msgid "Product Adjustment"
|
|
3014 |
msgstr ""
|
3015 |
|
3016 |
#: v2/App/Controllers/Base.php:195 v2/App/Controllers/Base.php:201
|
3017 |
-
#: v2/App/Helpers/ProOptions.php:332
|
3018 |
msgid "Simple Discount"
|
3019 |
msgstr ""
|
3020 |
|
@@ -3032,59 +3042,59 @@ msgstr ""
|
|
3032 |
msgid "<span class=\"onsale\">Sale!</span>"
|
3033 |
msgstr ""
|
3034 |
|
3035 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3036 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3037 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3038 |
-
#: v2/App/Helpers/Helper.php:
|
3039 |
msgid "Cart discount"
|
3040 |
msgstr ""
|
3041 |
|
3042 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3043 |
msgid "Coupon code applied successfully."
|
3044 |
msgstr ""
|
3045 |
|
3046 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3047 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3048 |
msgid "Discount <strong>{{title}}</strong> has been applied to your cart."
|
3049 |
msgstr ""
|
3050 |
|
3051 |
-
#: v2/App/Controllers/ManageDiscount.php:
|
3052 |
msgid "You saved {{total_discount}}"
|
3053 |
msgstr ""
|
3054 |
|
3055 |
-
#: v2/App/Helpers/Helper.php:
|
3056 |
msgid "Include additional conditions (if necessary)"
|
3057 |
msgstr ""
|
3058 |
|
3059 |
-
#: v2/App/Helpers/Helper.php:
|
3060 |
msgid "Popular conditions:"
|
3061 |
msgstr ""
|
3062 |
|
3063 |
-
#: v2/App/Helpers/Helper.php:
|
3064 |
msgid "User role"
|
3065 |
msgstr ""
|
3066 |
|
3067 |
-
#: v2/App/Helpers/Helper.php:
|
3068 |
msgid "Days & Time"
|
3069 |
msgstr ""
|
3070 |
|
3071 |
-
#: v2/App/Helpers/Helper.php:
|
3072 |
msgid "Payment Method"
|
3073 |
msgstr ""
|
3074 |
|
3075 |
-
#: v2/App/Helpers/Helper.php:
|
3076 |
msgid "Shipping Address"
|
3077 |
msgstr ""
|
3078 |
|
3079 |
-
#: v2/App/Helpers/Helper.php:
|
3080 |
msgid "Product Combination"
|
3081 |
msgstr ""
|
3082 |
|
3083 |
-
#: v2/App/Helpers/Helper.php:
|
3084 |
msgid "Quantities/Line items"
|
3085 |
msgstr ""
|
3086 |
|
3087 |
-
#: v2/App/Helpers/Helper.php:
|
3088 |
msgid ""
|
3089 |
"Individual Product : \n"
|
3090 |
" This counts the total quantity of each product / line item "
|
@@ -3099,7 +3109,7 @@ msgid ""
|
|
3099 |
"variant because WooCommerce considers a variant as a product itself."
|
3100 |
msgstr ""
|
3101 |
|
3102 |
-
#: v2/App/Helpers/Helper.php:
|
3103 |
msgid ""
|
3104 |
"Filter set above :\n"
|
3105 |
" This will count the quantities of products set in the 'Filter' "
|
@@ -3113,7 +3123,7 @@ msgid ""
|
|
3113 |
"1 quantity each of X, Y and Z from Category A, then the count here is 3."
|
3114 |
msgstr ""
|
3115 |
|
3116 |
-
#: v2/App/Helpers/Helper.php:
|
3117 |
msgid ""
|
3118 |
"All variants in each product together :\n"
|
3119 |
" Useful when applying discounts based on variable products and "
|
@@ -3124,18 +3134,18 @@ msgid ""
|
|
3124 |
"Medium, 6 of Product A - Large, then the count will be: 6+4+2 = 12\n"
|
3125 |
msgstr ""
|
3126 |
|
3127 |
-
#: v2/App/Helpers/Helper.php:
|
3128 |
msgid "Update now"
|
3129 |
msgstr ""
|
3130 |
|
3131 |
-
#: v2/App/Helpers/Helper.php:
|
3132 |
#, php-format
|
3133 |
msgid ""
|
3134 |
"You are using a lower version of our <b>Woo Discount Rules PRO 2.0</b> "
|
3135 |
"plugin. Please update the plugin to latest version to run smoothly. %s"
|
3136 |
msgstr ""
|
3137 |
|
3138 |
-
#: v2/App/Helpers/Migration.php:
|
3139 |
#, php-format
|
3140 |
msgid "%s Completed. Please wait.."
|
3141 |
msgstr ""
|
@@ -3301,17 +3311,17 @@ msgstr ""
|
|
3301 |
msgid "Bundle (Set) Discount - PRO -"
|
3302 |
msgstr ""
|
3303 |
|
3304 |
-
#: v2/App/Helpers/Rule.php:
|
3305 |
msgid "discount"
|
3306 |
msgstr ""
|
3307 |
|
3308 |
-
#: v2/App/Helpers/Rule.php:
|
3309 |
#: v2/App/Views/Admin/Tabs/ImportExport.php:99
|
3310 |
msgid "Untitled Rule"
|
3311 |
msgstr ""
|
3312 |
|
3313 |
#: v2/App/Helpers/Validation.php:146 v2/App/Helpers/Validation.php:151
|
3314 |
-
#: v2/App/Helpers/Validation.php:
|
3315 |
msgid "Invalid characters"
|
3316 |
msgstr ""
|
3317 |
|
@@ -3332,145 +3342,149 @@ msgstr ""
|
|
3332 |
msgid "Accepts only hex color code"
|
3333 |
msgstr ""
|
3334 |
|
3335 |
-
#: v2/App/Helpers/Validation.php:
|
3336 |
msgid "Accept only yes, on, 1, true"
|
3337 |
msgstr ""
|
3338 |
|
3339 |
-
#: v2/App/Helpers/Validation.php:
|
3340 |
msgid "Should not contain any tags"
|
3341 |
msgstr ""
|
3342 |
|
3343 |
-
#: v2/App/Helpers/Validation.php:
|
3344 |
msgid "Should not contain any tags and special characters"
|
3345 |
msgstr ""
|
3346 |
|
3347 |
-
#: v2/App/Helpers/Validation.php:
|
|
|
|
|
|
|
|
|
3348 |
msgid "Validation error"
|
3349 |
msgstr ""
|
3350 |
|
3351 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3352 |
msgid "Sunday"
|
3353 |
msgstr ""
|
3354 |
|
3355 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3356 |
msgid "Monday"
|
3357 |
msgstr ""
|
3358 |
|
3359 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3360 |
msgid "Tuesday"
|
3361 |
msgstr ""
|
3362 |
|
3363 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3364 |
msgid "Wednesday"
|
3365 |
msgstr ""
|
3366 |
|
3367 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3368 |
msgid "Thursday"
|
3369 |
msgstr ""
|
3370 |
|
3371 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3372 |
msgid "Friday"
|
3373 |
msgstr ""
|
3374 |
|
3375 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3376 |
msgid "Saturday"
|
3377 |
msgstr ""
|
3378 |
|
3379 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3380 |
msgid ""
|
3381 |
"Woocommerce before main content(Archive / Shop / Cat Pages / single product)"
|
3382 |
msgstr ""
|
3383 |
|
3384 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3385 |
msgid "Woocommerce archive description(Archive / Shop / Cat Pages)"
|
3386 |
msgstr ""
|
3387 |
|
3388 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3389 |
msgid "Woocommerce before shop loop(Archive / Shop / Cat Pages)"
|
3390 |
msgstr ""
|
3391 |
|
3392 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3393 |
msgid "Woocommerce after shop loop(Archive / Shop / Cat Pages)"
|
3394 |
msgstr ""
|
3395 |
|
3396 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3397 |
msgid ""
|
3398 |
"Woocommerce after main content(Archive / Shop / Cat Pages / single product)"
|
3399 |
msgstr ""
|
3400 |
|
3401 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3402 |
#: v2/App/Views/Admin/Tabs/settings.php:213
|
3403 |
msgid "Woocommerce before single product"
|
3404 |
msgstr ""
|
3405 |
|
3406 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3407 |
#: v2/App/Views/Admin/Tabs/settings.php:215
|
3408 |
msgid "Woocommerce before single product summary"
|
3409 |
msgstr ""
|
3410 |
|
3411 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3412 |
#: v2/App/Views/Admin/Tabs/settings.php:214
|
3413 |
msgid "Woocommerce after single product summary"
|
3414 |
msgstr ""
|
3415 |
|
3416 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3417 |
#: v2/App/Views/Admin/Tabs/settings.php:212
|
3418 |
msgid "Woocommerce after single product"
|
3419 |
msgstr ""
|
3420 |
|
3421 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3422 |
msgid "Woocommerce before cart"
|
3423 |
msgstr ""
|
3424 |
|
3425 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3426 |
msgid "Woocommerce before cart table"
|
3427 |
msgstr ""
|
3428 |
|
3429 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3430 |
msgid "Woocommerce before cart contents"
|
3431 |
msgstr ""
|
3432 |
|
3433 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3434 |
msgid "Woocommerce cart contents"
|
3435 |
msgstr ""
|
3436 |
|
3437 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3438 |
msgid "Woocommerce after cart contents"
|
3439 |
msgstr ""
|
3440 |
|
3441 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3442 |
msgid "Woocommerce after cart table"
|
3443 |
msgstr ""
|
3444 |
|
3445 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3446 |
msgid "Woocommerce after cart"
|
3447 |
msgstr ""
|
3448 |
|
3449 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3450 |
msgid "Woocommerce before checkout form"
|
3451 |
msgstr ""
|
3452 |
|
3453 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3454 |
msgid "Woocommerce before checkout billing form"
|
3455 |
msgstr ""
|
3456 |
|
3457 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3458 |
msgid "Woocommerce after checkout billing form"
|
3459 |
msgstr ""
|
3460 |
|
3461 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3462 |
msgid "Woocommerce before checkout shipping form"
|
3463 |
msgstr ""
|
3464 |
|
3465 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3466 |
msgid "Woocommerce after checkout shipping form"
|
3467 |
msgstr ""
|
3468 |
|
3469 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3470 |
msgid "Woocommerce before order notes"
|
3471 |
msgstr ""
|
3472 |
|
3473 |
-
#: v2/App/Helpers/Woocommerce.php:
|
3474 |
msgid "Woocommerce after order notes"
|
3475 |
msgstr ""
|
3476 |
|
@@ -3529,7 +3543,7 @@ msgid "Subtotal should be"
|
|
3529 |
msgstr ""
|
3530 |
|
3531 |
#: v2/App/Views/Admin/Rules/Conditions/Cart/Subtotal.php:23
|
3532 |
-
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:
|
3533 |
msgid "0.00"
|
3534 |
msgstr ""
|
3535 |
|
@@ -3541,71 +3555,71 @@ msgstr ""
|
|
3541 |
msgid "How to calculate the subtotal"
|
3542 |
msgstr ""
|
3543 |
|
3544 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3545 |
msgid "Rules (Optional)"
|
3546 |
msgstr ""
|
3547 |
|
3548 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3549 |
msgid "Conditions Relationship "
|
3550 |
msgstr ""
|
3551 |
|
3552 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3553 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3554 |
msgid "Match All"
|
3555 |
msgstr ""
|
3556 |
|
3557 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3558 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3559 |
msgid "Match Any"
|
3560 |
msgstr ""
|
3561 |
|
3562 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3563 |
#: v2/App/Views/Admin/Rules/Others/CommonTemplates.php:87
|
3564 |
msgid "Condition Type"
|
3565 |
msgstr ""
|
3566 |
|
3567 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3568 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3569 |
msgid "Add condition"
|
3570 |
msgstr ""
|
3571 |
|
3572 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3573 |
msgid "Conditions Relationship"
|
3574 |
msgstr ""
|
3575 |
|
3576 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3577 |
msgid "Rule Limits"
|
3578 |
msgstr ""
|
3579 |
|
3580 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3581 |
msgid "Rule Used: "
|
3582 |
msgstr ""
|
3583 |
|
3584 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3585 |
msgid "Unlimited"
|
3586 |
msgstr ""
|
3587 |
|
3588 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3589 |
msgid "Maximum usage limit"
|
3590 |
msgstr ""
|
3591 |
|
3592 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3593 |
msgid "Rule Vaild From"
|
3594 |
msgstr ""
|
3595 |
|
3596 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3597 |
msgid "Vaild from"
|
3598 |
msgstr ""
|
3599 |
|
3600 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3601 |
msgid "Rule Valid To"
|
3602 |
msgstr ""
|
3603 |
|
3604 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3605 |
msgid "Vaild to"
|
3606 |
msgstr ""
|
3607 |
|
3608 |
-
#: v2/App/Views/Admin/Rules/Conditions/Main.php:
|
3609 |
msgid "Select values"
|
3610 |
msgstr ""
|
3611 |
|
@@ -3626,7 +3640,7 @@ msgid "Preview"
|
|
3626 |
msgstr ""
|
3627 |
|
3628 |
#: v2/App/Views/Admin/Rules/DiscountBatch/Main.php:22
|
3629 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3630 |
msgid "Note:"
|
3631 |
msgstr ""
|
3632 |
|
@@ -3747,7 +3761,7 @@ msgid "Discount Type"
|
|
3747 |
msgstr ""
|
3748 |
|
3749 |
#: v2/App/Views/Admin/Rules/Discounts/Bulk.php:63
|
3750 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
3751 |
msgid "Discount Value"
|
3752 |
msgstr ""
|
3753 |
|
@@ -4014,30 +4028,53 @@ msgstr ""
|
|
4014 |
msgid "Select discount type and its value (percentage/price/fixed price)"
|
4015 |
msgstr ""
|
4016 |
|
4017 |
-
#: v2/App/Views/Admin/Rules/Others/
|
|
|
4018 |
msgid "Promotion Message"
|
4019 |
msgstr ""
|
4020 |
|
4021 |
-
#: v2/App/Views/Admin/Rules/Others/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4022 |
msgid "Set a threshold from which you want to start showing promotion message"
|
4023 |
msgstr ""
|
4024 |
|
4025 |
-
#: v2/App/Views/Admin/Rules/Others/
|
4026 |
#, php-format
|
4027 |
msgid ""
|
4028 |
-
"<b>Example:</b> Let's say you offer a 10% discount for
|
4029 |
-
"may want to set
|
4030 |
-
"his cart
|
4031 |
msgstr ""
|
4032 |
|
4033 |
-
#: v2/App/Views/Admin/Rules/Others/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4034 |
#, php-format
|
4035 |
-
msgid "
|
|
|
4036 |
msgstr ""
|
4037 |
|
4038 |
-
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:
|
4039 |
#, php-format
|
4040 |
-
msgid "
|
|
|
|
|
|
|
4041 |
msgstr ""
|
4042 |
|
4043 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:16
|
@@ -4198,6 +4235,71 @@ msgid ""
|
|
4198 |
"woocommerce-discount-rules\" target=\"_blank\">Upgrading to Pro</a>"
|
4199 |
msgstr ""
|
4200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4201 |
#: v2/App/Views/Admin/Tabs/Statistics.php:39
|
4202 |
msgid "This Week"
|
4203 |
msgstr ""
|
@@ -4340,7 +4442,7 @@ msgid "Show discount table on product page"
|
|
4340 |
msgstr ""
|
4341 |
|
4342 |
#: v2/App/Views/Admin/Tabs/settings.php:178
|
4343 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4344 |
msgid "Customize Discount Table"
|
4345 |
msgstr ""
|
4346 |
|
@@ -4442,220 +4544,220 @@ msgid "Discount label for combined discounts"
|
|
4442 |
msgstr ""
|
4443 |
|
4444 |
#: v2/App/Views/Admin/Tabs/settings.php:328
|
4445 |
-
msgid "
|
4446 |
msgstr ""
|
4447 |
|
4448 |
#: v2/App/Views/Admin/Tabs/settings.php:329
|
4449 |
msgid ""
|
4450 |
-
"Display
|
4451 |
"enabled an option to add promotion message will displays on each rule(when "
|
4452 |
-
"
|
4453 |
msgstr ""
|
4454 |
|
4455 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4456 |
-
msgid "Subtotal
|
4457 |
msgstr ""
|
4458 |
|
4459 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4460 |
msgid ""
|
4461 |
-
"
|
4462 |
msgstr ""
|
4463 |
|
4464 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4465 |
msgid "Select the page to display promotion message"
|
4466 |
msgstr ""
|
4467 |
|
4468 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4469 |
msgid "Display you saved text"
|
4470 |
msgstr ""
|
4471 |
|
4472 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4473 |
msgid "Display you saved text when rule applied"
|
4474 |
msgstr ""
|
4475 |
|
4476 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4477 |
msgid "You save text to show when rule applied"
|
4478 |
msgstr ""
|
4479 |
|
4480 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4481 |
msgid "Show a discount applied message on cart?"
|
4482 |
msgstr ""
|
4483 |
|
4484 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4485 |
msgid "Show message in cart page on rule applied"
|
4486 |
msgstr ""
|
4487 |
|
4488 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4489 |
msgid "Applied rule message text on cart"
|
4490 |
msgstr ""
|
4491 |
|
4492 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4493 |
msgid "Text to show when rule applied"
|
4494 |
msgstr ""
|
4495 |
|
4496 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4497 |
msgid "On-Sale page"
|
4498 |
msgstr ""
|
4499 |
|
4500 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4501 |
msgid "Select rules for the On Sale Page"
|
4502 |
msgstr ""
|
4503 |
|
4504 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4505 |
msgid "Type the name of the rule to select it"
|
4506 |
msgstr ""
|
4507 |
|
4508 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4509 |
msgid "All active rules"
|
4510 |
msgstr ""
|
4511 |
|
4512 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4513 |
msgid "Save and Build Index"
|
4514 |
msgstr ""
|
4515 |
|
4516 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4517 |
-
msgid ""
|
4518 |
-
"Unlock this feature by <a href='https://www.flycart.org/products/wordpress/"
|
4519 |
-
"woocommerce-discount-rules?utm_source=woo-discount-rules-"
|
4520 |
-
"v2&utm_campaign=doc&utm_medium=text-click&utm_content=unlock_pro' "
|
4521 |
-
"target='_blank'>Upgrading to Pro</a>"
|
4522 |
-
msgstr ""
|
4523 |
-
|
4524 |
-
#: v2/App/Views/Admin/Tabs/settings.php:506
|
4525 |
msgid ""
|
4526 |
"ShortCode to load all products which has discount through Woo Discount Rules"
|
4527 |
msgstr ""
|
4528 |
|
4529 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4530 |
msgid "Settings Saved"
|
4531 |
msgstr ""
|
4532 |
|
4533 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4534 |
msgid "Oops! Something went wrong."
|
4535 |
msgstr ""
|
4536 |
|
4537 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4538 |
msgid " This table contains sample content for design purpose."
|
4539 |
msgstr ""
|
4540 |
|
4541 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4542 |
msgid "Table Header"
|
4543 |
msgstr ""
|
4544 |
|
4545 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4546 |
msgid "Show/Hide table header column names"
|
4547 |
msgstr ""
|
4548 |
|
4549 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4550 |
msgid "Title column Name on table"
|
4551 |
msgstr ""
|
4552 |
|
4553 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4554 |
msgid "Give name for rule title column"
|
4555 |
msgstr ""
|
4556 |
|
4557 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4558 |
msgid "Discount column Name on table"
|
4559 |
msgstr ""
|
4560 |
|
4561 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4562 |
msgid "Give name for discount column"
|
4563 |
msgstr ""
|
4564 |
|
4565 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4566 |
msgid "Range column Name on table"
|
4567 |
msgstr ""
|
4568 |
|
4569 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4570 |
msgid "Give name for range column"
|
4571 |
msgstr ""
|
4572 |
|
4573 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4574 |
msgid "Discount column value on table"
|
4575 |
msgstr ""
|
4576 |
|
4577 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4578 |
msgid "Show Discount value/price in table"
|
4579 |
msgstr ""
|
4580 |
|
4581 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4582 |
msgid "Discounted Price"
|
4583 |
msgstr ""
|
4584 |
|
4585 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4586 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4587 |
msgid "Bulk Rule"
|
4588 |
msgstr ""
|
4589 |
|
4590 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4591 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4592 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4593 |
#: v2/App/Views/Templates/discount_table.php:118
|
4594 |
msgid " flat"
|
4595 |
msgstr ""
|
4596 |
|
4597 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4598 |
msgid "1 - 5"
|
4599 |
msgstr ""
|
4600 |
|
4601 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4602 |
msgid "11 - 15"
|
4603 |
msgstr ""
|
4604 |
|
4605 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4606 |
msgid "Bulk Flat discount"
|
4607 |
msgstr ""
|
4608 |
|
4609 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4610 |
msgid "50 - 60"
|
4611 |
msgstr ""
|
4612 |
|
4613 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4614 |
msgid "Bulk percentage discount"
|
4615 |
msgstr ""
|
4616 |
|
4617 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4618 |
msgid "70 - 80"
|
4619 |
msgstr ""
|
4620 |
|
4621 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4622 |
#, php-format
|
4623 |
msgid "Bulk % discount"
|
4624 |
msgstr ""
|
4625 |
|
4626 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4627 |
msgid "450 - 500"
|
4628 |
msgstr ""
|
4629 |
|
4630 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4631 |
msgid "Bulk flat"
|
4632 |
msgstr ""
|
4633 |
|
4634 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4635 |
msgid "600 - 700"
|
4636 |
msgstr ""
|
4637 |
|
4638 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4639 |
msgid "set percentage discount"
|
4640 |
msgstr ""
|
4641 |
|
4642 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4643 |
msgid "5"
|
4644 |
msgstr ""
|
4645 |
|
4646 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4647 |
msgid "Fixed discount for set"
|
4648 |
msgstr ""
|
4649 |
|
4650 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4651 |
msgid "10"
|
4652 |
msgstr ""
|
4653 |
|
4654 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4655 |
msgid "set flat discount"
|
4656 |
msgstr ""
|
4657 |
|
4658 |
-
#: v2/App/Views/Admin/Tabs/settings.php:
|
4659 |
msgid "15"
|
4660 |
msgstr ""
|
4661 |
|
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:56
|
17 |
+
#: v2/App/Controllers/Admin/WDRAjax.php:59
|
18 |
msgid "Authentication required"
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: common.php:17 v2/App/Controllers/Admin/WDRAjax.php:730
|
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:319
|
157 |
msgid "Guest"
|
158 |
msgstr ""
|
159 |
|
182 |
msgstr ""
|
183 |
|
184 |
#: v1/helper/general-helper.php:797
|
185 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:11
|
186 |
#: v2/App/Views/Admin/Rules/Manage.php:148
|
187 |
#: v2/App/Views/Admin/Rules/Manage.php:149
|
188 |
#: v2/App/Views/Admin/Rules/Manage.php:150
|
195 |
#: v2/App/Views/Admin/Tabs/settings.php:122
|
196 |
#: v2/App/Views/Admin/Tabs/settings.php:169
|
197 |
#: v2/App/Views/Admin/Tabs/settings.php:240
|
198 |
+
#: v2/App/Views/Admin/Tabs/settings.php:359
|
199 |
+
#: v2/App/Views/Admin/Tabs/settings.php:443
|
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:1510
|
205 |
msgid "Coupon already exists in WooCommerce. Please select another name"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: v1/helper/general-helper.php:1266 v2/App/Helpers/Helper.php:325
|
209 |
msgid "Invalid token"
|
210 |
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:41
|
215 |
+
#: v2/App/Controllers/Admin/Settings.php:42
|
216 |
msgid "Woo Discount Rules"
|
217 |
msgstr ""
|
218 |
|
278 |
#: v1/includes/advanced/free_shipping_method.php:73
|
279 |
#: v1/includes/discount-base.php:1128 v1/view/cart-rules.php:133
|
280 |
#: v1/view/pricing-rules.php:163 v1/view/settings_promotion.php:65
|
281 |
+
#: v1/view/settings_promotion.php:100 v2/App/Controllers/Admin/Settings.php:429
|
282 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:77
|
283 |
msgid "Enable"
|
284 |
msgstr ""
|
306 |
msgstr ""
|
307 |
|
308 |
#: v1/includes/discount-base.php:207 v1/view/cart-rules.php:162
|
309 |
+
#: v1/view/pricing-rules.php:192 v2/App/Controllers/Admin/Settings.php:428
|
310 |
msgid "Active"
|
311 |
msgstr ""
|
312 |
|
316 |
#: v1/view/settings_promotion.php:22 v1/view/settings_promotion.php:62
|
317 |
#: v1/view/settings_promotion.php:97 v1/view/settings_promotion.php:132
|
318 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:252
|
319 |
+
#: v2/App/Views/Admin/Tabs/settings.php:363
|
320 |
msgid "Disabled"
|
321 |
msgstr ""
|
322 |
|
388 |
|
389 |
#: v1/includes/discount-base.php:1089 v1/view/view-pricing-rules.php:654
|
390 |
#: v1/view/view-pricing-rules.php:657 v1/view/view-pricing-rules.php:677
|
391 |
+
#: v2/App/Controllers/Admin/Settings.php:446
|
392 |
msgid "Quantity"
|
393 |
msgstr ""
|
394 |
|
417 |
msgstr ""
|
418 |
|
419 |
#: v1/includes/discount-base.php:1095 v1/view/view-pricing-rules.php:954
|
420 |
+
#: v2/App/Controllers/Admin/Settings.php:449
|
421 |
msgid "Discount percentage"
|
422 |
msgstr ""
|
423 |
|
564 |
msgstr ""
|
565 |
|
566 |
#: v1/includes/discount-base.php:1129 v1/view/cart-rules.php:130
|
567 |
+
#: v1/view/pricing-rules.php:160 v2/App/Controllers/Admin/Settings.php:427
|
568 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:78
|
569 |
msgid "Disable"
|
570 |
msgstr ""
|
684 |
msgstr ""
|
685 |
|
686 |
#: v1/includes/discount-base.php:1156 v1/view/view-cart-rules.php:365
|
687 |
+
#: v1/view/view-pricing-rules.php:536 v2/App/Helpers/Helper.php:165
|
688 |
#: v2/App/Helpers/ProOptions.php:192 v2/App/Helpers/ProOptions.php:200
|
689 |
#: v2/App/Helpers/ProOptions.php:208 v2/App/Helpers/ProOptions.php:216
|
690 |
#: v2/App/Helpers/ProOptions.php:224 v2/App/Helpers/ProOptions.php:232
|
778 |
#: v1/includes/discount-base.php:1173 v1/view/settings_price_rules.php:208
|
779 |
#: v1/view/settings_price_rules.php:226 v1/view/settings_price_rules.php:244
|
780 |
#: v1/view/settings_price_rules.php:262
|
781 |
+
#: v2/App/Views/Admin/Tabs/settings.php:546
|
782 |
msgid "Show"
|
783 |
msgstr ""
|
784 |
|
844 |
msgstr ""
|
845 |
|
846 |
#: v1/includes/discount-base.php:1186 v1/view/view-cart-rules.php:221
|
847 |
+
#: v2/App/Controllers/Base.php:47 v2/App/Views/Admin/Rules/Filters/Main.php:69
|
848 |
msgid "Products"
|
849 |
msgstr ""
|
850 |
|
1017 |
msgstr ""
|
1018 |
|
1019 |
#: v1/includes/discount-base.php:1302
|
1020 |
+
#: v2/App/Controllers/ManageDiscount.php:1161
|
1021 |
#, php-format
|
1022 |
msgid ""
|
1023 |
"Sorry, it is not possible to apply coupon <b>\"%s\"</b> as you already have "
|
1025 |
msgstr ""
|
1026 |
|
1027 |
#: v1/includes/discount-base.php:1357 v1/view/includes/menu.php:18
|
1028 |
+
#: v2/App/Controllers/Admin/Settings.php:66
|
1029 |
#: v2/App/Controllers/Admin/Tabs/GeneralSettings.php:23
|
1030 |
msgid "Settings"
|
1031 |
msgstr ""
|
1281 |
|
1282 |
#: v1/view/cart-rules.php:104 v1/view/cart-rules.php:214
|
1283 |
#: v1/view/pricing-rules.php:134 v1/view/pricing-rules.php:244
|
1284 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:218
|
1285 |
msgid "Language"
|
1286 |
msgstr ""
|
1287 |
|
1414 |
"conditions"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
+
#: v1/view/documentation.php:72 v2/App/Helpers/Helper.php:173
|
1418 |
msgid "Category Combination"
|
1419 |
msgstr ""
|
1420 |
|
1436 |
|
1437 |
#: v1/view/includes/cart-menu.php:13 v1/view/includes/sub-menu.php:13
|
1438 |
#: v1/view/template/discount-table.php:42 v1/view/view-cart-rules.php:756
|
1439 |
+
#: v1/view/view-pricing-rules.php:708 v2/App/Controllers/Admin/Settings.php:454
|
1440 |
#: v2/App/Views/Admin/Rules/Discounts/Bulk.php:59
|
1441 |
#: v2/App/Views/Admin/Rules/Manage.php:209
|
1442 |
msgid "Discount"
|
1621 |
#: v2/App/Views/Admin/Tabs/settings.php:174
|
1622 |
#: v2/App/Views/Admin/Tabs/settings.php:269
|
1623 |
#: v2/App/Views/Admin/Tabs/settings.php:298
|
1624 |
+
#: v2/App/Views/Admin/Tabs/settings.php:390
|
|
|
1625 |
msgid "Yes"
|
1626 |
msgstr ""
|
1627 |
|
1636 |
#: v2/App/Views/Admin/Tabs/settings.php:177
|
1637 |
#: v2/App/Views/Admin/Tabs/settings.php:273
|
1638 |
#: v2/App/Views/Admin/Tabs/settings.php:304
|
1639 |
+
#: v2/App/Views/Admin/Tabs/settings.php:395
|
|
|
1640 |
msgid "No"
|
1641 |
msgstr ""
|
1642 |
|
1765 |
#: v1/view/settings_price_rules.php:137 v1/view/settings_price_rules.php:211
|
1766 |
#: v1/view/settings_price_rules.php:229 v1/view/settings_price_rules.php:247
|
1767 |
#: v1/view/settings_price_rules.php:265
|
1768 |
+
#: v2/App/Views/Admin/Tabs/settings.php:549
|
1769 |
msgid "Don't Show"
|
1770 |
msgstr ""
|
1771 |
|
1874 |
msgid "Display savings text (for price rules)"
|
1875 |
msgstr ""
|
1876 |
|
1877 |
+
#: v1/view/settings_promotion.php:25 v2/App/Views/Admin/Tabs/settings.php:364
|
1878 |
msgid "On each line item"
|
1879 |
msgstr ""
|
1880 |
|
1881 |
+
#: v1/view/settings_promotion.php:28 v2/App/Views/Admin/Tabs/settings.php:365
|
1882 |
msgid "On after total"
|
1883 |
msgstr ""
|
1884 |
|
1885 |
+
#: v1/view/settings_promotion.php:31 v2/App/Views/Admin/Tabs/settings.php:366
|
1886 |
msgid "Both in line item and after total"
|
1887 |
msgstr ""
|
1888 |
|
1889 |
+
#: v1/view/settings_promotion.php:39 v2/App/Views/Admin/Tabs/settings.php:373
|
1890 |
msgid "Savings text to show"
|
1891 |
msgstr ""
|
1892 |
|
1900 |
|
1901 |
#: v1/view/settings_promotion.php:73 v1/view/settings_promotion.php:108
|
1902 |
#: v1/view/view-cart-rules.php:730
|
1903 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:28
|
1904 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:29
|
1905 |
msgid "Message"
|
1906 |
msgstr ""
|
1907 |
|
1923 |
"discounts)"
|
1924 |
msgstr ""
|
1925 |
|
1926 |
+
#: v1/view/settings_promotion.php:134 v2/App/Views/Admin/Tabs/settings.php:349
|
1927 |
msgid "Shop page"
|
1928 |
msgstr ""
|
1929 |
|
1930 |
+
#: v1/view/settings_promotion.php:137 v2/App/Views/Admin/Tabs/settings.php:350
|
1931 |
msgid "Product page"
|
1932 |
msgstr ""
|
1933 |
|
1934 |
+
#: v1/view/settings_promotion.php:140 v2/App/Views/Admin/Tabs/settings.php:351
|
1935 |
msgid "Cart page"
|
1936 |
msgstr ""
|
1937 |
|
1938 |
+
#: v1/view/settings_promotion.php:143 v2/App/Views/Admin/Tabs/settings.php:352
|
1939 |
msgid "Checkout page"
|
1940 |
msgstr ""
|
1941 |
|
1970 |
|
1971 |
#: v1/view/template/loop/sale-flash.php:23
|
1972 |
#: v1/view/template/single-product/sale-flash.php:23
|
1973 |
+
#: v2/App/Views/Admin/Tabs/settings.php:161
|
1974 |
#: v2/App/Views/Templates/loop/sale-flash.php:23
|
1975 |
#: v2/App/Views/Templates/single-product/sale-flash.php:23
|
1976 |
msgid "Sale!"
|
2104 |
msgstr ""
|
2105 |
|
2106 |
#: v1/view/view-cart-rules.php:140 v1/view/view-pricing-rules.php:149
|
2107 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:150
|
2108 |
#, php-format
|
2109 |
msgid "Current date and time: %s"
|
2110 |
msgstr ""
|
2135 |
msgstr ""
|
2136 |
|
2137 |
#: v1/view/view-cart-rules.php:718
|
2138 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:19
|
2139 |
msgid "Subtotal from"
|
2140 |
msgstr ""
|
2141 |
|
2149 |
msgstr ""
|
2150 |
|
2151 |
#: v1/view/view-cart-rules.php:735
|
2152 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:33
|
2153 |
#, php-format
|
2154 |
msgid "Spend {{difference_amount}} more and get 10% discount"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
#: v1/view/view-cart-rules.php:737
|
2158 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:34
|
2159 |
msgid "{{difference_amount}} -> Difference amount to get discount"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
#: v1/view/view-cart-rules.php:738
|
2163 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:35
|
2164 |
#, php-format
|
2165 |
msgid "<b>Eg:</b> Spend {{difference_amount}} more and get 10% discount"
|
2166 |
msgstr ""
|
2373 |
msgid "Do not use"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: v1/view/view-pricing-rules.php:394 v2/App/Helpers/Helper.php:171
|
2377 |
#: v2/App/Views/Admin/Tabs/settings.php:284
|
2378 |
msgid "Coupon"
|
2379 |
msgstr ""
|
2398 |
msgid "Make sure you have created the coupon already"
|
2399 |
msgstr ""
|
2400 |
|
2401 |
+
#: v1/view/view-pricing-rules.php:484 v2/App/Conditions/CartSubTotal.php:18
|
2402 |
+
#: v2/App/Helpers/Helper.php:162
|
2403 |
msgid "Subtotal"
|
2404 |
msgstr ""
|
2405 |
|
2575 |
msgid "Limitation: Strikeout for add-on price and subtotal in product page."
|
2576 |
msgstr ""
|
2577 |
|
2578 |
+
#: v2/App/Compatibility/ProductAddOnsByWooCommerce.php:108
|
2579 |
msgid "Show discount price in product pages for WooCommerce Product Add Ons."
|
2580 |
msgstr ""
|
2581 |
|
2588 |
msgstr ""
|
2589 |
|
2590 |
#: v2/App/Conditions/CartLineItemsCount.php:16
|
2591 |
+
#: v2/App/Conditions/CartSubTotal.php:19 v2/App/Helpers/ProOptions.php:80
|
2592 |
#: v2/App/Helpers/ProOptions.php:136 v2/App/Helpers/ProOptions.php:144
|
2593 |
#: v2/App/Helpers/ProOptions.php:152 v2/App/Views/Admin/Tabs/settings.php:257
|
2594 |
msgid "Cart"
|
2595 |
msgstr ""
|
2596 |
|
2597 |
+
#: v2/App/Controllers/Admin/Settings.php:165
|
2598 |
msgid ""
|
2599 |
"We found that your were using our old \"Woo discount rules\" plugin, Please "
|
2600 |
"disable it!"
|
2601 |
msgstr ""
|
2602 |
|
2603 |
+
#: v2/App/Controllers/Admin/Settings.php:232
|
2604 |
msgid "no results"
|
2605 |
msgstr ""
|
2606 |
|
2607 |
+
#: v2/App/Controllers/Admin/Settings.php:233
|
2608 |
msgid "Select Values"
|
2609 |
msgstr ""
|
2610 |
|
2611 |
+
#: v2/App/Controllers/Admin/Settings.php:234
|
2612 |
msgid "Searching…"
|
2613 |
msgstr ""
|
2614 |
|
2615 |
+
#: v2/App/Controllers/Admin/Settings.php:430
|
2616 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:294
|
2617 |
msgid " - (Running)"
|
2618 |
msgstr ""
|
2619 |
|
2620 |
+
#: v2/App/Controllers/Admin/Settings.php:431
|
2621 |
msgid "Oops!! something went wrong!"
|
2622 |
msgstr ""
|
2623 |
|
2624 |
+
#: v2/App/Controllers/Admin/Settings.php:432
|
2625 |
msgid "Rule duplicated successfully!"
|
2626 |
msgstr ""
|
2627 |
|
2628 |
+
#: v2/App/Controllers/Admin/Settings.php:433
|
2629 |
msgid "Rule deleted successfully!"
|
2630 |
msgstr ""
|
2631 |
|
2632 |
+
#: v2/App/Controllers/Admin/Settings.php:434
|
2633 |
msgid "Are you sure want to delete this rule!"
|
2634 |
msgstr ""
|
2635 |
|
2636 |
+
#: v2/App/Controllers/Admin/Settings.php:435
|
2637 |
msgid "Rule disabled successfully!"
|
2638 |
msgstr ""
|
2639 |
|
2640 |
+
#: v2/App/Controllers/Admin/Settings.php:436
|
2641 |
msgid "Rule enabled successfully!"
|
2642 |
msgstr ""
|
2643 |
|
2644 |
+
#: v2/App/Controllers/Admin/Settings.php:437
|
2645 |
msgid "Rule saved successfully!"
|
2646 |
msgstr ""
|
2647 |
|
2648 |
+
#: v2/App/Controllers/Admin/Settings.php:438
|
2649 |
msgid "Settings saved successfully!"
|
2650 |
msgstr ""
|
2651 |
|
2652 |
+
#: v2/App/Controllers/Admin/Settings.php:439
|
2653 |
msgid "Rule priority changed successfully!"
|
2654 |
msgstr ""
|
2655 |
|
2656 |
+
#: v2/App/Controllers/Admin/Settings.php:440
|
2657 |
msgid "Rule priority not changed !"
|
2658 |
msgstr ""
|
2659 |
|
2660 |
+
#: v2/App/Controllers/Admin/Settings.php:441
|
2661 |
msgid "No data for this period"
|
2662 |
msgstr ""
|
2663 |
|
2664 |
+
#: v2/App/Controllers/Admin/Settings.php:442
|
2665 |
msgid "Oops! Coupon already exists in Woocommerce"
|
2666 |
msgstr ""
|
2667 |
|
2668 |
+
#: v2/App/Controllers/Admin/Settings.php:443
|
2669 |
msgid "Copied!"
|
2670 |
msgstr ""
|
2671 |
|
2672 |
+
#: v2/App/Controllers/Admin/Settings.php:444
|
2673 |
+
#: v2/App/Views/Admin/Tabs/settings.php:508
|
2674 |
msgid "Copy ShortCode"
|
2675 |
msgstr ""
|
2676 |
|
2677 |
+
#: v2/App/Controllers/Admin/Settings.php:445
|
2678 |
msgid "If you make this recursive other row(s) will be removed!"
|
2679 |
msgstr ""
|
2680 |
|
2681 |
+
#: v2/App/Controllers/Admin/Settings.php:447
|
2682 |
msgid "Minimum Quantity"
|
2683 |
msgstr ""
|
2684 |
|
2685 |
+
#: v2/App/Controllers/Admin/Settings.php:448
|
2686 |
msgid "Discount value"
|
2687 |
msgstr ""
|
2688 |
|
2689 |
+
#: v2/App/Controllers/Admin/Settings.php:450
|
2690 |
msgid "Filter (Buy)"
|
2691 |
msgstr ""
|
2692 |
|
2693 |
+
#: v2/App/Controllers/Admin/Settings.php:451
|
2694 |
#: v2/App/Views/Admin/Rules/Manage.php:163
|
2695 |
msgid "Filter"
|
2696 |
msgstr ""
|
2697 |
|
2698 |
+
#: v2/App/Controllers/Admin/Settings.php:452
|
2699 |
msgid ""
|
2700 |
"<p>Choose <b>what gets discount</b> (products/categories/attributes/SKU and "
|
2701 |
"so on )</p>\n"
|
2702 |
"<p>Note : You can also exclude products/categories.</p>"
|
2703 |
msgstr ""
|
2704 |
|
2705 |
+
#: v2/App/Controllers/Admin/Settings.php:455
|
2706 |
msgid ""
|
2707 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3914904-bulk-"
|
2708 |
"discounts-tiered-pricing-discounts-discount-rules-2-0?utm_source=woo-"
|
2711 |
"\"_blank\">Read Docs</a>"
|
2712 |
msgstr ""
|
2713 |
|
2714 |
+
#: v2/App/Controllers/Admin/Settings.php:456
|
2715 |
msgid ""
|
2716 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3809899-bundle-set-"
|
2717 |
"discount-discount-rules-2-0?utm_source=woo-discount-rules-"
|
2719 |
"\"font-size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2720 |
msgstr ""
|
2721 |
|
2722 |
+
#: v2/App/Controllers/Admin/Settings.php:457
|
2723 |
msgid ""
|
2724 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810570-buy-x-get-"
|
2725 |
"y-discount-rules-2-0?utm_source=woo-discount-rules-"
|
2727 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2728 |
msgstr ""
|
2729 |
|
2730 |
+
#: v2/App/Controllers/Admin/Settings.php:458
|
2731 |
msgid ""
|
2732 |
"Discount - <a href=\"https://docs.flycart.org/en/articles/3810071-buy-one-"
|
2733 |
"get-one-free-buy-x-get-x-discount-rules-2-0?utm_source=woo-discount-rules-"
|
2735 |
"size: 12px;\" target=\"_blank\">Read Docs</a>"
|
2736 |
msgstr ""
|
2737 |
|
2738 |
+
#: v2/App/Controllers/Admin/Settings.php:459
|
2739 |
msgid ""
|
2740 |
"<p>Select discount type and its value (percentage/price/fixed price)</p>"
|
2741 |
msgstr ""
|
2742 |
|
2743 |
+
#: v2/App/Controllers/Admin/Settings.php:460
|
2744 |
msgid ""
|
2745 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2746 |
"<div class=\"awdr-count-by-description\"><b>Filter set above :</b><p> This "
|
2755 |
"p></div>"
|
2756 |
msgstr ""
|
2757 |
|
2758 |
+
#: v2/App/Controllers/Admin/Settings.php:466
|
2759 |
msgid ""
|
2760 |
"<p>Select discount type and its value (percentage/price/fixed price)</p> "
|
2761 |
"<div class=\"awdr-count-by-description\"><b>Individual Product :</b><p>This "
|
2769 |
"because WooCommerce considers a variant as a product itself. </p></div>"
|
2770 |
msgstr ""
|
2771 |
|
2772 |
+
#: v2/App/Controllers/Admin/Settings.php:472
|
2773 |
msgid ""
|
2774 |
"<p>Select discount type and its value (percentage/price/fixed price)</p><div "
|
2775 |
"class=\"awdr-count-by-description\"><b>All variants in each product "
|
2782 |
"</p></div>"
|
2783 |
msgstr ""
|
2784 |
|
2785 |
+
#: v2/App/Controllers/Admin/Settings.php:478
|
2786 |
msgid "Rules (optional)"
|
2787 |
msgstr ""
|
2788 |
|
2789 |
+
#: v2/App/Controllers/Admin/Settings.php:480
|
2790 |
msgid ""
|
2791 |
"<p>Choose Buy Products. (products/categories/attributes/tags/sku) Example : "
|
2792 |
"For Buy X get Y scenarios, choose X here.</p>"
|
2793 |
msgstr ""
|
2794 |
|
2795 |
+
#: v2/App/Controllers/Admin/Settings.php:481
|
2796 |
msgid ""
|
2797 |
"<p>Choose on which products the discount should be applied (This can be "
|
2798 |
"products/categories/SKU)</p>"
|
2799 |
msgstr ""
|
2800 |
|
2801 |
+
#: v2/App/Controllers/Admin/Settings.php:482
|
2802 |
+
#: v2/App/Controllers/Admin/Settings.php:484
|
2803 |
msgid "Get Discount"
|
2804 |
msgstr ""
|
2805 |
|
2806 |
+
#: v2/App/Controllers/Admin/Settings.php:483
|
2807 |
msgid ""
|
2808 |
"<p>Enter the min/max ranges and choose free item quantity.</p><p>Note : "
|
2809 |
"Enable recursive checkbox if the discounts should be applied in sequential "
|
2811 |
"p>"
|
2812 |
msgstr ""
|
2813 |
|
2814 |
+
#: v2/App/Controllers/Admin/Settings.php:485
|
2815 |
msgid ""
|
2816 |
"<p>Choose the adjustment type to which the discount should be applied. You "
|
2817 |
"can choose from products/categories/all products.</p><p>Note : Enable "
|
2819 |
"</p>"
|
2820 |
msgstr ""
|
2821 |
|
2822 |
+
#: v2/App/Controllers/Admin/Settings.php:486
|
2823 |
msgid ""
|
2824 |
"<p>Discount will be applied <b>only the selected products (based on mode of "
|
2825 |
"apply)</b></p><p>Note : Enable recursive checkbox if the discounts should be "
|
2826 |
"applied in sequential ranges. </p>"
|
2827 |
msgstr ""
|
2828 |
|
2829 |
+
#: v2/App/Controllers/Admin/Settings.php:487
|
2830 |
msgid ""
|
2831 |
"<p>Discount will be applied <b>only the selected categories (based on mode "
|
2832 |
"of apply)</b></p><p>Note : Enable recursive checkbox if the discounts should "
|
2837 |
"table>"
|
2838 |
msgstr ""
|
2839 |
|
2840 |
+
#: v2/App/Controllers/Admin/Settings.php:488
|
2841 |
msgid ""
|
2842 |
"<p>Discount applies on the cheapest/highest priced <b>product IN CART</b>.</"
|
2843 |
"p><p>Note : Enable recursive checkbox if the discounts should be applied in "
|
2847 |
"tr></tr><tr><td>4</td><td>5</td><td>2</td></tr></tbody></table>"
|
2848 |
msgstr ""
|
2849 |
|
2850 |
+
#: v2/App/Controllers/Admin/Settings.php:491
|
2851 |
msgid "<p>Processing migration, please wait...</p>"
|
2852 |
msgstr ""
|
2853 |
|
2854 |
+
#: v2/App/Controllers/Admin/Settings.php:492
|
2855 |
msgid "<p>Migration completed.</p>"
|
2856 |
msgstr ""
|
2857 |
|
2858 |
+
#: v2/App/Controllers/Admin/Settings.php:493
|
2859 |
msgid "<p>Migration skipped.</p>"
|
2860 |
msgstr ""
|
2861 |
|
2862 |
+
#: v2/App/Controllers/Admin/Settings.php:494
|
2863 |
msgid "<p>Skipping migration, please wait...</p>"
|
2864 |
msgstr ""
|
2865 |
|
2866 |
+
#: v2/App/Controllers/Admin/Settings.php:495
|
2867 |
msgid ""
|
2868 |
"<span><b>Example:</b> Product A - Small and Product A - Medium will be "
|
2869 |
"counted as 2 quantity</span>"
|
2870 |
msgstr ""
|
2871 |
|
2872 |
+
#: v2/App/Controllers/Admin/Settings.php:496
|
2873 |
msgid "<span>Discount applies to all eligible products in the store</span>"
|
2874 |
msgstr ""
|
2875 |
|
2876 |
+
#: v2/App/Controllers/Admin/Settings.php:497
|
2877 |
msgid ""
|
2878 |
"<span>Choose products that get the discount using \"In List\". If you want "
|
2879 |
"to exclude a few products, choose \"Not In List\" and select the products "
|
2880 |
"you wanted to exclude from discount. (You can add multiple filters)</span>"
|
2881 |
msgstr ""
|
2882 |
|
2883 |
+
#: v2/App/Controllers/Admin/Settings.php:498
|
2884 |
msgid ""
|
2885 |
"<span>Choose categories that get the discount using \"In List\". If you want "
|
2886 |
"to exclude a few categories, choose \"Not In List\" and select the "
|
2888 |
"filters of same type)</span>"
|
2889 |
msgstr ""
|
2890 |
|
2891 |
+
#: v2/App/Controllers/Admin/Settings.php:499
|
2892 |
msgid ""
|
2893 |
"<span> Choose attributes that get the discount using \"In List\". If you "
|
2894 |
"want to exclude a few attributes, choose \"Not In List\" and select the "
|
2896 |
"filters of same type)</span>"
|
2897 |
msgstr ""
|
2898 |
|
2899 |
+
#: v2/App/Controllers/Admin/Settings.php:500
|
2900 |
msgid ""
|
2901 |
"<span>Choose tags that get the discount using \"In List\". If you want to "
|
2902 |
"exclude a few tags, choose \"Not In List\" and select the tags you wanted to "
|
2903 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2904 |
msgstr ""
|
2905 |
|
2906 |
+
#: v2/App/Controllers/Admin/Settings.php:501
|
2907 |
msgid ""
|
2908 |
"<span>Choose SKUs that get the discount using \"In List\". If you want to "
|
2909 |
"exclude a few SKUs, choose \"Not In List\" and select the SKUs you wanted to "
|
2910 |
"exclude from discount. (You can add multiple filters of same type)</span>"
|
2911 |
msgstr ""
|
2912 |
|
2913 |
+
#: v2/App/Controllers/Admin/Settings.php:502
|
2914 |
msgid ""
|
2915 |
"<span>Choose whether you want to include (or exclude) products on sale "
|
2916 |
"(those having a sale price) for the discount </span>"
|
2917 |
msgstr ""
|
2918 |
|
2919 |
+
#: v2/App/Controllers/Admin/Settings.php:503
|
2920 |
msgid "<span>Discount applies to custom taxonomy</span>"
|
2921 |
msgstr ""
|
2922 |
|
2923 |
+
#: v2/App/Controllers/Admin/Settings.php:504
|
2924 |
msgid "Processing please wait.."
|
2925 |
msgstr ""
|
2926 |
|
2927 |
+
#: v2/App/Controllers/Admin/Settings.php:505
|
2928 |
msgid "Rebuild index processed"
|
2929 |
msgstr ""
|
2930 |
|
2931 |
+
#: v2/App/Controllers/Admin/Settings.php:506
|
2932 |
msgid "Please select the rules to build index"
|
2933 |
msgstr ""
|
2934 |
|
2935 |
+
#: v2/App/Controllers/Admin/Settings.php:507
|
2936 |
msgid "Invalid File. Upload : <b style='color:red;'>.csv</b> File. </br>"
|
2937 |
msgstr ""
|
2938 |
|
2939 |
+
#: v2/App/Controllers/Admin/Settings.php:508
|
2940 |
msgid ""
|
2941 |
"<b>This rule is not running currently:</b> Rule reached maximum usage limit"
|
2942 |
msgstr ""
|
2943 |
|
2944 |
+
#: v2/App/Controllers/Admin/Settings.php:509
|
2945 |
msgid ""
|
2946 |
"<b>This rule is not running currently:</b> Start date and time is set in the "
|
2947 |
"future date"
|
2948 |
msgstr ""
|
2949 |
|
2950 |
+
#: v2/App/Controllers/Admin/Settings.php:510
|
2951 |
msgid "<b>This rule is not running currently:</b> Validity expired"
|
2952 |
msgstr ""
|
2953 |
|
2954 |
+
#: v2/App/Controllers/Admin/Settings.php:511
|
2955 |
msgid "Select State"
|
2956 |
msgstr ""
|
2957 |
|
2972 |
msgid "Import/Export"
|
2973 |
msgstr ""
|
2974 |
|
2975 |
+
#: v2/App/Controllers/Admin/Tabs/Recipe.php:24
|
2976 |
+
msgid "Recipe"
|
2977 |
+
msgstr ""
|
2978 |
+
|
2979 |
#: v2/App/Controllers/Admin/Tabs/Reports/RuleAmount.php:14
|
2980 |
#: v2/App/Controllers/Admin/Tabs/Reports/RuleAmountWithCartDiscount.php:11
|
2981 |
#: v2/App/Controllers/Admin/Tabs/Reports/RuleNameDiscount.php:24
|
3004 |
msgid "All Rules (except cart adjustment type)"
|
3005 |
msgstr ""
|
3006 |
|
3007 |
+
#: v2/App/Controllers/Admin/WDRAjax.php:691
|
3008 |
+
msgid "Search State"
|
3009 |
+
msgstr ""
|
3010 |
+
|
3011 |
#: v2/App/Controllers/Base.php:42
|
3012 |
msgid "All Products"
|
3013 |
msgstr ""
|
3024 |
msgstr ""
|
3025 |
|
3026 |
#: v2/App/Controllers/Base.php:195 v2/App/Controllers/Base.php:201
|
3027 |
+
#: v2/App/Helpers/ProOptions.php:332 v2/App/Views/Admin/Tabs/Recipe.php:16
|
3028 |
msgid "Simple Discount"
|
3029 |
msgstr ""
|
3030 |
|
3042 |
msgid "<span class=\"onsale\">Sale!</span>"
|
3043 |
msgstr ""
|
3044 |
|
3045 |
+
#: v2/App/Controllers/ManageDiscount.php:700
|
3046 |
+
#: v2/App/Controllers/ManageDiscount.php:909
|
3047 |
+
#: v2/App/Controllers/ManageDiscount.php:912 v2/App/Helpers/Helper.php:271
|
3048 |
+
#: v2/App/Helpers/Helper.php:272
|
3049 |
msgid "Cart discount"
|
3050 |
msgstr ""
|
3051 |
|
3052 |
+
#: v2/App/Controllers/ManageDiscount.php:1175
|
3053 |
msgid "Coupon code applied successfully."
|
3054 |
msgstr ""
|
3055 |
|
3056 |
+
#: v2/App/Controllers/ManageDiscount.php:1595
|
3057 |
+
#: v2/App/Views/Admin/Tabs/settings.php:406
|
3058 |
msgid "Discount <strong>{{title}}</strong> has been applied to your cart."
|
3059 |
msgstr ""
|
3060 |
|
3061 |
+
#: v2/App/Controllers/ManageDiscount.php:1721
|
3062 |
msgid "You saved {{total_discount}}"
|
3063 |
msgstr ""
|
3064 |
|
3065 |
+
#: v2/App/Helpers/Helper.php:157
|
3066 |
msgid "Include additional conditions (if necessary)"
|
3067 |
msgstr ""
|
3068 |
|
3069 |
+
#: v2/App/Helpers/Helper.php:158
|
3070 |
msgid "Popular conditions:"
|
3071 |
msgstr ""
|
3072 |
|
3073 |
+
#: v2/App/Helpers/Helper.php:163
|
3074 |
msgid "User role"
|
3075 |
msgstr ""
|
3076 |
|
3077 |
+
#: v2/App/Helpers/Helper.php:164
|
3078 |
msgid "Days & Time"
|
3079 |
msgstr ""
|
3080 |
|
3081 |
+
#: v2/App/Helpers/Helper.php:166
|
3082 |
msgid "Payment Method"
|
3083 |
msgstr ""
|
3084 |
|
3085 |
+
#: v2/App/Helpers/Helper.php:172
|
3086 |
msgid "Shipping Address"
|
3087 |
msgstr ""
|
3088 |
|
3089 |
+
#: v2/App/Helpers/Helper.php:174
|
3090 |
msgid "Product Combination"
|
3091 |
msgstr ""
|
3092 |
|
3093 |
+
#: v2/App/Helpers/Helper.php:175
|
3094 |
msgid "Quantities/Line items"
|
3095 |
msgstr ""
|
3096 |
|
3097 |
+
#: v2/App/Helpers/Helper.php:189
|
3098 |
msgid ""
|
3099 |
"Individual Product : \n"
|
3100 |
" This counts the total quantity of each product / line item "
|
3109 |
"variant because WooCommerce considers a variant as a product itself."
|
3110 |
msgstr ""
|
3111 |
|
3112 |
+
#: v2/App/Helpers/Helper.php:204
|
3113 |
msgid ""
|
3114 |
"Filter set above :\n"
|
3115 |
" This will count the quantities of products set in the 'Filter' "
|
3123 |
"1 quantity each of X, Y and Z from Category A, then the count here is 3."
|
3124 |
msgstr ""
|
3125 |
|
3126 |
+
#: v2/App/Helpers/Helper.php:216
|
3127 |
msgid ""
|
3128 |
"All variants in each product together :\n"
|
3129 |
" Useful when applying discounts based on variable products and "
|
3134 |
"Medium, 6 of Product A - Large, then the count will be: 6+4+2 = 12\n"
|
3135 |
msgstr ""
|
3136 |
|
3137 |
+
#: v2/App/Helpers/Helper.php:339
|
3138 |
msgid "Update now"
|
3139 |
msgstr ""
|
3140 |
|
3141 |
+
#: v2/App/Helpers/Helper.php:344
|
3142 |
#, php-format
|
3143 |
msgid ""
|
3144 |
"You are using a lower version of our <b>Woo Discount Rules PRO 2.0</b> "
|
3145 |
"plugin. Please update the plugin to latest version to run smoothly. %s"
|
3146 |
msgstr ""
|
3147 |
|
3148 |
+
#: v2/App/Helpers/Migration.php:216
|
3149 |
#, php-format
|
3150 |
msgid "%s Completed. Please wait.."
|
3151 |
msgstr ""
|
3311 |
msgid "Bundle (Set) Discount - PRO -"
|
3312 |
msgstr ""
|
3313 |
|
3314 |
+
#: v2/App/Helpers/Rule.php:1233 v2/App/Helpers/Rule.php:1244
|
3315 |
msgid "discount"
|
3316 |
msgstr ""
|
3317 |
|
3318 |
+
#: v2/App/Helpers/Rule.php:1304 v2/App/Helpers/Rule.php:1404
|
3319 |
#: v2/App/Views/Admin/Tabs/ImportExport.php:99
|
3320 |
msgid "Untitled Rule"
|
3321 |
msgstr ""
|
3322 |
|
3323 |
#: v2/App/Helpers/Validation.php:146 v2/App/Helpers/Validation.php:151
|
3324 |
+
#: v2/App/Helpers/Validation.php:347 v2/App/Helpers/Validation.php:514
|
3325 |
msgid "Invalid characters"
|
3326 |
msgstr ""
|
3327 |
|
3342 |
msgid "Accepts only hex color code"
|
3343 |
msgstr ""
|
3344 |
|
3345 |
+
#: v2/App/Helpers/Validation.php:348
|
3346 |
msgid "Accept only yes, on, 1, true"
|
3347 |
msgstr ""
|
3348 |
|
3349 |
+
#: v2/App/Helpers/Validation.php:349
|
3350 |
msgid "Should not contain any tags"
|
3351 |
msgstr ""
|
3352 |
|
3353 |
+
#: v2/App/Helpers/Validation.php:350
|
3354 |
msgid "Should not contain any tags and special characters"
|
3355 |
msgstr ""
|
3356 |
|
3357 |
+
#: v2/App/Helpers/Validation.php:351 v2/App/Helpers/Validation.php:352
|
3358 |
+
msgid "Invalid inputs"
|
3359 |
+
msgstr ""
|
3360 |
+
|
3361 |
+
#: v2/App/Helpers/Validation.php:488
|
3362 |
msgid "Validation error"
|
3363 |
msgstr ""
|
3364 |
|
3365 |
+
#: v2/App/Helpers/Woocommerce.php:940
|
3366 |
msgid "Sunday"
|
3367 |
msgstr ""
|
3368 |
|
3369 |
+
#: v2/App/Helpers/Woocommerce.php:941
|
3370 |
msgid "Monday"
|
3371 |
msgstr ""
|
3372 |
|
3373 |
+
#: v2/App/Helpers/Woocommerce.php:942
|
3374 |
msgid "Tuesday"
|
3375 |
msgstr ""
|
3376 |
|
3377 |
+
#: v2/App/Helpers/Woocommerce.php:943
|
3378 |
msgid "Wednesday"
|
3379 |
msgstr ""
|
3380 |
|
3381 |
+
#: v2/App/Helpers/Woocommerce.php:944
|
3382 |
msgid "Thursday"
|
3383 |
msgstr ""
|
3384 |
|
3385 |
+
#: v2/App/Helpers/Woocommerce.php:945
|
3386 |
msgid "Friday"
|
3387 |
msgstr ""
|
3388 |
|
3389 |
+
#: v2/App/Helpers/Woocommerce.php:946
|
3390 |
msgid "Saturday"
|
3391 |
msgstr ""
|
3392 |
|
3393 |
+
#: v2/App/Helpers/Woocommerce.php:957
|
3394 |
msgid ""
|
3395 |
"Woocommerce before main content(Archive / Shop / Cat Pages / single product)"
|
3396 |
msgstr ""
|
3397 |
|
3398 |
+
#: v2/App/Helpers/Woocommerce.php:958
|
3399 |
msgid "Woocommerce archive description(Archive / Shop / Cat Pages)"
|
3400 |
msgstr ""
|
3401 |
|
3402 |
+
#: v2/App/Helpers/Woocommerce.php:959
|
3403 |
msgid "Woocommerce before shop loop(Archive / Shop / Cat Pages)"
|
3404 |
msgstr ""
|
3405 |
|
3406 |
+
#: v2/App/Helpers/Woocommerce.php:960
|
3407 |
msgid "Woocommerce after shop loop(Archive / Shop / Cat Pages)"
|
3408 |
msgstr ""
|
3409 |
|
3410 |
+
#: v2/App/Helpers/Woocommerce.php:961
|
3411 |
msgid ""
|
3412 |
"Woocommerce after main content(Archive / Shop / Cat Pages / single product)"
|
3413 |
msgstr ""
|
3414 |
|
3415 |
+
#: v2/App/Helpers/Woocommerce.php:962 v2/App/Views/Admin/Tabs/settings.php:195
|
3416 |
#: v2/App/Views/Admin/Tabs/settings.php:213
|
3417 |
msgid "Woocommerce before single product"
|
3418 |
msgstr ""
|
3419 |
|
3420 |
+
#: v2/App/Helpers/Woocommerce.php:963 v2/App/Views/Admin/Tabs/settings.php:197
|
3421 |
#: v2/App/Views/Admin/Tabs/settings.php:215
|
3422 |
msgid "Woocommerce before single product summary"
|
3423 |
msgstr ""
|
3424 |
|
3425 |
+
#: v2/App/Helpers/Woocommerce.php:964 v2/App/Views/Admin/Tabs/settings.php:196
|
3426 |
#: v2/App/Views/Admin/Tabs/settings.php:214
|
3427 |
msgid "Woocommerce after single product summary"
|
3428 |
msgstr ""
|
3429 |
|
3430 |
+
#: v2/App/Helpers/Woocommerce.php:965 v2/App/Views/Admin/Tabs/settings.php:194
|
3431 |
#: v2/App/Views/Admin/Tabs/settings.php:212
|
3432 |
msgid "Woocommerce after single product"
|
3433 |
msgstr ""
|
3434 |
|
3435 |
+
#: v2/App/Helpers/Woocommerce.php:966
|
3436 |
msgid "Woocommerce before cart"
|
3437 |
msgstr ""
|
3438 |
|
3439 |
+
#: v2/App/Helpers/Woocommerce.php:967
|
3440 |
msgid "Woocommerce before cart table"
|
3441 |
msgstr ""
|
3442 |
|
3443 |
+
#: v2/App/Helpers/Woocommerce.php:968
|
3444 |
msgid "Woocommerce before cart contents"
|
3445 |
msgstr ""
|
3446 |
|
3447 |
+
#: v2/App/Helpers/Woocommerce.php:969
|
3448 |
msgid "Woocommerce cart contents"
|
3449 |
msgstr ""
|
3450 |
|
3451 |
+
#: v2/App/Helpers/Woocommerce.php:970
|
3452 |
msgid "Woocommerce after cart contents"
|
3453 |
msgstr ""
|
3454 |
|
3455 |
+
#: v2/App/Helpers/Woocommerce.php:971
|
3456 |
msgid "Woocommerce after cart table"
|
3457 |
msgstr ""
|
3458 |
|
3459 |
+
#: v2/App/Helpers/Woocommerce.php:972
|
3460 |
msgid "Woocommerce after cart"
|
3461 |
msgstr ""
|
3462 |
|
3463 |
+
#: v2/App/Helpers/Woocommerce.php:973
|
3464 |
msgid "Woocommerce before checkout form"
|
3465 |
msgstr ""
|
3466 |
|
3467 |
+
#: v2/App/Helpers/Woocommerce.php:975
|
3468 |
msgid "Woocommerce before checkout billing form"
|
3469 |
msgstr ""
|
3470 |
|
3471 |
+
#: v2/App/Helpers/Woocommerce.php:976
|
3472 |
msgid "Woocommerce after checkout billing form"
|
3473 |
msgstr ""
|
3474 |
|
3475 |
+
#: v2/App/Helpers/Woocommerce.php:977
|
3476 |
msgid "Woocommerce before checkout shipping form"
|
3477 |
msgstr ""
|
3478 |
|
3479 |
+
#: v2/App/Helpers/Woocommerce.php:978
|
3480 |
msgid "Woocommerce after checkout shipping form"
|
3481 |
msgstr ""
|
3482 |
|
3483 |
+
#: v2/App/Helpers/Woocommerce.php:979
|
3484 |
msgid "Woocommerce before order notes"
|
3485 |
msgstr ""
|
3486 |
|
3487 |
+
#: v2/App/Helpers/Woocommerce.php:980
|
3488 |
msgid "Woocommerce after order notes"
|
3489 |
msgstr ""
|
3490 |
|
3543 |
msgstr ""
|
3544 |
|
3545 |
#: v2/App/Views/Admin/Rules/Conditions/Cart/Subtotal.php:23
|
3546 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:23
|
3547 |
msgid "0.00"
|
3548 |
msgstr ""
|
3549 |
|
3555 |
msgid "How to calculate the subtotal"
|
3556 |
msgstr ""
|
3557 |
|
3558 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:11
|
3559 |
msgid "Rules (Optional)"
|
3560 |
msgstr ""
|
3561 |
|
3562 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:25
|
3563 |
msgid "Conditions Relationship "
|
3564 |
msgstr ""
|
3565 |
|
3566 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:28
|
3567 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:126
|
3568 |
msgid "Match All"
|
3569 |
msgstr ""
|
3570 |
|
3571 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:30
|
3572 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:128
|
3573 |
msgid "Match Any"
|
3574 |
msgstr ""
|
3575 |
|
3576 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:79
|
3577 |
#: v2/App/Views/Admin/Rules/Others/CommonTemplates.php:87
|
3578 |
msgid "Condition Type"
|
3579 |
msgstr ""
|
3580 |
|
3581 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:116
|
3582 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:136
|
3583 |
msgid "Add condition"
|
3584 |
msgstr ""
|
3585 |
|
3586 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:124
|
3587 |
msgid "Conditions Relationship"
|
3588 |
msgstr ""
|
3589 |
|
3590 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:148
|
3591 |
msgid "Rule Limits"
|
3592 |
msgstr ""
|
3593 |
|
3594 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:153
|
3595 |
msgid "Rule Used: "
|
3596 |
msgstr ""
|
3597 |
|
3598 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:163
|
3599 |
msgid "Unlimited"
|
3600 |
msgstr ""
|
3601 |
|
3602 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:170
|
3603 |
msgid "Maximum usage limit"
|
3604 |
msgstr ""
|
3605 |
|
3606 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:178
|
3607 |
msgid "Rule Vaild From"
|
3608 |
msgstr ""
|
3609 |
|
3610 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:183
|
3611 |
msgid "Vaild from"
|
3612 |
msgstr ""
|
3613 |
|
3614 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:190
|
3615 |
msgid "Rule Valid To"
|
3616 |
msgstr ""
|
3617 |
|
3618 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:194
|
3619 |
msgid "Vaild to"
|
3620 |
msgstr ""
|
3621 |
|
3622 |
+
#: v2/App/Views/Admin/Rules/Conditions/Main.php:205
|
3623 |
msgid "Select values"
|
3624 |
msgstr ""
|
3625 |
|
3640 |
msgstr ""
|
3641 |
|
3642 |
#: v2/App/Views/Admin/Rules/DiscountBatch/Main.php:22
|
3643 |
+
#: v2/App/Views/Admin/Tabs/settings.php:530
|
3644 |
msgid "Note:"
|
3645 |
msgstr ""
|
3646 |
|
3761 |
msgstr ""
|
3762 |
|
3763 |
#: v2/App/Views/Admin/Rules/Discounts/Bulk.php:63
|
3764 |
+
#: v2/App/Views/Admin/Tabs/settings.php:596
|
3765 |
msgid "Discount Value"
|
3766 |
msgstr ""
|
3767 |
|
4028 |
msgid "Select discount type and its value (percentage/price/fixed price)"
|
4029 |
msgstr ""
|
4030 |
|
4031 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:16
|
4032 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:17
|
4033 |
msgid "Promotion Message"
|
4034 |
msgstr ""
|
4035 |
|
4036 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:18
|
4037 |
+
msgid "Quantity from"
|
4038 |
+
msgstr ""
|
4039 |
+
|
4040 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:22
|
4041 |
+
msgid "0"
|
4042 |
+
msgstr ""
|
4043 |
+
|
4044 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:24
|
4045 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:25
|
4046 |
msgid "Set a threshold from which you want to start showing promotion message"
|
4047 |
msgstr ""
|
4048 |
|
4049 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:25
|
4050 |
#, php-format
|
4051 |
msgid ""
|
4052 |
+
"<b>Example:</b> Let's say you offer a 10% discount for 5 quantities and "
|
4053 |
+
"above. you may want to set 3 here. So that the customer can see the promo "
|
4054 |
+
"text when his cart quantities reaches 3"
|
4055 |
msgstr ""
|
4056 |
|
4057 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:32
|
4058 |
+
#, php-format
|
4059 |
+
msgid "Buy {{difference_quantity}} more products and get 10% discount"
|
4060 |
+
msgstr ""
|
4061 |
+
|
4062 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:33
|
4063 |
+
msgid "{{difference_quantity}} -> Difference amount to get discount"
|
4064 |
+
msgstr ""
|
4065 |
+
|
4066 |
+
#: v2/App/Views/Admin/Rules/Others/QuantityPromotion.php:34
|
4067 |
#, php-format
|
4068 |
+
msgid ""
|
4069 |
+
"<b>Eg:</b> Buy {{difference_quantity}} more products and get 10% discount"
|
4070 |
msgstr ""
|
4071 |
|
4072 |
+
#: v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php:26
|
4073 |
#, php-format
|
4074 |
+
msgid ""
|
4075 |
+
"<b>Example:</b> Let's say you offer a 10% discount for 1000 and above. you "
|
4076 |
+
"may want to set 900 here. So that the customer can see the promo text when "
|
4077 |
+
"his cart subtotal reaches 900"
|
4078 |
msgstr ""
|
4079 |
|
4080 |
#: v2/App/Views/Admin/Tabs/DiscountRule.php:16
|
4235 |
"woocommerce-discount-rules\" target=\"_blank\">Upgrading to Pro</a>"
|
4236 |
msgstr ""
|
4237 |
|
4238 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:17
|
4239 |
+
msgid "Product adjustment "
|
4240 |
+
msgstr ""
|
4241 |
+
|
4242 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:22
|
4243 |
+
msgid "Bundle(set) Discount"
|
4244 |
+
msgstr ""
|
4245 |
+
|
4246 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:23
|
4247 |
+
msgid "Bundle(set) Adjustment"
|
4248 |
+
msgstr ""
|
4249 |
+
|
4250 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:28
|
4251 |
+
msgid "BOGO Discount"
|
4252 |
+
msgstr ""
|
4253 |
+
|
4254 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:29
|
4255 |
+
msgid "BOGO Adjustment"
|
4256 |
+
msgstr ""
|
4257 |
+
|
4258 |
+
#: v2/App/Views/Admin/Tabs/Recipe.php:49
|
4259 |
+
#: v2/App/Views/Admin/Tabs/settings.php:497
|
4260 |
+
msgid ""
|
4261 |
+
"Unlock this feature by <a href='https://www.flycart.org/products/wordpress/"
|
4262 |
+
"woocommerce-discount-rules?utm_source=woo-discount-rules-"
|
4263 |
+
"v2&utm_campaign=doc&utm_medium=text-click&utm_content=unlock_pro' "
|
4264 |
+
"target='_blank'>Upgrading to Pro</a>"
|
4265 |
+
msgstr ""
|
4266 |
+
|
4267 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php:8
|
4268 |
+
msgid "Buy X get X - Buy 1 get 1 free - sample"
|
4269 |
+
msgstr ""
|
4270 |
+
|
4271 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php:9
|
4272 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php:15
|
4273 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BundleDiscountRecipe.php:9
|
4274 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php:10
|
4275 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php:16
|
4276 |
+
msgid "Create"
|
4277 |
+
msgstr ""
|
4278 |
+
|
4279 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php:10
|
4280 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php:16
|
4281 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BundleDiscountRecipe.php:10
|
4282 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php:11
|
4283 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php:17
|
4284 |
+
msgid "View & edit Rule"
|
4285 |
+
msgstr ""
|
4286 |
+
|
4287 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php:14
|
4288 |
+
msgid "Buy X get Y - Buy 2 get 1 free - sample"
|
4289 |
+
msgstr ""
|
4290 |
+
|
4291 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/BundleDiscountRecipe.php:8
|
4292 |
+
msgid "Set Discount - sample"
|
4293 |
+
msgstr ""
|
4294 |
+
|
4295 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php:9
|
4296 |
+
msgid "Coupon based user role discount - sample"
|
4297 |
+
msgstr ""
|
4298 |
+
|
4299 |
+
#: v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php:15
|
4300 |
+
msgid "Subtotal tiered discount - sample"
|
4301 |
+
msgstr ""
|
4302 |
+
|
4303 |
#: v2/App/Views/Admin/Tabs/Statistics.php:39
|
4304 |
msgid "This Week"
|
4305 |
msgstr ""
|
4442 |
msgstr ""
|
4443 |
|
4444 |
#: v2/App/Views/Admin/Tabs/settings.php:178
|
4445 |
+
#: v2/App/Views/Admin/Tabs/settings.php:525
|
4446 |
msgid "Customize Discount Table"
|
4447 |
msgstr ""
|
4448 |
|
4544 |
msgstr ""
|
4545 |
|
4546 |
#: v2/App/Views/Admin/Tabs/settings.php:328
|
4547 |
+
msgid "Condition based promotion"
|
4548 |
msgstr ""
|
4549 |
|
4550 |
#: v2/App/Views/Admin/Tabs/settings.php:329
|
4551 |
msgid ""
|
4552 |
+
"Display Condition based promotion messages in cart/product/shop pages<br>If "
|
4553 |
"enabled an option to add promotion message will displays on each rule(when "
|
4554 |
+
"promotion condition is added)"
|
4555 |
msgstr ""
|
4556 |
|
4557 |
+
#: v2/App/Views/Admin/Tabs/settings.php:334
|
4558 |
+
msgid "Subtotal Promotion?"
|
4559 |
msgstr ""
|
4560 |
|
4561 |
+
#: v2/App/Views/Admin/Tabs/settings.php:337
|
4562 |
+
msgid "Cart Quantity Promotion?"
|
4563 |
+
msgstr ""
|
4564 |
+
|
4565 |
+
#: v2/App/Views/Admin/Tabs/settings.php:343
|
4566 |
+
msgid "Condition based promo text"
|
4567 |
+
msgstr ""
|
4568 |
+
|
4569 |
+
#: v2/App/Views/Admin/Tabs/settings.php:344
|
4570 |
msgid ""
|
4571 |
+
"Condition based promo text (available only for subtotal based discounts) "
|
4572 |
msgstr ""
|
4573 |
|
4574 |
+
#: v2/App/Views/Admin/Tabs/settings.php:348
|
4575 |
msgid "Select the page to display promotion message"
|
4576 |
msgstr ""
|
4577 |
|
4578 |
+
#: v2/App/Views/Admin/Tabs/settings.php:358
|
4579 |
msgid "Display you saved text"
|
4580 |
msgstr ""
|
4581 |
|
4582 |
+
#: v2/App/Views/Admin/Tabs/settings.php:359
|
4583 |
msgid "Display you saved text when rule applied"
|
4584 |
msgstr ""
|
4585 |
|
4586 |
+
#: v2/App/Views/Admin/Tabs/settings.php:374
|
4587 |
msgid "You save text to show when rule applied"
|
4588 |
msgstr ""
|
4589 |
|
4590 |
+
#: v2/App/Views/Admin/Tabs/settings.php:383
|
4591 |
msgid "Show a discount applied message on cart?"
|
4592 |
msgstr ""
|
4593 |
|
4594 |
+
#: v2/App/Views/Admin/Tabs/settings.php:384
|
4595 |
msgid "Show message in cart page on rule applied"
|
4596 |
msgstr ""
|
4597 |
|
4598 |
+
#: v2/App/Views/Admin/Tabs/settings.php:400
|
4599 |
msgid "Applied rule message text on cart"
|
4600 |
msgstr ""
|
4601 |
|
4602 |
+
#: v2/App/Views/Admin/Tabs/settings.php:401
|
4603 |
msgid "Text to show when rule applied"
|
4604 |
msgstr ""
|
4605 |
|
4606 |
+
#: v2/App/Views/Admin/Tabs/settings.php:443
|
4607 |
msgid "On-Sale page"
|
4608 |
msgstr ""
|
4609 |
|
4610 |
+
#: v2/App/Views/Admin/Tabs/settings.php:449
|
4611 |
msgid "Select rules for the On Sale Page"
|
4612 |
msgstr ""
|
4613 |
|
4614 |
+
#: v2/App/Views/Admin/Tabs/settings.php:463
|
4615 |
msgid "Type the name of the rule to select it"
|
4616 |
msgstr ""
|
4617 |
|
4618 |
+
#: v2/App/Views/Admin/Tabs/settings.php:471
|
4619 |
msgid "All active rules"
|
4620 |
msgstr ""
|
4621 |
|
4622 |
+
#: v2/App/Views/Admin/Tabs/settings.php:495
|
4623 |
msgid "Save and Build Index"
|
4624 |
msgstr ""
|
4625 |
|
4626 |
+
#: v2/App/Views/Admin/Tabs/settings.php:505
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4627 |
msgid ""
|
4628 |
"ShortCode to load all products which has discount through Woo Discount Rules"
|
4629 |
msgstr ""
|
4630 |
|
4631 |
+
#: v2/App/Views/Admin/Tabs/settings.php:528
|
4632 |
msgid "Settings Saved"
|
4633 |
msgstr ""
|
4634 |
|
4635 |
+
#: v2/App/Views/Admin/Tabs/settings.php:529
|
4636 |
msgid "Oops! Something went wrong."
|
4637 |
msgstr ""
|
4638 |
|
4639 |
+
#: v2/App/Views/Admin/Tabs/settings.php:530
|
4640 |
msgid " This table contains sample content for design purpose."
|
4641 |
msgstr ""
|
4642 |
|
4643 |
+
#: v2/App/Views/Admin/Tabs/settings.php:540
|
4644 |
msgid "Table Header"
|
4645 |
msgstr ""
|
4646 |
|
4647 |
+
#: v2/App/Views/Admin/Tabs/settings.php:541
|
4648 |
msgid "Show/Hide table header column names"
|
4649 |
msgstr ""
|
4650 |
|
4651 |
+
#: v2/App/Views/Admin/Tabs/settings.php:554
|
4652 |
msgid "Title column Name on table"
|
4653 |
msgstr ""
|
4654 |
|
4655 |
+
#: v2/App/Views/Admin/Tabs/settings.php:555
|
4656 |
msgid "Give name for rule title column"
|
4657 |
msgstr ""
|
4658 |
|
4659 |
+
#: v2/App/Views/Admin/Tabs/settings.php:566
|
4660 |
msgid "Discount column Name on table"
|
4661 |
msgstr ""
|
4662 |
|
4663 |
+
#: v2/App/Views/Admin/Tabs/settings.php:567
|
4664 |
msgid "Give name for discount column"
|
4665 |
msgstr ""
|
4666 |
|
4667 |
+
#: v2/App/Views/Admin/Tabs/settings.php:578
|
4668 |
msgid "Range column Name on table"
|
4669 |
msgstr ""
|
4670 |
|
4671 |
+
#: v2/App/Views/Admin/Tabs/settings.php:579
|
4672 |
msgid "Give name for range column"
|
4673 |
msgstr ""
|
4674 |
|
4675 |
+
#: v2/App/Views/Admin/Tabs/settings.php:590
|
4676 |
msgid "Discount column value on table"
|
4677 |
msgstr ""
|
4678 |
|
4679 |
+
#: v2/App/Views/Admin/Tabs/settings.php:591
|
4680 |
msgid "Show Discount value/price in table"
|
4681 |
msgstr ""
|
4682 |
|
4683 |
+
#: v2/App/Views/Admin/Tabs/settings.php:599
|
4684 |
msgid "Discounted Price"
|
4685 |
msgstr ""
|
4686 |
|
4687 |
+
#: v2/App/Views/Admin/Tabs/settings.php:674
|
4688 |
+
#: v2/App/Views/Admin/Tabs/settings.php:697
|
4689 |
msgid "Bulk Rule"
|
4690 |
msgstr ""
|
4691 |
|
4692 |
+
#: v2/App/Views/Admin/Tabs/settings.php:682
|
4693 |
+
#: v2/App/Views/Admin/Tabs/settings.php:728
|
4694 |
+
#: v2/App/Views/Admin/Tabs/settings.php:795
|
4695 |
#: v2/App/Views/Templates/discount_table.php:118
|
4696 |
msgid " flat"
|
4697 |
msgstr ""
|
4698 |
|
4699 |
+
#: v2/App/Views/Admin/Tabs/settings.php:688
|
4700 |
msgid "1 - 5"
|
4701 |
msgstr ""
|
4702 |
|
4703 |
+
#: v2/App/Views/Admin/Tabs/settings.php:711
|
4704 |
msgid "11 - 15"
|
4705 |
msgstr ""
|
4706 |
|
4707 |
+
#: v2/App/Views/Admin/Tabs/settings.php:720
|
4708 |
msgid "Bulk Flat discount"
|
4709 |
msgstr ""
|
4710 |
|
4711 |
+
#: v2/App/Views/Admin/Tabs/settings.php:734
|
4712 |
msgid "50 - 60"
|
4713 |
msgstr ""
|
4714 |
|
4715 |
+
#: v2/App/Views/Admin/Tabs/settings.php:743
|
4716 |
msgid "Bulk percentage discount"
|
4717 |
msgstr ""
|
4718 |
|
4719 |
+
#: v2/App/Views/Admin/Tabs/settings.php:756
|
4720 |
msgid "70 - 80"
|
4721 |
msgstr ""
|
4722 |
|
4723 |
+
#: v2/App/Views/Admin/Tabs/settings.php:765
|
4724 |
#, php-format
|
4725 |
msgid "Bulk % discount"
|
4726 |
msgstr ""
|
4727 |
|
4728 |
+
#: v2/App/Views/Admin/Tabs/settings.php:778
|
4729 |
msgid "450 - 500"
|
4730 |
msgstr ""
|
4731 |
|
4732 |
+
#: v2/App/Views/Admin/Tabs/settings.php:787
|
4733 |
msgid "Bulk flat"
|
4734 |
msgstr ""
|
4735 |
|
4736 |
+
#: v2/App/Views/Admin/Tabs/settings.php:801
|
4737 |
msgid "600 - 700"
|
4738 |
msgstr ""
|
4739 |
|
4740 |
+
#: v2/App/Views/Admin/Tabs/settings.php:810
|
4741 |
msgid "set percentage discount"
|
4742 |
msgstr ""
|
4743 |
|
4744 |
+
#: v2/App/Views/Admin/Tabs/settings.php:823
|
4745 |
msgid "5"
|
4746 |
msgstr ""
|
4747 |
|
4748 |
+
#: v2/App/Views/Admin/Tabs/settings.php:832
|
4749 |
msgid "Fixed discount for set"
|
4750 |
msgstr ""
|
4751 |
|
4752 |
+
#: v2/App/Views/Admin/Tabs/settings.php:845
|
4753 |
msgid "10"
|
4754 |
msgstr ""
|
4755 |
|
4756 |
+
#: v2/App/Views/Admin/Tabs/settings.php:854
|
4757 |
msgid "set flat discount"
|
4758 |
msgstr ""
|
4759 |
|
4760 |
+
#: v2/App/Views/Admin/Tabs/settings.php:867
|
4761 |
msgid "15"
|
4762 |
msgstr ""
|
4763 |
|
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,24 @@ Note : Enable recursive checkbox if the discounts should be applied in sequentia
|
|
336 |
|
337 |
== Changelog ==
|
338 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
339 |
= 2.3.4 - 01/02/21 =
|
340 |
* Feature - Quantity based promotion message.
|
341 |
* Improvement - Accept additional tags in sale badge.
|
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
|
7 |
+
Stable tag: 2.3.5
|
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.5 - 23/03/21 =
|
340 |
+
* Feature - Cross sell feature for BXGY cheapest product option.
|
341 |
+
* Feature - Recipe: sample rules to add.
|
342 |
+
* Improvement - SKU with product title in product select box.
|
343 |
+
* Improvement - Subtotal based promotion UI improvement at backend.
|
344 |
+
* Improvement - Multi site query optimize.
|
345 |
+
* Improvement - Smart Coupons plugin compatible.
|
346 |
+
* Improvement - Sale badge translation improvement.
|
347 |
+
* Improvement - Event: advanced_woo_discount_rules_get_attribute_id_from_taxonomy_name
|
348 |
+
* Improvement - Event: advanced_woo_discount_rules_exclude_non_stock_product_on_sale_page
|
349 |
+
* Improvement - Event: advanced_woo_discount_rules_strikeout_price_html additional params.
|
350 |
+
* Improvement - Translation improvement.
|
351 |
+
* Fix - Variable product with tag condition not working.
|
352 |
+
* Fix - The discount bar is not displayed for variable product SKU filter.
|
353 |
+
* Fix - Show product on sale page even if only the variant has chosen.
|
354 |
+
* Fix - Report for BXGY cheapest product discount (fixed discount) is not shown.
|
355 |
+
* Fix - Category select box is not showing all language categories while having WPML.
|
356 |
+
|
357 |
= 2.3.4 - 01/02/21 =
|
358 |
* Feature - Quantity based promotion message.
|
359 |
* Improvement - Accept additional tags in sale badge.
|
v2/App/Conditions/Base.php
CHANGED
@@ -391,7 +391,13 @@ abstract class Base
|
|
391 |
$not_in_list_product = in_array($product_sku, $comparision_value);
|
392 |
break;
|
393 |
case 'product_tags':
|
394 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
$not_in_list_product = count(array_intersect($tag_ids, $comparision_value)) > 0;
|
396 |
break;
|
397 |
default:
|
391 |
$not_in_list_product = in_array($product_sku, $comparision_value);
|
392 |
break;
|
393 |
case 'product_tags':
|
394 |
+
$product_parentId = Woocommerce::getProductParentId($product);
|
395 |
+
if(!empty($product_parentId)){
|
396 |
+
$parent_product = Woocommerce::getProduct($product_parentId);
|
397 |
+
$tag_ids = Woocommerce::getProductTags($parent_product);
|
398 |
+
}else{
|
399 |
+
$tag_ids = Woocommerce::getProductTags($product);
|
400 |
+
}
|
401 |
$not_in_list_product = count(array_intersect($tag_ids, $comparision_value)) > 0;
|
402 |
break;
|
403 |
default:
|
v2/App/Controllers/Admin/Settings.php
CHANGED
@@ -7,6 +7,7 @@ use Wdr\App\Controllers\Admin\Tabs\DiscountRules;
|
|
7 |
use Wdr\App\Controllers\Admin\Tabs\Help;
|
8 |
use Wdr\App\Controllers\Admin\Tabs\GeneralSettings;
|
9 |
use Wdr\App\Controllers\Admin\Tabs\ImportExport;
|
|
|
10 |
use Wdr\App\Controllers\Admin\Tabs\Statistics;
|
11 |
use Wdr\App\Controllers\Base;
|
12 |
use Wdr\App\Controllers\OnSaleShortCode;
|
@@ -132,6 +133,7 @@ class Settings extends Base
|
|
132 |
'compatible' => new Compatible(),
|
133 |
'importexport' => new ImportExport(),
|
134 |
'help' => new Help(),
|
|
|
135 |
);
|
136 |
uasort($tabs, function ($tab1, $tab2) {
|
137 |
$priority1 = (int)isset($tab1->priority) ? $tab1->priority : 1000;
|
@@ -202,7 +204,9 @@ class Settings extends Base
|
|
202 |
wp_enqueue_script(WDR_SLUG . '-datetimepickerjs', WDR_PLUGIN_URL . 'Assets/Js/jquery.datetimepicker.full.min.js', array('jquery'), WDR_VERSION);
|
203 |
wp_enqueue_script(WDR_SLUG . '-moment', WDR_PLUGIN_URL . 'Assets/Js/moment.min.js', array('jquery'), WDR_VERSION);
|
204 |
wp_register_script(WDR_SLUG . '-admin', WDR_PLUGIN_URL . 'Assets/Js/admin_script.js', array(), WDR_VERSION);
|
|
|
205 |
wp_enqueue_script(WDR_SLUG . '-admin');
|
|
|
206 |
wp_enqueue_script(WDR_SLUG . '-dragndraop-js', WDR_PLUGIN_URL . 'Assets/Js/jquery.dragtable.js', array(), WDR_VERSION);
|
207 |
|
208 |
if ( isset( $_REQUEST['tab'] ) AND $_REQUEST['tab'] == 'statistics' ) {
|
7 |
use Wdr\App\Controllers\Admin\Tabs\Help;
|
8 |
use Wdr\App\Controllers\Admin\Tabs\GeneralSettings;
|
9 |
use Wdr\App\Controllers\Admin\Tabs\ImportExport;
|
10 |
+
use Wdr\App\Controllers\Admin\Tabs\Recipe;
|
11 |
use Wdr\App\Controllers\Admin\Tabs\Statistics;
|
12 |
use Wdr\App\Controllers\Base;
|
13 |
use Wdr\App\Controllers\OnSaleShortCode;
|
133 |
'compatible' => new Compatible(),
|
134 |
'importexport' => new ImportExport(),
|
135 |
'help' => new Help(),
|
136 |
+
'recipe' => new Recipe(),
|
137 |
);
|
138 |
uasort($tabs, function ($tab1, $tab2) {
|
139 |
$priority1 = (int)isset($tab1->priority) ? $tab1->priority : 1000;
|
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' ) {
|
v2/App/Controllers/Admin/Tabs/Help.php
CHANGED
@@ -5,7 +5,7 @@ if (!defined('ABSPATH')) exit;
|
|
5 |
|
6 |
class Help extends Base
|
7 |
{
|
8 |
-
public $priority =
|
9 |
protected $tab = 'help';
|
10 |
|
11 |
/**
|
5 |
|
6 |
class Help extends Base
|
7 |
{
|
8 |
+
public $priority = 60;
|
9 |
protected $tab = 'help';
|
10 |
|
11 |
/**
|
v2/App/Controllers/Admin/Tabs/Recipe.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Wdr\App\Controllers\Admin\Tabs;
|
4 |
+
|
5 |
+
use Wdr\App\Controllers\Configuration;
|
6 |
+
use Wdr\App\Controllers\DiscountCalculator;
|
7 |
+
use Wdr\App\Helpers\Helper;
|
8 |
+
use Wdr\App\Helpers\Rule;
|
9 |
+
use Wdr\App\Helpers\Validation;
|
10 |
+
|
11 |
+
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
12 |
+
|
13 |
+
class Recipe extends Base
|
14 |
+
{
|
15 |
+
public $priority = 50;
|
16 |
+
protected $tab = 'recipe';
|
17 |
+
|
18 |
+
/**
|
19 |
+
* GeneralSettings constructor.
|
20 |
+
*/
|
21 |
+
public function __construct()
|
22 |
+
{
|
23 |
+
parent::__construct();
|
24 |
+
$this->title = __('Recipe', WDR_TEXT_DOMAIN);
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Render settings page
|
29 |
+
* @param null $page
|
30 |
+
* @return mixed|void
|
31 |
+
*/
|
32 |
+
public function render($page = NULL)
|
33 |
+
{
|
34 |
+
$rule_helper = new Rule();
|
35 |
+
$available_rules_for_customizer = $rule_helper->getAvailableRules($this->getAvailableConditions());
|
36 |
+
$params=array(
|
37 |
+
'woocommerce' => self::$woocommerce_helper,
|
38 |
+
'configuration' => new Configuration(),
|
39 |
+
'is_pro' => Helper::hasPro(),
|
40 |
+
'discount_calculator' => new DiscountCalculator($available_rules_for_customizer),
|
41 |
+
'template_helper' => self::$template_helper,
|
42 |
+
'base' => $this,
|
43 |
+
);
|
44 |
+
self::$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/Recipe.php')->setData($params)->display();
|
45 |
+
}
|
46 |
+
}
|
v2/App/Controllers/Admin/WDRAjax.php
CHANGED
@@ -12,6 +12,7 @@ use Wdr\App\Helpers\Migration;
|
|
12 |
use Wdr\App\Helpers\Rule;
|
13 |
use Wdr\App\Helpers\Validation;
|
14 |
use Wdr\App\Helpers\Woocommerce;
|
|
|
15 |
use Wdr\App\Router;
|
16 |
|
17 |
if (!defined('ABSPATH')) exit;
|
@@ -145,6 +146,13 @@ class WDRAjax extends Base
|
|
145 |
if(!is_array($taxonomy)){
|
146 |
$taxonomy = array('product_cat');
|
147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
$query = $this->input->post('query', '');
|
149 |
$terms = get_terms(array('taxonomy' => $taxonomy, 'name__like' => $query, 'hide_empty' => false, 'number' => $this->search_result_limit));
|
150 |
|
@@ -236,10 +244,24 @@ class WDRAjax extends Base
|
|
236 |
FROM $wpdb->postmeta
|
237 |
WHERE meta_key = '_sku' AND meta_value like '%$query%'
|
238 |
");
|
|
|
239 |
return array_map(function ($result) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
return array(
|
241 |
'id' => (string)$result->meta_value,
|
242 |
-
'text' =>
|
243 |
);
|
244 |
}, $results);
|
245 |
}
|
@@ -666,7 +688,7 @@ class WDRAjax extends Base
|
|
666 |
class="get_awdr_shipping_state append-preloaded-values edit-preloaded-values"
|
667 |
data-list="states"
|
668 |
data-field="preloaded"
|
669 |
-
data-placeholder="Search State"
|
670 |
name="conditions['.$selected_index.'][options][value][]">';
|
671 |
if(!empty($selected_countries)){
|
672 |
foreach ($selected_countries as $country) {
|
@@ -686,4 +708,26 @@ class WDRAjax extends Base
|
|
686 |
$state_options .= "</select>";
|
687 |
return $state_options;
|
688 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
689 |
}
|
12 |
use Wdr\App\Helpers\Rule;
|
13 |
use Wdr\App\Helpers\Validation;
|
14 |
use Wdr\App\Helpers\Woocommerce;
|
15 |
+
use Wdr\App\Models\Recipes;
|
16 |
use Wdr\App\Router;
|
17 |
|
18 |
if (!defined('ABSPATH')) exit;
|
146 |
if(!is_array($taxonomy)){
|
147 |
$taxonomy = array('product_cat');
|
148 |
}
|
149 |
+
//For loading all language categories in select box.
|
150 |
+
global $sitepress;
|
151 |
+
if(!empty($sitepress)){
|
152 |
+
remove_filter( 'get_terms_args', array( $sitepress, 'get_terms_args_filter' ), 10 );
|
153 |
+
remove_filter( 'get_term', array( $sitepress, 'get_term_adjust_id' ), 1 );
|
154 |
+
remove_filter( 'terms_clauses', array( $sitepress, 'terms_clauses' ), 10 );
|
155 |
+
}
|
156 |
$query = $this->input->post('query', '');
|
157 |
$terms = get_terms(array('taxonomy' => $taxonomy, 'name__like' => $query, 'hide_empty' => false, 'number' => $this->search_result_limit));
|
158 |
|
244 |
FROM $wpdb->postmeta
|
245 |
WHERE meta_key = '_sku' AND meta_value like '%$query%'
|
246 |
");
|
247 |
+
|
248 |
return array_map(function ($result) {
|
249 |
+
$p_title = '';
|
250 |
+
if(function_exists('wc_get_product_id_by_sku') && function_exists('get_the_title') ){
|
251 |
+
$p_id = wc_get_product_id_by_sku( $result->meta_value );
|
252 |
+
if( $p_id > 0){
|
253 |
+
$p_title = $p_id.': '.get_the_title( $p_id );
|
254 |
+
if(!empty($p_title)){
|
255 |
+
$p_title = 'SKU: ' . $result->meta_value . ' ( ' . $p_title . ' )';
|
256 |
+
}
|
257 |
+
}
|
258 |
+
}
|
259 |
+
if(empty( $p_title )){
|
260 |
+
$p_title = 'SKU: ' . $result->meta_value;
|
261 |
+
}
|
262 |
return array(
|
263 |
'id' => (string)$result->meta_value,
|
264 |
+
'text' => $p_title,
|
265 |
);
|
266 |
}, $results);
|
267 |
}
|
688 |
class="get_awdr_shipping_state append-preloaded-values edit-preloaded-values"
|
689 |
data-list="states"
|
690 |
data-field="preloaded"
|
691 |
+
data-placeholder="'. __('Search State', 'woo-discount-rules') .'"
|
692 |
name="conditions['.$selected_index.'][options][value][]">';
|
693 |
if(!empty($selected_countries)){
|
694 |
foreach ($selected_countries as $country) {
|
708 |
$state_options .= "</select>";
|
709 |
return $state_options;
|
710 |
}
|
711 |
+
|
712 |
+
function wdr_ajax_create_rule_recipe()
|
713 |
+
{
|
714 |
+
Helper::validateRequest('common_recipe_nonce');
|
715 |
+
$recipes_object = new Recipes();
|
716 |
+
$recipes_data = $recipes_object->recipeDetails();
|
717 |
+
$awdr_recipe_type = isset($_POST['awdr_recipe_type']) ? $_POST['awdr_recipe_type'] : array();
|
718 |
+
$recipes_data_keys = array_keys($recipes_data);
|
719 |
+
if(in_array($awdr_recipe_type, $recipes_data_keys)){
|
720 |
+
$rule_data = $recipes_data[$awdr_recipe_type];
|
721 |
+
$rule_id = $recipes_object->save($rule_data);
|
722 |
+
if (!empty($rule_id)) {
|
723 |
+
$redirect_url = admin_url("admin.php?" . http_build_query(array('page' => WDR_SLUG, 'tab' => 'rules', 'task' => 'view', 'id' => $rule_id)));
|
724 |
+
} else {
|
725 |
+
$redirect_url = '';
|
726 |
+
}
|
727 |
+
|
728 |
+
wp_send_json_success(array('rule_id' => $rule_id, 'redirect' => $redirect_url, 'success' => true));
|
729 |
+
} else {
|
730 |
+
wp_send_json_error(array('message' => __('Invalid request', 'woo-discount-rules'), 'success' => false));
|
731 |
+
}
|
732 |
+
}
|
733 |
}
|
v2/App/Controllers/ManageDiscount.php
CHANGED
@@ -255,8 +255,10 @@ class ManageDiscount extends Base
|
|
255 |
//Calculate the product price
|
256 |
$prices = self::calculateInitialAndDiscountedPrice($product, $quantity, $is_cart = false, $ajax_price);
|
257 |
$apply_as_cart_rule = isset($prices['apply_as_cart_rule']) ? $prices['apply_as_cart_rule'] : array('no');
|
258 |
-
if(!
|
259 |
-
|
|
|
|
|
260 |
}
|
261 |
if($ajax_price){
|
262 |
$discount_details = (isset($prices['total_discount_details'])) ? $prices['total_discount_details'] : false;
|
@@ -492,6 +494,7 @@ class ManageDiscount extends Base
|
|
492 |
*/
|
493 |
function getStrikeoutPrice($original_price, $discounted_price, $format_price = true, $is_variable_product = false, $initial_price_html=false)
|
494 |
{
|
|
|
495 |
if ($original_price == $discounted_price) {
|
496 |
if ($format_price) {
|
497 |
$discounted_price = self::$woocommerce_helper->formatPrice($discounted_price);
|
@@ -502,7 +505,7 @@ class ManageDiscount extends Base
|
|
502 |
$original_price = self::$woocommerce_helper->formatPrice($original_price);
|
503 |
$discounted_price = self::$woocommerce_helper->formatPrice($discounted_price);
|
504 |
}
|
505 |
-
|
506 |
if($initial_price_html){
|
507 |
$initial_price_html = preg_replace('/<del>.*<\/del>/', '', $initial_price_html);
|
508 |
$html = '<del>' . $initial_price_html . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
@@ -510,7 +513,7 @@ class ManageDiscount extends Base
|
|
510 |
$html = '<del>' . $original_price . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
511 |
}
|
512 |
}
|
513 |
-
return apply_filters('advanced_woo_discount_rules_strikeout_price_html', $html, $original_price, $discounted_price, $is_variable_product);
|
514 |
}
|
515 |
|
516 |
/**
|
@@ -739,6 +742,7 @@ class ManageDiscount extends Base
|
|
739 |
'usage_limit_per_user' => '',
|
740 |
'limit_usage_to_x_items' => '',
|
741 |
'usage_count' => '',
|
|
|
742 |
'expiry_date' => '',
|
743 |
'apply_before_tax' => 'yes',
|
744 |
'free_shipping' => false,
|
@@ -777,6 +781,7 @@ class ManageDiscount extends Base
|
|
777 |
'usage_limit_per_user' => '',
|
778 |
'limit_usage_to_x_items' => '',
|
779 |
'usage_count' => '',
|
|
|
780 |
'expiry_date' => '',
|
781 |
'apply_before_tax' => 'yes',
|
782 |
'free_shipping' => false,
|
@@ -1430,6 +1435,9 @@ class ManageDiscount extends Base
|
|
1430 |
$bxgy_cheapest_discount_qty = isset($value['buy_x_get_y_cheapest_in_cart_discount']['discount_quantity']) ? $value['buy_x_get_y_cheapest_in_cart_discount']['discount_quantity'] : 0;
|
1431 |
$bxgy_cheapest_discount = $bxgy_cheapest_discount_price * $bxgy_cheapest_discount_qty;
|
1432 |
$buy_x_get_y_cheapest_additional = isset($value['buy_x_get_y_cheapest_in_cart_discount']['additional_discounts']) ? $value['buy_x_get_y_cheapest_in_cart_discount']['additional_discounts'] : '';
|
|
|
|
|
|
|
1433 |
$bogo_cheapest_aditional_sum = 0;
|
1434 |
if(!empty($buy_x_get_y_cheapest_additional)) {
|
1435 |
$bogo_cheapest_aditional = array();
|
@@ -1440,7 +1448,8 @@ class ManageDiscount extends Base
|
|
1440 |
}
|
1441 |
$bogo_cheapest_aditional_sum = array_sum($bogo_cheapest_aditional);
|
1442 |
}
|
1443 |
-
|
|
|
1444 |
if ($discount_price < 0) {
|
1445 |
$discount_price = 0;
|
1446 |
}
|
255 |
//Calculate the product price
|
256 |
$prices = self::calculateInitialAndDiscountedPrice($product, $quantity, $is_cart = false, $ajax_price);
|
257 |
$apply_as_cart_rule = isset($prices['apply_as_cart_rule']) ? $prices['apply_as_cart_rule'] : array('no');
|
258 |
+
if(!empty($apply_as_cart_rule)){
|
259 |
+
if(!in_array('no', $apply_as_cart_rule)){
|
260 |
+
return $price_html;
|
261 |
+
}
|
262 |
}
|
263 |
if($ajax_price){
|
264 |
$discount_details = (isset($prices['total_discount_details'])) ? $prices['total_discount_details'] : false;
|
494 |
*/
|
495 |
function getStrikeoutPrice($original_price, $discounted_price, $format_price = true, $is_variable_product = false, $initial_price_html=false)
|
496 |
{
|
497 |
+
$separator = ($is_variable_product) ? '<br>' : ' ';
|
498 |
if ($original_price == $discounted_price) {
|
499 |
if ($format_price) {
|
500 |
$discounted_price = self::$woocommerce_helper->formatPrice($discounted_price);
|
505 |
$original_price = self::$woocommerce_helper->formatPrice($original_price);
|
506 |
$discounted_price = self::$woocommerce_helper->formatPrice($discounted_price);
|
507 |
}
|
508 |
+
|
509 |
if($initial_price_html){
|
510 |
$initial_price_html = preg_replace('/<del>.*<\/del>/', '', $initial_price_html);
|
511 |
$html = '<del>' . $initial_price_html . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
513 |
$html = '<del>' . $original_price . '</del>' . $separator . '<ins>' . $discounted_price . '</ins>';
|
514 |
}
|
515 |
}
|
516 |
+
return apply_filters('advanced_woo_discount_rules_strikeout_price_html', $html, $original_price, $discounted_price, $is_variable_product, $initial_price_html, $separator);
|
517 |
}
|
518 |
|
519 |
/**
|
742 |
'usage_limit_per_user' => '',
|
743 |
'limit_usage_to_x_items' => '',
|
744 |
'usage_count' => '',
|
745 |
+
'date_created' => apply_filters('advanced_woo_discount_rules_custom_coupon_date_created', date('Y-m-d')),
|
746 |
'expiry_date' => '',
|
747 |
'apply_before_tax' => 'yes',
|
748 |
'free_shipping' => false,
|
781 |
'usage_limit_per_user' => '',
|
782 |
'limit_usage_to_x_items' => '',
|
783 |
'usage_count' => '',
|
784 |
+
'date_created' => apply_filters('advanced_woo_discount_rules_custom_coupon_date_created', date('Y-m-d')),
|
785 |
'expiry_date' => '',
|
786 |
'apply_before_tax' => 'yes',
|
787 |
'free_shipping' => false,
|
1435 |
$bxgy_cheapest_discount_qty = isset($value['buy_x_get_y_cheapest_in_cart_discount']['discount_quantity']) ? $value['buy_x_get_y_cheapest_in_cart_discount']['discount_quantity'] : 0;
|
1436 |
$bxgy_cheapest_discount = $bxgy_cheapest_discount_price * $bxgy_cheapest_discount_qty;
|
1437 |
$buy_x_get_y_cheapest_additional = isset($value['buy_x_get_y_cheapest_in_cart_discount']['additional_discounts']) ? $value['buy_x_get_y_cheapest_in_cart_discount']['additional_discounts'] : '';
|
1438 |
+
$bxgy_cheapest_from_product_discount_price = isset($value['buy_x_get_y_cheapest_from_products_discount']['discount_price_per_quantity']) ? $value['buy_x_get_y_cheapest_from_products_discount']['discount_price_per_quantity'] : 0;
|
1439 |
+
$bxgy_cheapest_from_product_discount_qty = isset($value['buy_x_get_y_cheapest_from_products_discount']['discount_quantity']) ? $value['buy_x_get_y_cheapest_from_products_discount']['discount_quantity'] : 0;
|
1440 |
+
$bxgy_cheapest_from_product_discount = $bxgy_cheapest_from_product_discount_price * $bxgy_cheapest_from_product_discount_qty;
|
1441 |
$bogo_cheapest_aditional_sum = 0;
|
1442 |
if(!empty($buy_x_get_y_cheapest_additional)) {
|
1443 |
$bogo_cheapest_aditional = array();
|
1448 |
}
|
1449 |
$bogo_cheapest_aditional_sum = array_sum($bogo_cheapest_aditional);
|
1450 |
}
|
1451 |
+
|
1452 |
+
$discount_price = $simple_discount + $bulk_discount + $set_discount + $bxgx_discount + $bxgy_discount + $bxgy_cheapest_discount + $bogo_cheapest_aditional_sum + $bxgy_cheapest_from_product_discount;
|
1453 |
if ($discount_price < 0) {
|
1454 |
$discount_price = 0;
|
1455 |
}
|
v2/App/Controllers/ShortCodeManager.php
CHANGED
@@ -360,6 +360,19 @@ class ShortCodeManager extends ManageDiscount
|
|
360 |
$query_arguments['post__in'] = $onsale_list['list'];
|
361 |
}
|
362 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
} else {
|
364 |
$query_arguments = array();
|
365 |
}
|
360 |
$query_arguments['post__in'] = $onsale_list['list'];
|
361 |
}
|
362 |
}
|
363 |
+
if(apply_filters('advanced_woo_discount_rules_exclude_out_of_stock_product_on_sale_page', false)){
|
364 |
+
$exclude_out_of_stock = array('meta_query' => array(
|
365 |
+
array(
|
366 |
+
'key' => '_stock_status',
|
367 |
+
'value' => 'instock'
|
368 |
+
),
|
369 |
+
array(
|
370 |
+
'key' => '_backorders',
|
371 |
+
'value' => 'no'
|
372 |
+
),
|
373 |
+
));
|
374 |
+
$query_arguments = array_merge($query_arguments, $exclude_out_of_stock);
|
375 |
+
}
|
376 |
} else {
|
377 |
$query_arguments = array();
|
378 |
}
|
v2/App/Helpers/Filter.php
CHANGED
@@ -101,7 +101,7 @@ class Filter
|
|
101 |
$processing_result = $this->compareWithAttributes($product, $values, $method, $cart_item);
|
102 |
}
|
103 |
} elseif ('product_sku' === $type) {
|
104 |
-
$processing_result = $this->compareWithSku($product, $values, $method);
|
105 |
} elseif ('product_on_sale' === $type) {
|
106 |
$processing_result = $this->compareWithOnSale($product, $method);
|
107 |
} elseif (in_array($type, array_keys(Woocommerce::getCustomProductTaxonomies()))) {
|
@@ -157,12 +157,13 @@ class Filter
|
|
157 |
* @param $product
|
158 |
* @param $operation_values
|
159 |
* @param $operation_method
|
|
|
160 |
* @return bool
|
161 |
*/
|
162 |
-
protected function compareWithSku($product, $operation_values, $operation_method)
|
163 |
{
|
164 |
$result = false;
|
165 |
-
$product_sku = Woocommerce::getProductSku($product);
|
166 |
if ('in_list' === $operation_method) {
|
167 |
$result = (in_array($product_sku, $operation_values));
|
168 |
} elseif ('not_in_list' === $operation_method) {
|
@@ -209,6 +210,7 @@ class Filter
|
|
209 |
$attr_ids = array_merge($attr_ids, Woocommerce::getAttributeOption($attr));
|
210 |
}
|
211 |
}
|
|
|
212 |
}
|
213 |
if(!empty($product_variation)){
|
214 |
$attributes_parent = Woocommerce::getProductAttributes($product_variation);
|
101 |
$processing_result = $this->compareWithAttributes($product, $values, $method, $cart_item);
|
102 |
}
|
103 |
} elseif ('product_sku' === $type) {
|
104 |
+
$processing_result = $this->compareWithSku($product, $values, $method, $sale_badge);
|
105 |
} elseif ('product_on_sale' === $type) {
|
106 |
$processing_result = $this->compareWithOnSale($product, $method);
|
107 |
} elseif (in_array($type, array_keys(Woocommerce::getCustomProductTaxonomies()))) {
|
157 |
* @param $product
|
158 |
* @param $operation_values
|
159 |
* @param $operation_method
|
160 |
+
* @param $sale_badge
|
161 |
* @return bool
|
162 |
*/
|
163 |
+
protected function compareWithSku($product, $operation_values, $operation_method, $sale_badge=false)
|
164 |
{
|
165 |
$result = false;
|
166 |
+
$product_sku = apply_filters('advanced_woo_discount_rules_check_sku_filter', Woocommerce::getProductSku($product), $product, $operation_values, $operation_method, $sale_badge);
|
167 |
if ('in_list' === $operation_method) {
|
168 |
$result = (in_array($product_sku, $operation_values));
|
169 |
} elseif ('not_in_list' === $operation_method) {
|
210 |
$attr_ids = array_merge($attr_ids, Woocommerce::getAttributeOption($attr));
|
211 |
}
|
212 |
}
|
213 |
+
$attr_ids = apply_filters('advanced_woo_discount_rules_get_attribute_id_from_taxonomy_name', $attr_ids, $taxonomy, $product, $cart_item, $operation_values);
|
214 |
}
|
215 |
if(!empty($product_variation)){
|
216 |
$attributes_parent = Woocommerce::getProductAttributes($product_variation);
|
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.5', '>=')) {
|
336 |
if (defined('WDR_PRO_VERSION')) {
|
337 |
+
if (version_compare(WDR_PRO_VERSION, '2.3.5', '<')) {
|
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
@@ -632,7 +632,7 @@ class Rule
|
|
632 |
if ($this->hasAdvancedDiscountMessage()) {
|
633 |
$badge_settings = json_decode($this->rule->advanced_discount_message);
|
634 |
if ($key == 'badge_text' && isset($badge_settings->badge_text) && !empty($badge_settings->badge_text)) {
|
635 |
-
return htmlspecialchars_decode($badge_settings->badge_text);
|
636 |
}
|
637 |
if (isset($badge_settings->$key) && !empty($badge_settings->$key)) {
|
638 |
return $badge_settings->$key;
|
@@ -1423,6 +1423,7 @@ class Rule
|
|
1423 |
'discount_type' => esc_sql($discount_type),
|
1424 |
'used_coupons' => json_encode($awdr_coupon_names),
|
1425 |
);
|
|
|
1426 |
if (!is_null($rule_id) && !empty($rule_id)) {
|
1427 |
$arg['modified_by'] = intval($current_user);
|
1428 |
$arg['modified_on'] = esc_sql($current_date_time);
|
@@ -1510,11 +1511,8 @@ class Rule
|
|
1510 |
$array_filters[$key]['product_variants'] = array();
|
1511 |
if ($array_filter['type'] == 'products' && !empty($array_filter['value'])) {
|
1512 |
if (is_array($array_filter['value'])) {
|
1513 |
-
$
|
1514 |
-
|
1515 |
-
$array_filters[$key]['product_variants_for_sale_badge'] = $this->getParentOfVariant($array_filter['value']);
|
1516 |
-
}
|
1517 |
-
$array_filters[$key]['product_variants'] = $variants;
|
1518 |
}
|
1519 |
}
|
1520 |
}
|
632 |
if ($this->hasAdvancedDiscountMessage()) {
|
633 |
$badge_settings = json_decode($this->rule->advanced_discount_message);
|
634 |
if ($key == 'badge_text' && isset($badge_settings->badge_text) && !empty($badge_settings->badge_text)) {
|
635 |
+
return htmlspecialchars_decode(__($badge_settings->badge_text, 'woo-discount-rules'));
|
636 |
}
|
637 |
if (isset($badge_settings->$key) && !empty($badge_settings->$key)) {
|
638 |
return $badge_settings->$key;
|
1423 |
'discount_type' => esc_sql($discount_type),
|
1424 |
'used_coupons' => json_encode($awdr_coupon_names),
|
1425 |
);
|
1426 |
+
|
1427 |
if (!is_null($rule_id) && !empty($rule_id)) {
|
1428 |
$arg['modified_by'] = intval($current_user);
|
1429 |
$arg['modified_on'] = esc_sql($current_date_time);
|
1511 |
$array_filters[$key]['product_variants'] = array();
|
1512 |
if ($array_filter['type'] == 'products' && !empty($array_filter['value'])) {
|
1513 |
if (is_array($array_filter['value'])) {
|
1514 |
+
$array_filters[$key]['product_variants'] = $this->getVariantsOfProducts($array_filter['value']);
|
1515 |
+
$array_filters[$key]['product_variants_for_sale_badge'] = $this->getParentOfVariant($array_filter['value']);
|
|
|
|
|
|
|
1516 |
}
|
1517 |
}
|
1518 |
}
|
v2/App/Helpers/Validation.php
CHANGED
@@ -282,6 +282,36 @@ class Validation
|
|
282 |
return in_array($value, $acceptable, true);
|
283 |
}
|
284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
285 |
/**
|
286 |
* Check alphaNum values for selected array values (multi select box)
|
287 |
*
|
@@ -318,6 +348,18 @@ class Validation
|
|
318 |
Validator::addRule('radioButtonAndSelectBox', array(__CLASS__, 'validateRadioButtonAndSelectBox'), __('Accept only yes, on, 1, true', 'woo-discount-rules'));
|
319 |
Validator::addRule('plainInputText', array(__CLASS__, 'validatePlainInputText'), __('Should not contain any tags', 'woo-discount-rules'));
|
320 |
Validator::addRule('selectedArrayValues', array(__CLASS__, 'validateSelectedArrayValues'), __('Should not contain any tags and special characters', 'woo-discount-rules'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
//allow br, strong, span,div, p tags only
|
322 |
$settings_fields_validator->rule('basicTags',
|
323 |
array(
|
@@ -358,6 +400,7 @@ class Validation
|
|
358 |
'show_subtotal_promotion',
|
359 |
'show_promo_text_con',
|
360 |
'show_applied_rules_message_on_cart',
|
|
|
361 |
)
|
362 |
);
|
363 |
//validate slug may contains a-zA-Z0-9_-
|
@@ -380,6 +423,8 @@ class Validation
|
|
380 |
'customize_bulk_table_title',
|
381 |
'customize_bulk_table_discount',
|
382 |
'customize_bulk_table_range',
|
|
|
|
|
383 |
)
|
384 |
);
|
385 |
//validate array
|
282 |
return in_array($value, $acceptable, true);
|
283 |
}
|
284 |
|
285 |
+
/**
|
286 |
+
* validate Radio Button And Select Box
|
287 |
+
*
|
288 |
+
* @param $field
|
289 |
+
* @param $value
|
290 |
+
* @param array $params
|
291 |
+
* @param array $fields
|
292 |
+
* @return bool
|
293 |
+
*/
|
294 |
+
static function validateCrossSellOrdering($field, $value, array $params, array $fields)
|
295 |
+
{
|
296 |
+
$acceptable = array('desc', 'asc');
|
297 |
+
return in_array($value, $acceptable, true);
|
298 |
+
}
|
299 |
+
|
300 |
+
/**
|
301 |
+
* validate Order bY
|
302 |
+
*
|
303 |
+
* @param $field
|
304 |
+
* @param $value
|
305 |
+
* @param array $params
|
306 |
+
* @param array $fields
|
307 |
+
* @return bool
|
308 |
+
*/
|
309 |
+
static function validateCrossSellOrderBy($field, $value, array $params, array $fields)
|
310 |
+
{
|
311 |
+
$acceptable = array('rand', 'menu_order', 'price');
|
312 |
+
return in_array($value, $acceptable, true);
|
313 |
+
}
|
314 |
+
|
315 |
/**
|
316 |
* Check alphaNum values for selected array values (multi select box)
|
317 |
*
|
348 |
Validator::addRule('radioButtonAndSelectBox', array(__CLASS__, 'validateRadioButtonAndSelectBox'), __('Accept only yes, on, 1, true', 'woo-discount-rules'));
|
349 |
Validator::addRule('plainInputText', array(__CLASS__, 'validatePlainInputText'), __('Should not contain any tags', 'woo-discount-rules'));
|
350 |
Validator::addRule('selectedArrayValues', array(__CLASS__, 'validateSelectedArrayValues'), __('Should not contain any tags and special characters', 'woo-discount-rules'));
|
351 |
+
Validator::addRule('crossSellOrdering', array(__CLASS__, 'validateCrossSellOrdering'), __('Invalid inputs', 'woo-discount-rules'));
|
352 |
+
Validator::addRule('crossSellOrderBy', array(__CLASS__, 'validateCrossSellOrderBy'), __('Invalid inputs', 'woo-discount-rules'));
|
353 |
+
$settings_fields_validator->rule('crossSellOrdering',
|
354 |
+
array(
|
355 |
+
'cross_sell_on_cart_order',
|
356 |
+
)
|
357 |
+
);
|
358 |
+
$settings_fields_validator->rule('crossSellOrderBy',
|
359 |
+
array(
|
360 |
+
'cross_sell_on_cart_order_by',
|
361 |
+
)
|
362 |
+
);
|
363 |
//allow br, strong, span,div, p tags only
|
364 |
$settings_fields_validator->rule('basicTags',
|
365 |
array(
|
400 |
'show_subtotal_promotion',
|
401 |
'show_promo_text_con',
|
402 |
'show_applied_rules_message_on_cart',
|
403 |
+
'show_cross_sell_on_cart',
|
404 |
)
|
405 |
);
|
406 |
//validate slug may contains a-zA-Z0-9_-
|
423 |
'customize_bulk_table_title',
|
424 |
'customize_bulk_table_discount',
|
425 |
'customize_bulk_table_range',
|
426 |
+
'cross_sell_on_cart_limit',
|
427 |
+
'cross_sell_on_cart_column',
|
428 |
)
|
429 |
);
|
430 |
//validate array
|
v2/App/Helpers/Woocommerce.php
CHANGED
@@ -1630,4 +1630,18 @@ class Woocommerce
|
|
1630 |
public static function displayTableIfAnyOneVariantHasDiscount(){
|
1631 |
return apply_filters('advanced_woo_discount_rules_display_bulk_table_if_any_one_variant_has_discount', false);
|
1632 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1633 |
}
|
1630 |
public static function displayTableIfAnyOneVariantHasDiscount(){
|
1631 |
return apply_filters('advanced_woo_discount_rules_display_bulk_table_if_any_one_variant_has_discount', false);
|
1632 |
}
|
1633 |
+
|
1634 |
+
/**
|
1635 |
+
* get available product variations
|
1636 |
+
* @param $product
|
1637 |
+
* @return array
|
1638 |
+
*/
|
1639 |
+
public static function availableProductVariations($product){
|
1640 |
+
$available_variations = array();
|
1641 |
+
$is_variable_product = self::productTypeIs($product, 'variable');
|
1642 |
+
if ($is_variable_product && method_exists($product, 'get_available_variations')){
|
1643 |
+
$available_variations = $product->get_available_variations();
|
1644 |
+
}
|
1645 |
+
return $available_variations;
|
1646 |
+
}
|
1647 |
}
|
v2/App/Models/DBTable.php
CHANGED
@@ -15,7 +15,7 @@ class DBTable
|
|
15 |
|
16 |
function createDBTables()
|
17 |
{
|
18 |
-
global $wpdb;
|
19 |
if (is_multisite()) {
|
20 |
// get ids of all sites
|
21 |
$blog_table = $wpdb->blogs;
|
@@ -26,10 +26,10 @@ class DBTable
|
|
26 |
$this->createTable();
|
27 |
restore_current_blog();
|
28 |
}
|
29 |
-
} else {
|
30 |
// activated on a single site
|
31 |
$this->createTable();
|
32 |
-
}
|
33 |
}
|
34 |
|
35 |
/**
|
@@ -177,6 +177,9 @@ class DBTable
|
|
177 |
if(isset(self::$rules['front_end']) && $cache === true){
|
178 |
return self::$rules['front_end'];
|
179 |
}
|
|
|
|
|
|
|
180 |
$current_time = current_time('timestamp');
|
181 |
$current_language = Language::getCurrentLanguage();
|
182 |
$language_query = '';
|
@@ -191,6 +194,9 @@ class DBTable
|
|
191 |
* Need for Admin
|
192 |
*/
|
193 |
if (is_admin()) {
|
|
|
|
|
|
|
194 |
if (!is_null($rule_id) && is_null($rule_name) && is_null($export)) {
|
195 |
if(isset(self::$rules['admin_based_on_rule_id']) && $cache === true){
|
196 |
return self::$rules['admin_based_on_rule_id'];
|
@@ -467,7 +473,7 @@ class DBTable
|
|
467 |
* update new table structure
|
468 |
*/
|
469 |
function updateDBTables(){
|
470 |
-
global $wpdb;
|
471 |
if (is_multisite()) {
|
472 |
// get ids of all sites
|
473 |
$blog_table = $wpdb->blogs;
|
@@ -478,10 +484,10 @@ class DBTable
|
|
478 |
$this->updateTable();
|
479 |
restore_current_blog();
|
480 |
}
|
481 |
-
} else {
|
482 |
// activated on a single site
|
483 |
$this->updateTable();
|
484 |
-
}
|
485 |
}
|
486 |
|
487 |
/**
|
15 |
|
16 |
function createDBTables()
|
17 |
{
|
18 |
+
/*global $wpdb;
|
19 |
if (is_multisite()) {
|
20 |
// get ids of all sites
|
21 |
$blog_table = $wpdb->blogs;
|
26 |
$this->createTable();
|
27 |
restore_current_blog();
|
28 |
}
|
29 |
+
} else {*/
|
30 |
// activated on a single site
|
31 |
$this->createTable();
|
32 |
+
/*}*/
|
33 |
}
|
34 |
|
35 |
/**
|
177 |
if(isset(self::$rules['front_end']) && $cache === true){
|
178 |
return self::$rules['front_end'];
|
179 |
}
|
180 |
+
if($wpdb->get_var("show tables like '$rules_table_name'") != $rules_table_name){
|
181 |
+
return false;
|
182 |
+
}
|
183 |
$current_time = current_time('timestamp');
|
184 |
$current_language = Language::getCurrentLanguage();
|
185 |
$language_query = '';
|
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'];
|
473 |
* update new table structure
|
474 |
*/
|
475 |
function updateDBTables(){
|
476 |
+
/*global $wpdb;
|
477 |
if (is_multisite()) {
|
478 |
// get ids of all sites
|
479 |
$blog_table = $wpdb->blogs;
|
484 |
$this->updateTable();
|
485 |
restore_current_blog();
|
486 |
}
|
487 |
+
} else {*/
|
488 |
// activated on a single site
|
489 |
$this->updateTable();
|
490 |
+
/*}*/
|
491 |
}
|
492 |
|
493 |
/**
|
v2/App/Models/Recipes.php
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Wdr\App\Models;
|
4 |
+
|
5 |
+
use Wdr\App\Controllers\OnSaleShortCode;
|
6 |
+
use Wdr\App\Helpers\Language;
|
7 |
+
use Wdr\App\Helpers\Woocommerce;
|
8 |
+
|
9 |
+
if (!defined('ABSPATH')) exit;
|
10 |
+
|
11 |
+
class Recipes
|
12 |
+
{
|
13 |
+
public $simple_discount_recipe = array(
|
14 |
+
'simple_recipe_1' => array(
|
15 |
+
'title' => 'Coupon based user role discount - sample',
|
16 |
+
'enabled' => 1,
|
17 |
+
'exclusive' => 0,
|
18 |
+
'usage_limits' => 0,
|
19 |
+
'date_from' => '',
|
20 |
+
'date_to' => '',
|
21 |
+
'filters' => '{"1":{"type":"all_products"}}',
|
22 |
+
'conditions' => '{"2":{"type":"user_role","options":{"operator":"in_list","value":["customer"]}},"3":{"type":"cart_coupon","options":{"operator":"custom_coupon","custom_value":"summer"}}}',
|
23 |
+
'additional' => '{"condition_relationship":"and"}',
|
24 |
+
'product_adjustments' => '{"type":"percentage","value":"10","cart_label":""}',
|
25 |
+
'cart_adjustments' => '[]',
|
26 |
+
'buy_x_get_x_adjustments' => '[]',
|
27 |
+
'buy_x_get_y_adjustments' => '[]',
|
28 |
+
'bulk_adjustments' => '{"cart_label":""}',
|
29 |
+
'rule_language' => '[]',
|
30 |
+
'set_adjustments' => '{"cart_label":""}',
|
31 |
+
'advanced_discount_message' => '{"display":"0","badge_color_picker":"#ffffff","badge_text_color_picker":"#000000","badge_text":""}',
|
32 |
+
'discount_type' => 'wdr_simple_discount',
|
33 |
+
'used_coupons' => '[]'
|
34 |
+
),
|
35 |
+
'simple_recipe_2' => array(
|
36 |
+
'title' => 'Subtotal tiered discount - sample',
|
37 |
+
'enabled' => 1,
|
38 |
+
'exclusive' => 0,
|
39 |
+
'usage_limits' => 0,
|
40 |
+
'date_from' => '',
|
41 |
+
'date_to' => '',
|
42 |
+
'filters' => '{"1":{"type":"all_products"}}',
|
43 |
+
'conditions' => '{"2":{"type":"cart_subtotal","options":{"operator":"greater_than_or_equal","value":"500","calculate_from":"from_cart"}},"3":{"type":"cart_subtotal","options":{"operator":"less_than_or_equal","value":"1000","calculate_from":"from_cart"}}}',
|
44 |
+
'additional' => '{"condition_relationship":"and"}',
|
45 |
+
'product_adjustments' => '{"type":"percentage","value":"20","cart_label":""}',
|
46 |
+
'cart_adjustments' => '[]',
|
47 |
+
'buy_x_get_x_adjustments' => '[]',
|
48 |
+
'buy_x_get_y_adjustments' => '[]',
|
49 |
+
'bulk_adjustments' => '{"cart_label":""}',
|
50 |
+
'rule_language' => '[]',
|
51 |
+
'set_adjustments' => '{"cart_label":""}',
|
52 |
+
'advanced_discount_message' => '{"display":"0","badge_color_picker":"#ffffff","badge_text_color_picker":"#000000","badge_text":""}',
|
53 |
+
'discount_type' => 'wdr_simple_discount',
|
54 |
+
'used_coupons' => '[]'
|
55 |
+
),
|
56 |
+
'bundle_recipe_1' => array(
|
57 |
+
'title' => 'Set Discount - sample ',
|
58 |
+
'enabled' => 1,
|
59 |
+
'exclusive' => 0,
|
60 |
+
'usage_limits' => 0,
|
61 |
+
'date_from' => '',
|
62 |
+
'date_to' => '',
|
63 |
+
'filters' => '{"1":{"type":"all_products"}}',
|
64 |
+
'conditions' => '[]',
|
65 |
+
'additional' => '{"condition_relationship":"and"}',
|
66 |
+
'product_adjustments' => '[]',
|
67 |
+
'cart_adjustments' => '[]',
|
68 |
+
'buy_x_get_x_adjustments' => '[]',
|
69 |
+
'buy_x_get_y_adjustments' => '[]',
|
70 |
+
'bulk_adjustments' => '{"cart_label":""}',
|
71 |
+
'rule_language' => '[]',
|
72 |
+
'set_adjustments' => '{"operator":"product_cumulative","ranges":{"1":{"from":"3","value":"10","type":"fixed_set_price","label":""}},"cart_label":""}',
|
73 |
+
'advanced_discount_message' => '{"display":"0","badge_color_picker":"#ffffff","badge_text_color_picker":"#000000","badge_text":""}',
|
74 |
+
'discount_type' => 'wdr_set_discount',
|
75 |
+
'used_coupons' => '[]'
|
76 |
+
),
|
77 |
+
'buyx_gety_recipe_1' => array(
|
78 |
+
'title' => 'Buy X get X - Buy 1 get 1 free - sample',
|
79 |
+
'enabled' => 1,
|
80 |
+
'exclusive' => 0,
|
81 |
+
'usage_limits' => 0,
|
82 |
+
'date_from' => '',
|
83 |
+
'date_to' => '',
|
84 |
+
'filters' => '{"1":{"type":"all_products"}}',
|
85 |
+
'conditions' => '[]',
|
86 |
+
'additional' => '{"condition_relationship":"and"}',
|
87 |
+
'product_adjustments' => '[]',
|
88 |
+
'cart_adjustments' => '[]',
|
89 |
+
'buy_x_get_x_adjustments' => '[]',
|
90 |
+
'buy_x_get_y_adjustments' => '{"type":"bxgy_all","operator":"product_cumulative","mode":"cheapest","ranges":{"1":{"from":"1","to":"1","free_qty":"1","free_type":"free_product","free_value":"","recursive":"1","product_varients":[],"product_variants_for_sale_badge":[]}}}',
|
91 |
+
'bulk_adjustments' => '{"cart_label":""}',
|
92 |
+
'rule_language' => '[]',
|
93 |
+
'set_adjustments' => '[]',
|
94 |
+
'advanced_discount_message' => '{"display":"0","badge_color_picker":"#ffffff","badge_text_color_picker":"#000000","badge_text":""}',
|
95 |
+
'discount_type' => 'wdr_buy_x_get_y_discount',
|
96 |
+
'used_coupons' => '[]'
|
97 |
+
),
|
98 |
+
'buyx_gety_recipe_2' => array(
|
99 |
+
'title' => 'Buy X get Y - Buy 2 get 1 free - sample',
|
100 |
+
'enabled' => 1,
|
101 |
+
'exclusive' => 0,
|
102 |
+
'usage_limits' => 0,
|
103 |
+
'date_from' => '',
|
104 |
+
'date_to' => '',
|
105 |
+
'filters' => '{"1":{"type":"all_products"}}',
|
106 |
+
'conditions' => '[]',
|
107 |
+
'additional' => '{"condition_relationship":"and"}',
|
108 |
+
'product_adjustments' => '[]',
|
109 |
+
'cart_adjustments' => '[]',
|
110 |
+
'buy_x_get_x_adjustments' => '[]',
|
111 |
+
'buy_x_get_y_adjustments' => '{"type":"bxgy_all","operator":"product_cumulative","mode":"cheapest","ranges":{"1":{"from":"2","to":"1","free_qty":"1","free_type":"free_product","free_value":"","recursive":"1","product_varients":[],"product_variants_for_sale_badge":[]}}}',
|
112 |
+
'bulk_adjustments' => '{"cart_label":""}',
|
113 |
+
'rule_language' => '[]',
|
114 |
+
'set_adjustments' => '[]',
|
115 |
+
'advanced_discount_message' => '{"display":"0","badge_color_picker":"#ffffff","badge_text_color_picker":"#000000","badge_text":""}',
|
116 |
+
'discount_type' => 'wdr_buy_x_get_y_discount',
|
117 |
+
'used_coupons' => '[]'
|
118 |
+
),
|
119 |
+
);
|
120 |
+
|
121 |
+
function recipeDetails(){
|
122 |
+
return $this->simple_discount_recipe;
|
123 |
+
}
|
124 |
+
|
125 |
+
function save($arg)
|
126 |
+
{
|
127 |
+
//$current_time = current_time('mysql', true);
|
128 |
+
$current_date_time = '';
|
129 |
+
if (function_exists('current_time')) {
|
130 |
+
$current_time = current_time('timestamp');
|
131 |
+
$current_date_time = date('Y-m-d H:i:s', $current_time);
|
132 |
+
}
|
133 |
+
$current_user = get_current_user_id();
|
134 |
+
$rule_id = NULL;
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
if (!is_null($rule_id) && !empty($rule_id)) {
|
139 |
+
$arg['modified_by'] = intval($current_user);
|
140 |
+
$arg['modified_on'] = esc_sql($current_date_time);
|
141 |
+
$column_format = array('%s', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s');
|
142 |
+
}else{
|
143 |
+
$arg['created_by'] = intval($current_user);
|
144 |
+
$arg['created_on'] = esc_sql($current_date_time);
|
145 |
+
$arg['modified_by'] = intval($current_user);
|
146 |
+
$arg['modified_on'] = esc_sql($current_date_time);
|
147 |
+
$column_format = array('%s', '%d', '%d', '%d', '%d', '%d', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%d', '%s', '%d', '%s');
|
148 |
+
}
|
149 |
+
|
150 |
+
$rule_id = DBTable::saveRule($column_format, $arg, $rule_id);
|
151 |
+
if($rule_id){
|
152 |
+
OnSaleShortCode::updateOnsaleRebuildPageStatus($rule_id);
|
153 |
+
//do_action('advanced_woo_discount_rules_after_save_rule', $rule_id, $post, $arg);
|
154 |
+
}
|
155 |
+
return $rule_id;
|
156 |
+
}
|
157 |
+
}
|
v2/App/Views/Admin/Rules/Discounts/Main.php
CHANGED
@@ -99,7 +99,7 @@ If a customer buys 2 of Product A - Small, 4 of Product A - Medium, 6 of Prod
|
|
99 |
<input name="bulk_adjustments[cart_label]"
|
100 |
type="text"
|
101 |
value="<?php echo (isset($bulk_adj_as_cart_label)) ? $bulk_adj_as_cart_label : ''; ?>"
|
102 |
-
placeholder="Discount Label">
|
103 |
</div>
|
104 |
</div>
|
105 |
</div>
|
99 |
<input name="bulk_adjustments[cart_label]"
|
100 |
type="text"
|
101 |
value="<?php echo (isset($bulk_adj_as_cart_label)) ? $bulk_adj_as_cart_label : ''; ?>"
|
102 |
+
placeholder="<?php esc_attr('Discount Label', 'woo-discount-rules'); ?>">
|
103 |
</div>
|
104 |
</div>
|
105 |
</div>
|
v2/App/Views/Admin/Rules/Discounts/simple.php
CHANGED
@@ -45,7 +45,7 @@ $is_pro = \Wdr\App\Helpers\Helper::hasPro();
|
|
45 |
<input name="product_adjustments[cart_label]"
|
46 |
type="text"
|
47 |
value="<?php echo (isset($product_adjustments->cart_label)) ? $product_adjustments->cart_label : ''; ?>"
|
48 |
-
placeholder="Discount Label">
|
49 |
</div>
|
50 |
</div>
|
51 |
</div>
|
45 |
<input name="product_adjustments[cart_label]"
|
46 |
type="text"
|
47 |
value="<?php echo (isset($product_adjustments->cart_label)) ? $product_adjustments->cart_label : ''; ?>"
|
48 |
+
placeholder="<?php esc_attr('Discount Label', 'woo-discount-rules'); ?>">
|
49 |
</div>
|
50 |
</div>
|
51 |
</div>
|
v2/App/Views/Admin/Rules/Filters/Main.php
CHANGED
@@ -66,7 +66,7 @@ if (!defined('ABSPATH')) {
|
|
66 |
switch ($filter->type) {
|
67 |
case 'products':
|
68 |
$item_name = '#'.$option.' '.get_the_title($option);
|
69 |
-
$placeholder = 'Products';
|
70 |
break;
|
71 |
}
|
72 |
if (!empty($item_name)) {
|
66 |
switch ($filter->type) {
|
67 |
case 'products':
|
68 |
$item_name = '#'.$option.' '.get_the_title($option);
|
69 |
+
$placeholder = __('Products', 'woo-discount-rules');
|
70 |
break;
|
71 |
}
|
72 |
if (!empty($item_name)) {
|
v2/App/Views/Admin/Rules/Manage.php
CHANGED
@@ -53,7 +53,7 @@
|
|
53 |
<div class="wdr-sticky-header" id="ruleHeader">
|
54 |
<div class="wdr-enable-rule">
|
55 |
<div class="wdr-field-title" style="width: 45%">
|
56 |
-
<input class="wdr-title" type="text" name="title" placeholder="Rule Title"
|
57 |
value="<?php echo esc_attr($rule->getTitle()); ?>"><!--awdr-clear-both-->
|
58 |
</div><?php
|
59 |
$is_rtl_enabled = \Wdr\App\Helpers\Woocommerce::isRTLEnable();
|
53 |
<div class="wdr-sticky-header" id="ruleHeader">
|
54 |
<div class="wdr-enable-rule">
|
55 |
<div class="wdr-field-title" style="width: 45%">
|
56 |
+
<input class="wdr-title" type="text" name="title" placeholder="<?php esc_attr('Rule Title', 'woo-discount-rules'); ?>"
|
57 |
value="<?php echo esc_attr($rule->getTitle()); ?>"><!--awdr-clear-both-->
|
58 |
</div><?php
|
59 |
$is_rtl_enabled = \Wdr\App\Helpers\Woocommerce::isRTLEnable();
|
v2/App/Views/Admin/Rules/Others/SubtotalPromotion.php
CHANGED
@@ -30,9 +30,9 @@ if($render_saved_condition != true && isset($i)){
|
|
30 |
<textarea
|
31 |
name="conditions[<?php echo (isset($i)) ? $i : '{i}' ?>][options][subtotal_promotion_message]"
|
32 |
style="height: 60px;"
|
33 |
-
placeholder="<?php _e('
|
34 |
<span class="wdr_desc_text awdr-clear-both"><?php _e('{{difference_amount}} -> Difference amount to get discount', 'woo-discount-rules'); ?></span>
|
35 |
-
<span class="wdr_desc_text awdr-clear-both"><?php _e('<b>Eg:</b>
|
36 |
</div>
|
37 |
</div><?php
|
38 |
echo ($render_saved_condition == true) ? '' : '</div>'; ?>
|
30 |
<textarea
|
31 |
name="conditions[<?php echo (isset($i)) ? $i : '{i}' ?>][options][subtotal_promotion_message]"
|
32 |
style="height: 60px;"
|
33 |
+
placeholder="<?php _e('Spend {{difference_amount}} more and get 10% discount', 'woo-discount-rules'); ?>"><?php echo ($subtotal_promotion_message) ? $subtotal_promotion_message : ''; ?></textarea>
|
34 |
<span class="wdr_desc_text awdr-clear-both"><?php _e('{{difference_amount}} -> Difference amount to get discount', 'woo-discount-rules'); ?></span>
|
35 |
+
<span class="wdr_desc_text awdr-clear-both"><?php _e('<b>Eg:</b> Spend {{difference_amount}} more and get 10% discount', 'woo-discount-rules'); ?></span>
|
36 |
</div>
|
37 |
</div><?php
|
38 |
echo ($render_saved_condition == true) ? '' : '</div>'; ?>
|
v2/App/Views/Admin/Tabs/Recipe.php
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
}
|
5 |
+
|
6 |
+
use Wdr\App\Helpers\Template;
|
7 |
+
$template_helper = new Template();
|
8 |
+
?>
|
9 |
+
<br>
|
10 |
+
<div id="wpbody-content" class="awdr-container" style="background-color: #ffffff;">
|
11 |
+
<?php if($is_pro) { ?>
|
12 |
+
<div class="awdr_recipe_container">
|
13 |
+
<div class="awdr_recipe_left">
|
14 |
+
<div class="awdr_recipe_main_card" data-recipe-group="awdr_product_adjustment_card_group">
|
15 |
+
<div class="awdr_product_adjustment_card_container" >
|
16 |
+
<h4><b> <?php _e('Simple Discount', WDR_TEXT_DOMAIN);?></b></h4>
|
17 |
+
<p><?php _e('Product adjustment ', WDR_TEXT_DOMAIN);?></p>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
<div class="awdr_recipe_main_card" data-recipe-group="awdr_set_adjustment_card_group">
|
21 |
+
<div class="awdr_set_adjustment_card_container">
|
22 |
+
<h4><b><?php _e('Bundle(set) Discount', WDR_TEXT_DOMAIN);?></b></h4>
|
23 |
+
<p><?php _e('Bundle(set) Adjustment', WDR_TEXT_DOMAIN);?></p>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
<div class="awdr_recipe_main_card" data-recipe-group="awdr_bogo_adjustment_card_group">
|
27 |
+
<div class="awdr_bogo_adjustment_card_container">
|
28 |
+
<h4><b><?php _e('BOGO Discount', WDR_TEXT_DOMAIN);?></b></h4>
|
29 |
+
<p><?php _e('BOGO Adjustment', WDR_TEXT_DOMAIN);?></p>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
<div class="awdr_recipe_right">
|
34 |
+
<div class="awdr_recipe_main_content">
|
35 |
+
<?php
|
36 |
+
$recipe_nonce = \Wdr\App\Helpers\Helper::create_nonce('common_recipe_nonce');
|
37 |
+
$params['recipe_nonce'] = $recipe_nonce;
|
38 |
+
$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php' )->setData($params)->display();
|
39 |
+
$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/RecipeTypes/CartDiscountRecipe.php' )->setData($params)->display();
|
40 |
+
$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/RecipeTypes/BulkDiscountRecipe.php' )->setData($params)->display();
|
41 |
+
$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/RecipeTypes/BundleDiscountRecipe.php' )->setData($params)->display();
|
42 |
+
$template_helper->setPath(WDR_PLUGIN_PATH . 'App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php' )->setData($params)->display();
|
43 |
+
?>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
</div>
|
47 |
+
<?php
|
48 |
+
}else{ ?>
|
49 |
+
<p> <?php _e("Unlock this feature by <a href='https://www.flycart.org/products/wordpress/woocommerce-discount-rules?utm_source=woo-discount-rules-v2&utm_campaign=doc&utm_medium=text-click&utm_content=unlock_pro' target='_blank'>Upgrading to Pro</a>", WDR_TEXT_DOMAIN); ?></p>
|
50 |
+
<?php } ?>
|
51 |
+
</div>
|
52 |
+
|
v2/App/Views/Admin/Tabs/RecipeTypes/BogoDiscountRecipe.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="awdr_bogo_adjustment_card_group" style="display: none;">
|
7 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
8 |
+
<b><?php _e('Buy X get X - Buy 1 get 1 free - sample', WDR_TEXT_DOMAIN);?></b>
|
9 |
+
<button class="button awdr_recipe_content" type="button" data-recipe-nonce="<?php echo $recipe_nonce;?>" data-select-recipe="buyx_gety_recipe_1"><?php _e('Create', WDR_TEXT_DOMAIN);?></button>
|
10 |
+
<a style="display: none;" class="button awdr_recipe_rule_edit" href="" target="_blank" ><?php _e('View & edit Rule', WDR_TEXT_DOMAIN);?></a>
|
11 |
+
|
12 |
+
</div>
|
13 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
14 |
+
<b><?php _e('Buy X get Y - Buy 2 get 1 free - sample', WDR_TEXT_DOMAIN);?></b>
|
15 |
+
<button class="button awdr_recipe_content" type="button" data-recipe-nonce="<?php echo $recipe_nonce;?>" data-select-recipe="buyx_gety_recipe_2"><?php _e('Create', WDR_TEXT_DOMAIN);?></button>
|
16 |
+
<a style="display: none;" class="button awdr_recipe_rule_edit" href="" target="_blank" ><?php _e('View & edit Rule', WDR_TEXT_DOMAIN);?></a>
|
17 |
+
</div>
|
18 |
+
</div>
|
v2/App/Views/Admin/Tabs/RecipeTypes/BulkDiscountRecipe.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="awdr_bulk_adjustment_card_group" style="display: none;">
|
7 |
+
<!--<div class="awdr_simple_discount awdr_common_border_class">
|
8 |
+
<b><?php /*_e('10% Store Wide Discount bulk', WDR_TEXT_DOMAIN);*/?></b>
|
9 |
+
<form>
|
10 |
+
<input type="hidden" name="awdr_simple_discount" value="1">
|
11 |
+
<button class="button" type="submit"><?php /*_e('Create', WDR_TEXT_DOMAIN);*/?></button>
|
12 |
+
</form>
|
13 |
+
<a style="display: none;" href=""><?php /*_e('Edit Rule', WDR_TEXT_DOMAIN);*/?></a>
|
14 |
+
</div>
|
15 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
16 |
+
<b><?php /*_e('20% Store Wide Discount bulk', WDR_TEXT_DOMAIN);*/?></b>
|
17 |
+
<form>
|
18 |
+
<input type="hidden" name="awdr_simple_discount" value="1">
|
19 |
+
<button class="button" type="submit"><?php /*_e('Create', WDR_TEXT_DOMAIN);*/?></button>
|
20 |
+
</form>
|
21 |
+
<a style="display: none;" href=""><?php /*_e('Edit Rule', WDR_TEXT_DOMAIN);*/?></a>
|
22 |
+
</div>-->
|
23 |
+
</div>
|
v2/App/Views/Admin/Tabs/RecipeTypes/BundleDiscountRecipe.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="awdr_set_adjustment_card_group" style="display: none;">
|
7 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
8 |
+
<b><?php _e('Set Discount - sample', WDR_TEXT_DOMAIN);?></b>
|
9 |
+
<button class="button awdr_recipe_content" type="button" data-recipe-nonce="<?php echo $recipe_nonce;?>" data-select-recipe="bundle_recipe_1"><?php _e('Create', WDR_TEXT_DOMAIN);?></button>
|
10 |
+
<a style="display: none;" class="button awdr_recipe_rule_edit" href="" target="_blank" ><?php _e('View & edit Rule', WDR_TEXT_DOMAIN);?></a>
|
11 |
+
|
12 |
+
</div>
|
13 |
+
</div>
|
v2/App/Views/Admin/Tabs/RecipeTypes/CartDiscountRecipe.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="awdr_cart_adjustment_card_group" style="display: none;">
|
7 |
+
<!--<div class="awdr_simple_discount awdr_common_border_class">
|
8 |
+
<b><?php /*_e('10% Store Wide Discount Cart', WDR_TEXT_DOMAIN);*/?></b>
|
9 |
+
<form>
|
10 |
+
<input type="hidden" name="awdr_simple_discount" value="1">
|
11 |
+
<button class="button" type="submit"><?php /*_e('Create', WDR_TEXT_DOMAIN);*/?></button>
|
12 |
+
</form>
|
13 |
+
<a style="display: none;" href=""><?php /*_e('Edit Rule', WDR_TEXT_DOMAIN);*/?></a>
|
14 |
+
</div>
|
15 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
16 |
+
<b><?php /*_e('20% Store Wide Discount Cart', WDR_TEXT_DOMAIN);*/?></b>
|
17 |
+
<form>
|
18 |
+
<input type="hidden" name="awdr_simple_discount" value="1">
|
19 |
+
<button class="button" type="submit"><?php /*_e('Create', WDR_TEXT_DOMAIN);*/?></button>
|
20 |
+
</form>
|
21 |
+
<a style="display: none;" href=""><?php /*_e('Edit Rule', WDR_TEXT_DOMAIN);*/?></a>
|
22 |
+
</div>-->
|
23 |
+
</div>
|
v2/App/Views/Admin/Tabs/RecipeTypes/SimpleDiscountRecipe.php
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit; // Exit if accessed directly
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
|
7 |
+
<div class="awdr_product_adjustment_card_group">
|
8 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
9 |
+
<b><?php _e('Coupon based user role discount - sample', WDR_TEXT_DOMAIN);?></b>
|
10 |
+
<button class="button awdr_recipe_content" type="button" data-recipe-nonce="<?php echo $recipe_nonce;?>" data-select-recipe="simple_recipe_1"><?php _e('Create', WDR_TEXT_DOMAIN);?></button>
|
11 |
+
<a style="display: none;" class="button awdr_recipe_rule_edit" href="" target="_blank" ><?php _e('View & edit Rule', WDR_TEXT_DOMAIN);?></a>
|
12 |
+
|
13 |
+
</div>
|
14 |
+
<div class="awdr_simple_discount awdr_common_border_class">
|
15 |
+
<b><?php _e('Subtotal tiered discount - sample', WDR_TEXT_DOMAIN);?></b>
|
16 |
+
<button class="button awdr_recipe_content" type="button" data-recipe-nonce="<?php echo $recipe_nonce;?>" data-select-recipe="simple_recipe_2"><?php _e('Create', WDR_TEXT_DOMAIN);?></button>
|
17 |
+
<a style="display: none;" class="button awdr_recipe_rule_edit" href="" target="_blank" ><?php _e('View & edit Rule', WDR_TEXT_DOMAIN);?></a>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
|
21 |
+
|
v2/App/Views/Admin/Tabs/settings.php
CHANGED
@@ -158,7 +158,7 @@
|
|
158 |
</td>
|
159 |
<td>
|
160 |
<textarea name="on_sale_badge_html"
|
161 |
-
placeholder='<span class="onsale"
|
162 |
rows="5"
|
163 |
cols="30"><?php echo $configuration->getConfig('on_sale_badge_html', '<span class="onsale">Sale!</span>'); ?></textarea>
|
164 |
</td>
|
158 |
</td>
|
159 |
<td>
|
160 |
<textarea name="on_sale_badge_html"
|
161 |
+
placeholder='<span class="onsale"><?php _e('Sale!', 'woo-discount-rules') ?></span>'
|
162 |
rows="5"
|
163 |
cols="30"><?php echo $configuration->getConfig('on_sale_badge_html', '<span class="onsale">Sale!</span>'); ?></textarea>
|
164 |
</td>
|
v2/Assets/Css/admin_style.css
CHANGED
@@ -1118,6 +1118,7 @@ tr.awdr-listing-rule-tr td {
|
|
1118 |
}
|
1119 |
#wpfooter{
|
1120 |
position: relative;
|
|
|
1121 |
}
|
1122 |
.wdr-buyx-gety-discount-inner{
|
1123 |
padding: 5px;
|
@@ -1434,3 +1435,67 @@ div.wdr {
|
|
1434 |
width: 225% !important;
|
1435 |
}
|
1436 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1118 |
}
|
1119 |
#wpfooter{
|
1120 |
position: relative;
|
1121 |
+
z-index: -1;
|
1122 |
}
|
1123 |
.wdr-buyx-gety-discount-inner{
|
1124 |
padding: 5px;
|
1435 |
width: 225% !important;
|
1436 |
}
|
1437 |
|
1438 |
+
.awdr_recipe_container{
|
1439 |
+
background-color: #ffffff;
|
1440 |
+
display: flex;
|
1441 |
+
padding: 10px;
|
1442 |
+
}
|
1443 |
+
.awdr_recipe_left {
|
1444 |
+
float: left;
|
1445 |
+
width: 19%;
|
1446 |
+
background-color: #FFFFFF;
|
1447 |
+
padding: 10px 10px 0px 10px;
|
1448 |
+
}
|
1449 |
+
.awdr_recipe_right {
|
1450 |
+
width: 80%;
|
1451 |
+
float: left;
|
1452 |
+
/*background-color: #f3f1f1;*/
|
1453 |
+
margin: 21px;
|
1454 |
+
}
|
1455 |
+
div.awdr_recipe_main_card{
|
1456 |
+
cursor: pointer;
|
1457 |
+
}
|
1458 |
+
.awdr_recipe_main_card {
|
1459 |
+
/*box-shadow: 0 4px 8px 0 rgba(100,149,237,1);*/
|
1460 |
+
transition: 0.3s;
|
1461 |
+
width: 100%;
|
1462 |
+
border-radius: 5px;
|
1463 |
+
margin-top: 20px;
|
1464 |
+
margin-bottom: 20px;
|
1465 |
+
border-radius: 5px;
|
1466 |
+
border: 1px solid #6495ed;
|
1467 |
+
|
1468 |
+
}
|
1469 |
+
.awdr_recipe_main_card:first-child{
|
1470 |
+
background-color: #6495ed;
|
1471 |
+
color: #ffffff;
|
1472 |
+
}
|
1473 |
+
.awdr_recipe_main_card div{
|
1474 |
+
padding: 2px 16px;
|
1475 |
+
border-radius: 5px;
|
1476 |
+
}
|
1477 |
+
|
1478 |
+
.card:hover {
|
1479 |
+
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
|
1480 |
+
}
|
1481 |
+
|
1482 |
+
.awdr_common_border_class{
|
1483 |
+
padding: 10px;
|
1484 |
+
margin: 10px;
|
1485 |
+
border: 1px solid #6495ed;
|
1486 |
+
border-radius: 5px;
|
1487 |
+
}
|
1488 |
+
|
1489 |
+
.awdr_recipe_main_content .button {
|
1490 |
+
background-color: #6495ed;
|
1491 |
+
border: none;
|
1492 |
+
color: white;
|
1493 |
+
padding: 0px 32px;
|
1494 |
+
text-align: center;
|
1495 |
+
text-decoration: none;
|
1496 |
+
display: inline-block;
|
1497 |
+
cursor: pointer;
|
1498 |
+
border-radius: 5px;
|
1499 |
+
margin-left: 10px;
|
1500 |
+
}
|
1501 |
+
|
v2/Assets/Js/admin_script.js
CHANGED
@@ -2680,4 +2680,5 @@ jQuery(document).ready(function ($) {
|
|
2680 |
});
|
2681 |
});
|
2682 |
$('.get_awdr_state_based_country').trigger('change');
|
|
|
2683 |
});
|
2680 |
});
|
2681 |
});
|
2682 |
$('.get_awdr_state_based_country').trigger('change');
|
2683 |
+
|
2684 |
});
|
v2/Assets/Js/awdr_recipe.js
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* global jQuery, ajaxurl, wdr_data */
|
2 |
+
jQuery(document).ready(function ($) {
|
3 |
+
|
4 |
+
$('.awdr_recipe_main_card').click(function () {
|
5 |
+
let choose_recipe = $(this).attr("data-recipe-group");
|
6 |
+
$('.'+choose_recipe).show();
|
7 |
+
$('.awdr_recipe_main_card').each(function (index, element) {
|
8 |
+
let hidden_recipe = $(element).attr("data-recipe-group");
|
9 |
+
if(choose_recipe != hidden_recipe){
|
10 |
+
$('.'+hidden_recipe).hide();
|
11 |
+
$(element).css({"background-color": "#ffffff", "color": "#444444"})
|
12 |
+
}else{
|
13 |
+
$(element).css({"background-color": "#6495ed", "color": "#ffffff"})
|
14 |
+
}
|
15 |
+
});
|
16 |
+
});
|
17 |
+
|
18 |
+
|
19 |
+
/**
|
20 |
+
* save rule
|
21 |
+
*/
|
22 |
+
$(document).on('click', '.awdr_recipe_content', function () {
|
23 |
+
var recipe_nonce = $(this).attr('data-recipe-nonce');
|
24 |
+
var recipe_type = $(this).attr('data-select-recipe');
|
25 |
+
var target_element = $(this).next();
|
26 |
+
$.ajax({
|
27 |
+
data: {
|
28 |
+
method: 'create_rule_recipe',
|
29 |
+
action: 'wdr_ajax',
|
30 |
+
awdr_nonce: recipe_nonce,
|
31 |
+
awdr_recipe_type: recipe_type,
|
32 |
+
},
|
33 |
+
type: 'post',
|
34 |
+
url: ajaxurl,
|
35 |
+
|
36 |
+
error: function (request, error) {
|
37 |
+
notify(wdr_data.localization_data.error, 'error', alert_counter);
|
38 |
+
},
|
39 |
+
success: function (response) {
|
40 |
+
var data = response.data;
|
41 |
+
if (response.success) {
|
42 |
+
if (data.redirect && parseInt(data.rule_id) != 0) {
|
43 |
+
target_element.attr("href", data.redirect);
|
44 |
+
target_element.show();
|
45 |
+
target_element.css({"background-color": "#f3f5f6", "color": "#0071a1", "border-color": "#7e8993"})
|
46 |
+
} else {
|
47 |
+
$('.wdr_desc_text.coupon_error_msg').hide();
|
48 |
+
$(".coupon_name_msg").css("border", "");
|
49 |
+
notify(wdr_data.localization_data.save_rule, 'success', alert_counter);
|
50 |
+
}
|
51 |
+
} else {
|
52 |
+
notify(wdr_data.localization_data.save_priority, 'success', alert_counter);
|
53 |
+
}
|
54 |
+
}
|
55 |
+
});
|
56 |
+
|
57 |
+
});
|
58 |
+
|
59 |
+
});
|
v2/Assets/Js/rulebuilder.js
CHANGED
@@ -51,17 +51,19 @@ var wdr_buildrule;
|
|
51 |
var condition_type = $(settings.addConditionType).html();
|
52 |
let style_inline = "";
|
53 |
let class_inline = "";
|
|
|
|
|
54 |
if(!condition_type || condition_type == 'undefined'){
|
55 |
condition_type = '';
|
56 |
style_inline = "display:none";
|
57 |
class_inline = "promo_show_hide_"+settings.newIndex;
|
58 |
remove_icon = '';
|
|
|
59 |
}else{
|
60 |
condition_type = condition_type.replace(new RegExp('{i}', 'g'), settings.newIndex);
|
|
|
61 |
}
|
62 |
-
|
63 |
-
condition_method = condition_method.replace(new RegExp('{i}', 'g'), settings.newIndex);
|
64 |
-
$(settings.ruleAppendTo).append('<div class="'+class_inline+' wdr-conditions-container wdr-condition-group" style="'+style_inline+'" data-index="' + settings.newIndex + '">' + condition_type + condition_method + remove_icon + '</div>');
|
65 |
} else if (settings.addDiscountType == null && settings.addDiscountElement !== null && settings.addFilterMethod !== null && settings.ruleAppendTo !== null) {
|
66 |
filter_method = filter_method.replace(new RegExp('{i}', 'g'), settings.newIndex);
|
67 |
$(settings.ruleAppendTo).append(filter_method);
|
51 |
var condition_type = $(settings.addConditionType).html();
|
52 |
let style_inline = "";
|
53 |
let class_inline = "";
|
54 |
+
var condition_method = $(settings.addFilterMethod).html();
|
55 |
+
condition_method = condition_method.replace(new RegExp('{i}', 'g'), settings.newIndex);
|
56 |
if(!condition_type || condition_type == 'undefined'){
|
57 |
condition_type = '';
|
58 |
style_inline = "display:none";
|
59 |
class_inline = "promo_show_hide_"+settings.newIndex;
|
60 |
remove_icon = '';
|
61 |
+
$(settings.ruleAppendTo +" [data-index='"+ settings.newIndex +"']").after('<div class="'+class_inline+' wdr-conditions-container wdr-condition-group" style="'+style_inline+'" data-index="' + settings.newIndex + '">' + condition_type + condition_method + remove_icon + '</div>');
|
62 |
}else{
|
63 |
condition_type = condition_type.replace(new RegExp('{i}', 'g'), settings.newIndex);
|
64 |
+
$(settings.ruleAppendTo).append('<div class="'+class_inline+' wdr-conditions-container wdr-condition-group" style="'+style_inline+'" data-index="' + settings.newIndex + '">' + condition_type + condition_method + remove_icon + '</div>');
|
65 |
}
|
66 |
+
|
|
|
|
|
67 |
} else if (settings.addDiscountType == null && settings.addDiscountElement !== null && settings.addFilterMethod !== null && settings.ruleAppendTo !== null) {
|
68 |
filter_method = filter_method.replace(new RegExp('{i}', 'g'), settings.newIndex);
|
69 |
$(settings.ruleAppendTo).append(filter_method);
|
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:
|
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.5
|
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.1
|
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.5');
|
25 |
}
|
26 |
|
27 |
global $awdr_load_version;
|