Version Description
- 04/07/19 =
- Fix - Fatal error while API request.
- Fix - Free shipping not works when update shipping state through calculate shipping option in cart.
- Improvement - Purchase history based on email.
- Improvement - CSS fix as some template overrides few css.
- Improvement - Enable cumulative option by default.
- Improvement - Check sale price date as well, while should not apply if item on sale option is enabled.
- Improvement - Event apply_filters('woo_discount_rules_run_before_calculate_event_on_before_calculate_subtotal_in_cart_rules', true);
- Improvement - If product not exists return empty product object to avoid errors while an product is deleted.
- Improvement - Display the formatted title for variants instead of product title.
Download this release
Release Info
Developer | flycart |
Plugin | Discount Rules for WooCommerce |
Version | 1.7.17 |
Comparing to | |
See all releases |
Code changes from version 1.7.16 to 1.7.17
- assets/css/style.css +6 -0
- assets/js/app.js +26 -2
- helper/general-helper.php +44 -0
- helper/woo-function.php +12 -2
- i18n/languages/woo-discount-rules.pot +380 -302
- includes/cart-rules.php +66 -17
- includes/discount-base.php +8 -1
- includes/pricing-rules.php +81 -19
- loader.php +16 -0
- readme.txt +12 -1
- view/documentation.php +48 -25
- view/settings_price_rules.php +12 -0
- view/view-pricing-rules.php +31 -21
- woo-discount-rules.php +1 -1
assets/css/style.css
CHANGED
@@ -210,4 +210,10 @@ span.wdr_block_span{
|
|
210 |
}
|
211 |
form#discount_config .fade.show{
|
212 |
opacity: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
}
|
210 |
}
|
211 |
form#discount_config .fade.show{
|
212 |
opacity: 1;
|
213 |
+
}
|
214 |
+
form#discount_config .tab-content {
|
215 |
+
display: block;
|
216 |
+
}
|
217 |
+
span.price_discount_amount_tool_tip{
|
218 |
+
display: inline-block;
|
219 |
}
|
assets/js/app.js
CHANGED
@@ -166,6 +166,12 @@ function trigger_woocommerce_tooltip(){
|
|
166 |
$('#savePriceRule').on('click', function (event) {
|
167 |
var validate = validateFields();
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
var validate_bogo = validateWDRBOGOFields();
|
170 |
|
171 |
if(validate == false || validate_bogo == false){
|
@@ -177,6 +183,7 @@ function trigger_woocommerce_tooltip(){
|
|
177 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
178 |
event.preventDefault();
|
179 |
if ($('#rule_name').val() == '') {
|
|
|
180 |
alert(woo_discount_localization.please_enter_the_rule_name);
|
181 |
} else {
|
182 |
current.val(woo_discount_localization.saving);
|
@@ -290,7 +297,12 @@ function trigger_woocommerce_tooltip(){
|
|
290 |
if (is_pro) {
|
291 |
var form = '<div class="discount_rule_list"> <div class="form-group"><label>'+woo_discount_localization.min_quantity+' <input type="text" name="discount_range[' + count + '][min_qty]" class="form-control discount_range_min_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'"></label>' +
|
292 |
'<label>'+woo_discount_localization.max_quantity+' <input type="text" name="discount_range[' + count + '][max_qty]" class="form-control discount_range_max_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> </label> <label>'+woo_discount_localization.adjustment_type+'<select class="form-control price_discount_type" name="discount_range[' + count + '][discount_type]"> ' +
|
293 |
-
'<option value="percentage_discount"> '+woo_discount_localization.percentage_discount_in_adjustment_type+' </option> <option value="price_discount">'+woo_discount_localization.price_discount+' </option> <option value="product_discount">'+woo_discount_localization.product_discount+' </option> </select></label>
|
|
|
|
|
|
|
|
|
|
|
294 |
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> ';
|
295 |
form += '<div class="price_discount_product_list_con hide">' +
|
296 |
' '+woo_discount_localization.apply_for+' <select class="selectpicker discount_product_option" name="discount_range['+count+'][discount_product_option]"><option value="all">'+woo_discount_localization.all_selected+'</option><option value="same_product">'+woo_discount_localization.same_product+'</option><option value="any_cheapest">'+woo_discount_localization.any_one_cheapest_from_selected+'</option><option value="any_cheapest_from_all">'+woo_discount_localization.any_one_cheapest_from_all_products+'</option>' +
|
@@ -338,7 +350,11 @@ function trigger_woocommerce_tooltip(){
|
|
338 |
} else {
|
339 |
var form = '<div class="discount_rule_list"> <div class="form-group"><label>'+woo_discount_localization.min_quantity+' <input type="text" name="discount_range[' + count + '][min_qty]" class="form-control discount_range_min_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'"></label>' +
|
340 |
'<label>'+woo_discount_localization.max_quantity+' <input type="text" name="discount_range[' + count + '][max_qty]" class="form-control discount_range_max_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> </label> <label>'+woo_discount_localization.adjustment_type+'<select class="form-control price_discount_type" name="discount_range[' + count + '][discount_type]"> ' +
|
341 |
-
'<option value="percentage_discount"> '+woo_discount_localization.percentage_discount_in_adjustment_type+' </option> <option disabled>'+woo_discount_localization.price_discount+' <b>' + pro_suffix + '</b> </option> <option disabled>'+woo_discount_localization.product_discount+' <b>' + pro_suffix + '</b> </option> </select></label>
|
|
|
|
|
|
|
|
|
342 |
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> ';
|
343 |
form += '<div class="price_discount_product_list_con hide"><select class="product_list selectpicker price_discount_product_list" multiple title="'+woo_discount_localization.none_selected+'" name="discount_range[' + count + '][discount_product][]">';
|
344 |
form += '<option>'+woo_discount_localization.none_text+'</option>';
|
@@ -350,6 +366,7 @@ function trigger_woocommerce_tooltip(){
|
|
350 |
$('.product_list,.selectpicker').selectpicker('refresh');
|
351 |
$('.wc-product-search').trigger( 'wc-enhanced-select-init' );
|
352 |
$('select.discount_product_discount_type').trigger('change');
|
|
|
353 |
// Tooltips
|
354 |
trigger_woocommerce_tooltip();
|
355 |
});
|
@@ -754,6 +771,13 @@ function trigger_woocommerce_tooltip(){
|
|
754 |
price_discount_amount.hide();
|
755 |
discount_product_percent_con.hide();
|
756 |
$(this).closest('.discount_rule_list').find('.hide-for-product-discount').show();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
757 |
}
|
758 |
});
|
759 |
$('.price_discount_type').trigger('change');
|
166 |
$('#savePriceRule').on('click', function (event) {
|
167 |
var validate = validateFields();
|
168 |
|
169 |
+
if ($('#rule_name').val() == '') {
|
170 |
+
jQuery('a.general_tab').trigger('click');
|
171 |
+
alert(woo_discount_localization.please_enter_the_rule_name);
|
172 |
+
return false;
|
173 |
+
}
|
174 |
+
|
175 |
var validate_bogo = validateWDRBOGOFields();
|
176 |
|
177 |
if(validate == false || validate_bogo == false){
|
183 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
184 |
event.preventDefault();
|
185 |
if ($('#rule_name').val() == '') {
|
186 |
+
jQuery('a.general_tab').trigger('click');
|
187 |
alert(woo_discount_localization.please_enter_the_rule_name);
|
188 |
} else {
|
189 |
current.val(woo_discount_localization.saving);
|
297 |
if (is_pro) {
|
298 |
var form = '<div class="discount_rule_list"> <div class="form-group"><label>'+woo_discount_localization.min_quantity+' <input type="text" name="discount_range[' + count + '][min_qty]" class="form-control discount_range_min_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'"></label>' +
|
299 |
'<label>'+woo_discount_localization.max_quantity+' <input type="text" name="discount_range[' + count + '][max_qty]" class="form-control discount_range_max_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> </label> <label>'+woo_discount_localization.adjustment_type+'<select class="form-control price_discount_type" name="discount_range[' + count + '][discount_type]"> ' +
|
300 |
+
'<option value="percentage_discount"> '+woo_discount_localization.percentage_discount_in_adjustment_type+' </option> <option value="price_discount">'+woo_discount_localization.price_discount+' </option> <option value="product_discount">'+woo_discount_localization.product_discount+' </option> </select></label> ' +
|
301 |
+
'<label><span class="price_discount_amount price_discount_amount_tool_tip_con">\n' +
|
302 |
+
'<span class="woocommerce-help-tip percentage_discount_amount_tool_tip" data-tip="'+woo_discount_localization.percentage_discount_amount_tool_tip_text+'"></span>\n' +
|
303 |
+
'<span class="woocommerce-help-tip price_discount_amount_tool_tip" data-tip="'+woo_discount_localization.price_discount_amount_tool_tip_text+'"></span>\n' +
|
304 |
+
'</span></label>' +
|
305 |
+
'<label><span class="hide-for-product-discount">'+woo_discount_localization.value_text+'</span>' +
|
306 |
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> ';
|
307 |
form += '<div class="price_discount_product_list_con hide">' +
|
308 |
' '+woo_discount_localization.apply_for+' <select class="selectpicker discount_product_option" name="discount_range['+count+'][discount_product_option]"><option value="all">'+woo_discount_localization.all_selected+'</option><option value="same_product">'+woo_discount_localization.same_product+'</option><option value="any_cheapest">'+woo_discount_localization.any_one_cheapest_from_selected+'</option><option value="any_cheapest_from_all">'+woo_discount_localization.any_one_cheapest_from_all_products+'</option>' +
|
350 |
} else {
|
351 |
var form = '<div class="discount_rule_list"> <div class="form-group"><label>'+woo_discount_localization.min_quantity+' <input type="text" name="discount_range[' + count + '][min_qty]" class="form-control discount_range_min_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'"></label>' +
|
352 |
'<label>'+woo_discount_localization.max_quantity+' <input type="text" name="discount_range[' + count + '][max_qty]" class="form-control discount_range_max_qty" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> </label> <label>'+woo_discount_localization.adjustment_type+'<select class="form-control price_discount_type" name="discount_range[' + count + '][discount_type]"> ' +
|
353 |
+
'<option value="percentage_discount"> '+woo_discount_localization.percentage_discount_in_adjustment_type+' </option> <option disabled>'+woo_discount_localization.price_discount+' <b>' + pro_suffix + '</b> </option> <option disabled>'+woo_discount_localization.product_discount+' <b>' + pro_suffix + '</b> </option> </select></label>' +
|
354 |
+
'<label><span class="price_discount_amount price_discount_amount_tool_tip_con">\n' +
|
355 |
+
'<span class="woocommerce-help-tip percentage_discount_amount_tool_tip" data-tip="'+woo_discount_localization.percentage_discount_amount_tool_tip_text+'"></span>\n'+
|
356 |
+
'</span></label>' +
|
357 |
+
'<label>'+woo_discount_localization.value_text+' ' +
|
358 |
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> ';
|
359 |
form += '<div class="price_discount_product_list_con hide"><select class="product_list selectpicker price_discount_product_list" multiple title="'+woo_discount_localization.none_selected+'" name="discount_range[' + count + '][discount_product][]">';
|
360 |
form += '<option>'+woo_discount_localization.none_text+'</option>';
|
366 |
$('.product_list,.selectpicker').selectpicker('refresh');
|
367 |
$('.wc-product-search').trigger( 'wc-enhanced-select-init' );
|
368 |
$('select.discount_product_discount_type').trigger('change');
|
369 |
+
$('select.price_discount_type').trigger('change');
|
370 |
// Tooltips
|
371 |
trigger_woocommerce_tooltip();
|
372 |
});
|
771 |
price_discount_amount.hide();
|
772 |
discount_product_percent_con.hide();
|
773 |
$(this).closest('.discount_rule_list').find('.hide-for-product-discount').show();
|
774 |
+
$(this).closest('.discount_rule_list').find('.percentage_discount_amount_tool_tip, .price_discount_amount_tool_tip').hide();
|
775 |
+
if($(this).val() == 'percentage_discount'){
|
776 |
+
$(this).closest('.discount_rule_list').find('.percentage_discount_amount_tool_tip').show();
|
777 |
+
} else {
|
778 |
+
$(this).closest('.discount_rule_list').find('.price_discount_amount_tool_tip').show();
|
779 |
+
}
|
780 |
+
|
781 |
}
|
782 |
});
|
783 |
$('.price_discount_type').trigger('change');
|
helper/general-helper.php
CHANGED
@@ -896,5 +896,49 @@ if ( ! class_exists( 'FlycartWooDiscountRulesGeneralHelper' ) ) {
|
|
896 |
}
|
897 |
return false;
|
898 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
899 |
}
|
900 |
}
|
896 |
}
|
897 |
return false;
|
898 |
}
|
899 |
+
|
900 |
+
/**
|
901 |
+
* Get billing email from post data
|
902 |
+
*
|
903 |
+
* @return string
|
904 |
+
* */
|
905 |
+
public static function get_billing_email_from_post(){
|
906 |
+
$user_email = '';
|
907 |
+
$postDataObject = \FlycartInput\FInput::getInstance();
|
908 |
+
$postData = $postDataObject->get('post_data', '', 'raw');
|
909 |
+
$postDataArray = array();
|
910 |
+
if($postData != ''){
|
911 |
+
parse_str($postData, $postDataArray);
|
912 |
+
}
|
913 |
+
$postBillingEmail = $postDataObject->get('billing_email', '', 'raw');
|
914 |
+
if($postBillingEmail != ''){
|
915 |
+
$postDataArray['billing_email'] = $postBillingEmail;
|
916 |
+
}
|
917 |
+
if(!get_current_user_id()){
|
918 |
+
$order_id = $postDataObject->get('order-received', 0);
|
919 |
+
if($order_id){
|
920 |
+
$order = FlycartWoocommerceOrder::wc_get_order($order_id);
|
921 |
+
$postDataArray['billing_email'] = FlycartWoocommerceOrder::get_billing_email($order);
|
922 |
+
}
|
923 |
+
}
|
924 |
+
if(isset($postDataArray['billing_email']) && $postDataArray['billing_email'] != ''){
|
925 |
+
$user_email = $postDataArray['billing_email'];
|
926 |
+
}
|
927 |
+
if(empty($user_email)){
|
928 |
+
if(function_exists('WC')){
|
929 |
+
$session = WC()->session;
|
930 |
+
if(!empty($session)){
|
931 |
+
if(method_exists($session, 'get')){
|
932 |
+
$customer = $session->get('customer');
|
933 |
+
if(isset($customer['email']) && !empty($customer['email'])){
|
934 |
+
$user_email = $customer['email'];
|
935 |
+
}
|
936 |
+
}
|
937 |
+
}
|
938 |
+
}
|
939 |
+
}
|
940 |
+
|
941 |
+
return $user_email;
|
942 |
+
}
|
943 |
}
|
944 |
}
|
helper/woo-function.php
CHANGED
@@ -59,7 +59,13 @@ if(!class_exists('FlycartWoocommerceProduct')){
|
|
59 |
public static function wc_get_product($product_id)
|
60 |
{
|
61 |
if(isset(self::$products[$product_id])){} else {
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
64 |
|
65 |
return self::$products[$product_id];
|
@@ -284,7 +290,11 @@ if(!class_exists('FlycartWoocommerceProduct')){
|
|
284 |
*/
|
285 |
public static function get_title($product){
|
286 |
if(FlycartWoocommerceVersion::wcVersion('3.0') || method_exists($product , 'get_title')){
|
287 |
-
|
|
|
|
|
|
|
|
|
288 |
} else if(isset($product->title)){
|
289 |
return $product->title;
|
290 |
} else {
|
59 |
public static function wc_get_product($product_id)
|
60 |
{
|
61 |
if(isset(self::$products[$product_id])){} else {
|
62 |
+
$product = FlycartWoocommerceVersion::wcVersion('2.2') ? wc_get_product($product_id) : get_product($product_id);
|
63 |
+
if(empty($product)){
|
64 |
+
if(class_exists('WC_Product_Simple')){
|
65 |
+
$product = new WC_Product_Simple();
|
66 |
+
}
|
67 |
+
}
|
68 |
+
self::$products[$product_id] = $product;
|
69 |
}
|
70 |
|
71 |
return self::$products[$product_id];
|
290 |
*/
|
291 |
public static function get_title($product){
|
292 |
if(FlycartWoocommerceVersion::wcVersion('3.0') || method_exists($product , 'get_title')){
|
293 |
+
if(method_exists($product, 'get_formatted_name')){
|
294 |
+
return $product->get_formatted_name();
|
295 |
+
} else {
|
296 |
+
return $product->get_title();
|
297 |
+
}
|
298 |
} else if(isset($product->title)){
|
299 |
return $product->title;
|
300 |
} else {
|
i18n/languages/woo-discount-rules.pot
CHANGED
@@ -11,35 +11,35 @@ msgstr ""
|
|
11 |
"Language: en\n"
|
12 |
"X-Generator: Poedit 1.8.7.1\n"
|
13 |
|
14 |
-
#: helper/general-helper.php:
|
15 |
msgid "Guest"
|
16 |
msgstr ""
|
17 |
|
18 |
-
#: helper/general-helper.php:
|
19 |
msgid "Start date and time is set in the future date"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: helper/general-helper.php:
|
23 |
msgid "Validity expired"
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: helper/general-helper.php:
|
27 |
msgid "Will run in future"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: helper/general-helper.php:
|
31 |
msgid "Not running - validity expired"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: helper/general-helper.php:
|
35 |
msgid "Running"
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: helper/general-helper.php:
|
39 |
msgid "Your server current date and time: "
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: helper/general-helper.php:
|
43 |
msgid "Read Docs"
|
44 |
msgstr ""
|
45 |
|
@@ -103,11 +103,11 @@ msgstr ""
|
|
103 |
msgid "License key seems to be Invalid. Please enter a valid license key"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: helper/woo-function.php:
|
107 |
msgid "Search for a product…"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: helper/woo-function.php:
|
111 |
msgid "Search for a user…"
|
112 |
msgstr ""
|
113 |
|
@@ -119,13 +119,13 @@ msgstr ""
|
|
119 |
msgid "Custom Shipping Method for Woocommerce Discount Rules"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: includes/advanced/free_shipping_method.php:68
|
123 |
#: view/settings_cart_rules.php:126
|
124 |
msgid "Free Shipping"
|
125 |
msgstr ""
|
126 |
|
127 |
#: includes/advanced/free_shipping_method.php:73
|
128 |
-
#: includes/discount-base.php:
|
129 |
#: view/pricing-rules.php:163 view/settings_promotion.php:65
|
130 |
#: view/settings_promotion.php:100
|
131 |
msgid "Enable"
|
@@ -143,481 +143,492 @@ msgstr ""
|
|
143 |
msgid "Title to be display on site"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: includes/discount-base.php:
|
147 |
#: view/pricing-rules.php:177
|
148 |
msgid "Active"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: includes/discount-base.php:
|
152 |
#: view/pricing-rules.php:179 view/settings_cart_rules.php:95
|
153 |
-
#: view/settings_cart_rules.php:102 view/settings_price_rules.php:
|
154 |
#: view/settings_promotion.php:22 view/settings_promotion.php:62
|
155 |
#: view/settings_promotion.php:97
|
156 |
msgid "Disabled"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: includes/discount-base.php:
|
160 |
msgid "Cache cleared successfully"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: includes/discount-base.php:
|
164 |
msgid "Failed to clear cache"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: includes/discount-base.php:
|
168 |
msgid "Failed to do action"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: includes/discount-base.php:
|
172 |
msgid "Disabled successfully"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: includes/discount-base.php:
|
176 |
msgid "Deleted successfully"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: includes/discount-base.php:
|
180 |
msgid "Enabled successfully"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: includes/discount-base.php:
|
184 |
-
#: includes/discount-base.php:
|
185 |
msgid "copy"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: includes/discount-base.php:
|
189 |
msgid "Duplicate rule created successfully"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: includes/discount-base.php:
|
193 |
msgid "Failed to create duplicate rule"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: includes/discount-base.php:
|
197 |
msgid "Please fill this field"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: includes/discount-base.php:
|
201 |
msgid "Please Enter the Rule Name to Create / Save."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: includes/discount-base.php:
|
205 |
msgid "Saving..."
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: includes/discount-base.php:
|
209 |
#: view/view-pricing-rules.php:37
|
210 |
msgid "Save Rule"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: includes/discount-base.php:
|
214 |
msgid "Please enter a Key"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: includes/discount-base.php:
|
218 |
msgid "Min Quantity"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: includes/discount-base.php:
|
222 |
msgid "Max Quantity"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: includes/discount-base.php:
|
226 |
-
#: view/view-pricing-rules.php:
|
227 |
-
#: view/view-pricing-rules.php:
|
228 |
-
#: view/view-pricing-rules.php:
|
229 |
msgid "ex. 1"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: includes/discount-base.php:
|
233 |
msgid "ex. 10"
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: includes/discount-base.php:
|
237 |
-
#: view/view-pricing-rules.php:
|
238 |
msgid "ex. 50"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: includes/discount-base.php:
|
242 |
msgid "Search for a user"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: includes/discount-base.php:
|
246 |
msgid "Adjustment Type"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: includes/discount-base.php:
|
250 |
msgid "Discount percentage"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: includes/discount-base.php:
|
254 |
-
#: view/view-pricing-rules.php:
|
255 |
msgid "Percentage Discount"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: includes/discount-base.php:
|
259 |
-
#: view/view-cart-rules.php:620 view/view-pricing-rules.php:
|
260 |
-
#: view/view-pricing-rules.php:
|
261 |
msgid "Price Discount"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: includes/discount-base.php:
|
265 |
-
#: view/view-pricing-rules.php:
|
266 |
msgid "BOGO Product Discount"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: includes/discount-base.php:
|
270 |
msgid "Product Discount - Not support for subtotal based rule"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: includes/discount-base.php:
|
274 |
-
#: view/view-pricing-rules.php:
|
275 |
msgid "Value"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: includes/discount-base.php:
|
279 |
msgid "receive discount for"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: includes/discount-base.php:
|
283 |
msgid "Auto add all selected products"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: includes/discount-base.php:
|
287 |
msgid "Same product"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/discount-base.php:
|
291 |
msgid "Any one cheapest from selected"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/discount-base.php:
|
295 |
msgid "Any one cheapest from all products"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: includes/discount-base.php:
|
299 |
msgid "Cheapest in cart - selected category(ies)"
|
300 |
msgstr ""
|
301 |
|
302 |
-
#: includes/discount-base.php:
|
303 |
msgid "Cheapest in cart - selected item(s)"
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: includes/discount-base.php:
|
307 |
msgid "Cheapest among all items in cart"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: includes/discount-base.php:
|
311 |
msgid "Free quantity"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: includes/discount-base.php:
|
315 |
msgid "Number of quantity(ies) in each selected product(s)"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: includes/discount-base.php:
|
319 |
msgid "Fixed item count (not recommended)"
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: includes/discount-base.php:
|
323 |
msgid "Dynamic item count"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/discount-base.php:
|
327 |
msgid ""
|
328 |
"Fixed item count - You need to provide item count manually. Dynamic item "
|
329 |
"count - System will choose dynamically based on cart"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: includes/discount-base.php:
|
333 |
msgid "Item count"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: includes/discount-base.php:
|
337 |
msgid "Discount for number of item(s) in cart"
|
338 |
msgstr ""
|
339 |
|
340 |
-
#: includes/discount-base.php:
|
341 |
msgid "Discount for number of quantity(ies) in each item"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: includes/discount-base.php:
|
345 |
msgid "Item quantity"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: includes/discount-base.php:
|
349 |
msgid "Search for a products"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: includes/discount-base.php:
|
353 |
msgid "and"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: includes/discount-base.php:
|
357 |
msgid "100% percent"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: includes/discount-base.php:
|
361 |
msgid "Limited percent"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: includes/discount-base.php:
|
365 |
msgid "Percentage"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: includes/discount-base.php:
|
369 |
msgid "as discount"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: includes/discount-base.php:
|
373 |
-
#: view/view-pricing-rules.php:
|
374 |
msgid "Remove"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: includes/discount-base.php:
|
378 |
-
#: view/pricing-rules.php:200 view/view-pricing-rules.php:
|
379 |
msgid "Duplicate"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: includes/discount-base.php:
|
383 |
msgid "none"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: includes/discount-base.php:
|
387 |
msgid "Are you sure to remove this ?"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: includes/discount-base.php:
|
391 |
#: view/pricing-rules.php:160
|
392 |
msgid "Disable"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/discount-base.php:
|
396 |
msgid "Are you sure to remove ?"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: includes/discount-base.php:
|
400 |
msgid "Type"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: includes/discount-base.php:
|
404 |
msgid "Cart Subtotal"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: includes/discount-base.php:
|
408 |
msgid "Subtotal at least"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: includes/discount-base.php:
|
412 |
msgid "Subtotal less than"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: includes/discount-base.php:
|
416 |
msgid "Cart Item Count"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: includes/discount-base.php:
|
420 |
msgid "Number of line items in the cart (not quantity) at least"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: includes/discount-base.php:
|
424 |
msgid "Number of line items in the cart (not quantity) less than"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: includes/discount-base.php:
|
428 |
msgid "Quantity Sum"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: includes/discount-base.php:
|
432 |
#: view/view-cart-rules.php:204
|
433 |
msgid "Total number of quantities in the cart at least"
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: includes/discount-base.php:
|
437 |
#: view/view-cart-rules.php:216
|
438 |
msgid "Total number of quantities in the cart less than"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: includes/discount-base.php:
|
442 |
msgid "Categories in cart"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: includes/discount-base.php:
|
446 |
msgid "Including sub-categories in cart"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/discount-base.php:
|
450 |
msgid "Customer Details (must be logged in)"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/discount-base.php:
|
454 |
#: view/view-cart-rules.php:248
|
455 |
msgid "User in list"
|
456 |
msgstr ""
|
457 |
|
458 |
-
#: includes/discount-base.php:
|
459 |
#: view/view-cart-rules.php:258
|
460 |
msgid "User role in list"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: includes/discount-base.php:
|
464 |
#: view/view-cart-rules.php:268
|
465 |
msgid "Shipping country in list"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: includes/discount-base.php:
|
469 |
msgid "Customer Email"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: includes/discount-base.php:
|
473 |
msgid "Email with TLD (Ege: edu)"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: includes/discount-base.php:
|
477 |
#: view/view-cart-rules.php:290
|
478 |
msgid "Email with Domain (Eg: gmail.com)"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: includes/discount-base.php:
|
482 |
msgid "Customer Billing Details"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: includes/discount-base.php:
|
486 |
#: view/view-cart-rules.php:302
|
487 |
msgid "Billing city"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/discount-base.php:
|
491 |
msgid "Customer Shipping Details"
|
492 |
msgstr ""
|
493 |
|
494 |
-
#: includes/discount-base.php:
|
495 |
#: view/view-cart-rules.php:314
|
496 |
msgid "Shipping state"
|
497 |
msgstr ""
|
498 |
|
499 |
-
#: includes/discount-base.php:
|
500 |
#: view/view-cart-rules.php:324
|
501 |
msgid "Shipping city"
|
502 |
msgstr ""
|
503 |
|
504 |
-
#: includes/discount-base.php:
|
505 |
#: view/view-cart-rules.php:334
|
506 |
msgid "Shipping zip code"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: includes/discount-base.php:
|
510 |
-
#: view/view-pricing-rules.php:
|
511 |
msgid "Purchase History"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: includes/discount-base.php:
|
515 |
-
#: view/view-cart-rules.php:346 view/view-pricing-rules.php:
|
516 |
msgid "Purchased amount"
|
517 |
msgstr ""
|
518 |
|
519 |
-
#: includes/discount-base.php:
|
520 |
-
#: view/view-cart-rules.php:356 view/view-pricing-rules.php:
|
521 |
msgid "Number of previous orders made"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: includes/discount-base.php:
|
525 |
-
#: view/view-cart-rules.php:366 view/view-pricing-rules.php:
|
526 |
msgid "Number of previous orders made with following products"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: includes/discount-base.php:
|
530 |
msgid "Coupon applied"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: includes/discount-base.php:
|
534 |
#: view/view-cart-rules.php:378
|
535 |
msgid "Atleast any one"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/discount-base.php:
|
539 |
#: view/view-cart-rules.php:388
|
540 |
msgid "All selected"
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: includes/discount-base.php:
|
544 |
-
#: view/view-pricing-rules.php:
|
545 |
msgid "Greater than or equal to"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: includes/discount-base.php:
|
549 |
-
#: view/view-pricing-rules.php:
|
550 |
msgid "Less than or equal to"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: includes/discount-base.php:
|
554 |
-
#: view/view-pricing-rules.php:
|
555 |
msgid "and the order status should be"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: includes/discount-base.php:
|
559 |
#: view/cart-rules.php:209 view/pricing-rules.php:144
|
560 |
#: view/pricing-rules.php:239 view/view-cart-rules.php:574
|
561 |
msgid "Action"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: includes/discount-base.php:
|
565 |
#: view/settings_taxonomy.php:21
|
566 |
msgid "Save"
|
567 |
msgstr ""
|
568 |
|
569 |
-
#: includes/discount-base.php:
|
570 |
msgid "Saved Successfully!"
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: includes/discount-base.php:
|
574 |
#: view/view-cart-rules.php:462 view/view-cart-rules.php:482
|
575 |
#: view/view-cart-rules.php:503 view/view-cart-rules.php:552
|
576 |
-
#: view/view-pricing-rules.php:
|
577 |
-
#: view/view-pricing-rules.php:
|
578 |
-
#: view/view-pricing-rules.php:
|
579 |
msgid "None selected"
|
580 |
msgstr ""
|
581 |
|
582 |
-
#: includes/discount-base.php:
|
583 |
msgid "In each category"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: includes/discount-base.php:
|
587 |
-
#: view/settings_price_rules.php:
|
588 |
-
#: view/settings_price_rules.php:
|
589 |
msgid "Show"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: includes/discount-base.php:
|
593 |
msgid "Hide"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: includes/discount-base.php:
|
597 |
msgid "Please select at least one rule"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: includes/discount-base.php:
|
601 |
msgid "Please select an action to apply"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: includes/discount-base.php:
|
605 |
msgid "Are you sure to remove the selected rules"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: includes/discount-base.php:
|
609 |
msgid "Choose product(s)"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: includes/discount-base.php:
|
613 |
msgid "Choose category(ies)"
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: includes/discount-base.php:
|
617 |
msgid "Search for a coupon"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: includes/discount-base.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
621 |
msgid ""
|
622 |
"Auto add all selected products - Automatically added to the cart <br> Same "
|
623 |
"product - get discount in same product <br> Any one cheapest from selected - "
|
@@ -628,92 +639,96 @@ msgid ""
|
|
628 |
"no.of quantities"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: includes/
|
|
|
|
|
|
|
|
|
632 |
msgid "Buy"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: includes/pricing-rules.php:
|
636 |
msgid " less than or equal to "
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: includes/pricing-rules.php:
|
640 |
msgid " Quantity"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: includes/pricing-rules.php:
|
644 |
msgid " Quantity "
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: includes/pricing-rules.php:
|
648 |
msgid " or more Quantity"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: includes/pricing-rules.php:
|
652 |
msgid " any "
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: includes/pricing-rules.php:
|
656 |
msgid " products from "
|
657 |
msgstr ""
|
658 |
|
659 |
-
#: includes/pricing-rules.php:
|
660 |
msgid " in each products"
|
661 |
msgstr ""
|
662 |
|
663 |
-
#: includes/pricing-rules.php:
|
664 |
msgid " and get discount in "
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: includes/pricing-rules.php:
|
668 |
msgid " first "
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: includes/pricing-rules.php:
|
672 |
msgid " quantity of product(s) - "
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: includes/pricing-rules.php:
|
676 |
msgid " after first "
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: includes/pricing-rules.php:
|
680 |
msgid "Category(ies) "
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: includes/pricing-rules.php:
|
684 |
msgid "Get "
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: includes/pricing-rules.php:
|
688 |
#, php-format
|
689 |
msgid "% discount in "
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: includes/pricing-rules.php:
|
693 |
msgid "same product"
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: includes/pricing-rules.php:
|
697 |
msgid "any cheapest one from cart"
|
698 |
msgstr ""
|
699 |
|
700 |
-
#: includes/pricing-rules.php:
|
701 |
msgid "any cheapest one of "
|
702 |
msgstr ""
|
703 |
|
704 |
-
#: includes/pricing-rules.php:
|
705 |
msgid " quantity of any "
|
706 |
msgstr ""
|
707 |
|
708 |
-
#: includes/pricing-rules.php:
|
709 |
msgid " cheapest item "
|
710 |
msgstr ""
|
711 |
|
712 |
-
#: includes/pricing-rules.php:
|
713 |
msgid " quantity of cheapest item "
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: includes/pricing-rules.php:
|
717 |
msgid "from the category "
|
718 |
msgstr ""
|
719 |
|
@@ -795,83 +810,127 @@ msgstr ""
|
|
795 |
msgid "Delete"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: view/documentation.php:
|
|
|
|
|
|
|
|
|
799 |
msgid "Getting started"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: view/documentation.php:
|
803 |
msgid "Welcome onboard"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: view/documentation.php:
|
807 |
msgid "License Key activation"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: view/documentation.php:
|
811 |
msgid "Learn how to obtain the license key and activate it"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: view/documentation.php:
|
815 |
msgid "Version Updates!"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: view/documentation.php:
|
819 |
msgid "Learn how to update to latest versions"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: view/documentation.php:
|
823 |
-
msgid "
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: view/documentation.php:
|
827 |
-
msgid "
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: view/documentation.php:
|
831 |
-
msgid "
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: view/documentation.php:
|
835 |
-
msgid "
|
|
|
|
|
|
|
|
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: view/documentation.php:
|
839 |
msgid "How to create a perfect BOGO discount rule in WooCommerce"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: view/documentation.php:
|
843 |
msgid ""
|
844 |
"Buy One Get One deals can be simple to complex. Learn how to get them "
|
845 |
"working correct in your online store"
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: view/documentation.php:
|
849 |
msgid "User Role based discount rules"
|
850 |
msgstr ""
|
851 |
|
852 |
-
#: view/documentation.php:
|
853 |
msgid ""
|
854 |
"Learn how to create user role based / customer group based discount in "
|
855 |
"WooCommerce"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: view/documentation.php:
|
859 |
-
msgid "
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: view/documentation.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
863 |
msgid ""
|
864 |
"Apply the dynamic discount rules after the customer enters a valid coupon "
|
865 |
"code"
|
866 |
msgstr ""
|
867 |
|
868 |
-
#: view/documentation.php:
|
869 |
-
msgid "
|
870 |
msgstr ""
|
871 |
|
872 |
-
#: view/documentation.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
873 |
msgid ""
|
874 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
875 |
msgstr ""
|
876 |
|
877 |
#: view/includes/cart-menu.php:9 view/includes/sub-menu.php:9
|
@@ -886,7 +945,7 @@ msgstr ""
|
|
886 |
|
887 |
#: view/includes/cart-menu.php:13 view/includes/sub-menu.php:13
|
888 |
#: view/template/discount-table.php:27 view/view-cart-rules.php:592
|
889 |
-
#: view/view-pricing-rules.php:
|
890 |
msgid "Discount"
|
891 |
msgstr ""
|
892 |
|
@@ -907,8 +966,12 @@ msgid ""
|
|
907 |
"Discount Rules might get conflict."
|
908 |
msgstr ""
|
909 |
|
910 |
-
#: view/includes/menu.php:
|
911 |
-
msgid "
|
|
|
|
|
|
|
|
|
912 |
msgstr ""
|
913 |
|
914 |
#: view/includes/menu.php:17
|
@@ -995,10 +1058,10 @@ msgstr ""
|
|
995 |
msgid "Enable free shipping option"
|
996 |
msgstr ""
|
997 |
|
998 |
-
#: view/settings_cart_rules.php:92 view/settings_price_rules.php:
|
999 |
-
#: view/view-pricing-rules.php:
|
1000 |
-
#: view/view-pricing-rules.php:
|
1001 |
-
#: view/view-pricing-rules.php:
|
1002 |
msgid "Supported in PRO version"
|
1003 |
msgstr ""
|
1004 |
|
@@ -1053,14 +1116,14 @@ msgstr ""
|
|
1053 |
#: view/settings_general.php:57 view/settings_general.php:74
|
1054 |
#: view/settings_general.php:108 view/settings_performance.php:21
|
1055 |
#: view/settings_price_rules.php:86 view/settings_price_rules.php:98
|
1056 |
-
#: view/settings_price_rules.php:
|
1057 |
msgid "Yes"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
#: view/settings_general.php:58 view/settings_general.php:75
|
1061 |
#: view/settings_general.php:109 view/settings_performance.php:22
|
1062 |
#: view/settings_price_rules.php:87 view/settings_price_rules.php:99
|
1063 |
-
#: view/settings_price_rules.php:
|
1064 |
msgid "No"
|
1065 |
msgstr ""
|
1066 |
|
@@ -1158,102 +1221,108 @@ msgid ""
|
|
1158 |
msgstr ""
|
1159 |
|
1160 |
#: view/settings_price_rules.php:93
|
|
|
|
|
|
|
|
|
|
|
|
|
1161 |
msgid "Include variants when just parent products are chosen in the rules"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
-
#: view/settings_price_rules.php:
|
1165 |
msgid "Show Price discount on product pages :"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: view/settings_price_rules.php:
|
1169 |
-
#: view/settings_price_rules.php:
|
1170 |
-
#: view/settings_price_rules.php:
|
1171 |
msgid "Don't Show"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
-
#: view/settings_price_rules.php:
|
1175 |
msgid ""
|
1176 |
"Show a crossed-out original price along with discounted price at line items "
|
1177 |
"in cart"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: view/settings_price_rules.php:
|
1181 |
msgid "Discount Table :"
|
1182 |
msgstr ""
|
1183 |
|
1184 |
-
#: view/settings_price_rules.php:
|
1185 |
msgid "Default layout"
|
1186 |
msgstr ""
|
1187 |
|
1188 |
-
#: view/settings_price_rules.php:
|
1189 |
msgid "Advance layout"
|
1190 |
msgstr ""
|
1191 |
|
1192 |
-
#: view/settings_price_rules.php:
|
1193 |
msgid "Table placement:"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
-
#: view/settings_price_rules.php:
|
1197 |
msgid "Before cart form"
|
1198 |
msgstr ""
|
1199 |
|
1200 |
-
#: view/settings_price_rules.php:
|
1201 |
msgid "After cart form"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
-
#: view/settings_price_rules.php:
|
1205 |
msgid "Table header :"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
#: view/settings_price_rules.php:
|
1209 |
msgid "Title column on table :"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
-
#: view/settings_price_rules.php:
|
1213 |
msgid "Range column on table :"
|
1214 |
msgstr ""
|
1215 |
|
1216 |
-
#: view/settings_price_rules.php:
|
1217 |
msgid "Discount column on table :"
|
1218 |
msgstr ""
|
1219 |
|
1220 |
-
#: view/settings_price_rules.php:
|
1221 |
msgid "Show a Sale badge on product pages :"
|
1222 |
msgstr ""
|
1223 |
|
1224 |
-
#: view/settings_price_rules.php:
|
1225 |
msgid "Do not show"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
-
#: view/settings_price_rules.php:
|
1229 |
msgid "Show only after a rule condition is matched exactly"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
-
#: view/settings_price_rules.php:
|
1233 |
msgid ""
|
1234 |
"Show on products that are covered under any price based discount rule in the "
|
1235 |
"plugin"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: view/settings_price_rules.php:
|
1239 |
msgid "Do you want to customize the sale badge?"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
-
#: view/settings_price_rules.php:
|
1243 |
msgid "Yes, I would like to customize the sale badge"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
-
#: view/settings_price_rules.php:
|
1247 |
msgid "Sale badge content (TIP: You can use HTML inside)"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
-
#: view/settings_price_rules.php:
|
1251 |
msgid ""
|
1252 |
"IMPORTANT NOTE: This customized sale badge will be applicable only for "
|
1253 |
"products that are part of the discount rules configured in this plugin"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
-
#: view/settings_price_rules.php:
|
1257 |
msgid "Eg:"
|
1258 |
msgstr ""
|
1259 |
|
@@ -1350,7 +1419,7 @@ msgstr ""
|
|
1350 |
msgid "Priority :"
|
1351 |
msgstr ""
|
1352 |
|
1353 |
-
#: view/view-cart-rules.php:85
|
1354 |
msgid ""
|
1355 |
"The Simple Ranking concept to said, which one is going to execute first and "
|
1356 |
"so on."
|
@@ -1361,28 +1430,28 @@ msgid "Rule Name"
|
|
1361 |
msgstr ""
|
1362 |
|
1363 |
#: view/view-cart-rules.php:99 view/view-cart-rules.php:111
|
1364 |
-
#: view/view-pricing-rules.php:
|
1365 |
msgid "Rule Descriptions."
|
1366 |
msgstr ""
|
1367 |
|
1368 |
-
#: view/view-cart-rules.php:104 view/view-pricing-rules.php:
|
1369 |
msgid "ex. Standard Rule."
|
1370 |
msgstr ""
|
1371 |
|
1372 |
-
#: view/view-cart-rules.php:109 view/view-pricing-rules.php:
|
1373 |
msgid "Rule Description"
|
1374 |
msgstr ""
|
1375 |
|
1376 |
-
#: view/view-cart-rules.php:120 view/view-pricing-rules.php:
|
1377 |
msgid "Validity"
|
1378 |
msgstr ""
|
1379 |
|
1380 |
-
#: view/view-cart-rules.php:121 view/view-pricing-rules.php:
|
1381 |
msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
|
1382 |
msgstr ""
|
1383 |
|
1384 |
-
#: view/view-cart-rules.php:134 view/view-pricing-rules.php:
|
1385 |
-
#: view/view-pricing-rules.php:
|
1386 |
msgid "From"
|
1387 |
msgstr ""
|
1388 |
|
@@ -1390,13 +1459,13 @@ msgstr ""
|
|
1390 |
msgid "To"
|
1391 |
msgstr ""
|
1392 |
|
1393 |
-
#: view/view-cart-rules.php:139 view/view-pricing-rules.php:
|
1394 |
#, php-format
|
1395 |
msgid "Current date and time: %s"
|
1396 |
msgstr ""
|
1397 |
|
1398 |
#: view/view-cart-rules.php:144 view/view-cart-rules.php:586
|
1399 |
-
#: view/view-pricing-rules.php:
|
1400 |
msgid "Next"
|
1401 |
msgstr ""
|
1402 |
|
@@ -1417,7 +1486,7 @@ msgid "Email with TLD (Eg: edu)"
|
|
1417 |
msgstr ""
|
1418 |
|
1419 |
#: view/view-cart-rules.php:585 view/view-cart-rules.php:682
|
1420 |
-
#: view/view-pricing-rules.php:
|
1421 |
msgid "Previous"
|
1422 |
msgstr ""
|
1423 |
|
@@ -1457,7 +1526,16 @@ msgstr ""
|
|
1457 |
msgid "Edit Price Rule"
|
1458 |
msgstr ""
|
1459 |
|
1460 |
-
#: view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1461 |
msgid "Method"
|
1462 |
msgstr ""
|
1463 |
|
@@ -1465,246 +1543,246 @@ msgstr ""
|
|
1465 |
msgid "Method to Apply."
|
1466 |
msgstr ""
|
1467 |
|
1468 |
-
#: view/view-pricing-rules.php:
|
1469 |
msgid ""
|
1470 |
"Quantity / category / product / user role based discounts and BOGO deals "
|
1471 |
msgstr ""
|
1472 |
|
1473 |
-
#: view/view-pricing-rules.php:
|
1474 |
msgid "Dependent / conditional based discount (by individual product)"
|
1475 |
msgstr ""
|
1476 |
|
1477 |
-
#: view/view-pricing-rules.php:
|
1478 |
msgid "To - Leave Empty if No Expiry"
|
1479 |
msgstr ""
|
1480 |
|
1481 |
-
#: view/view-pricing-rules.php:
|
1482 |
msgid "Format for advanced table display option (see plugin settings)"
|
1483 |
msgstr ""
|
1484 |
|
1485 |
-
#: view/view-pricing-rules.php:
|
1486 |
msgid "Used when advanced table display option is set in the plugin settings"
|
1487 |
msgstr ""
|
1488 |
|
1489 |
-
#: view/view-pricing-rules.php:
|
1490 |
msgid "Buy {{min_quantity}} or more quantity and get {{discount}} as discount"
|
1491 |
msgstr ""
|
1492 |
|
1493 |
-
#: view/view-pricing-rules.php:
|
1494 |
msgid "{{title}} -> Title"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
-
#: view/view-pricing-rules.php:
|
1498 |
msgid "{{description}} -> Description"
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: view/view-pricing-rules.php:
|
1502 |
msgid "{{min_quantity}} -> Minimum quantity"
|
1503 |
msgstr ""
|
1504 |
|
1505 |
-
#: view/view-pricing-rules.php:
|
1506 |
msgid "{{max_quantity}} -> Maximum quantity"
|
1507 |
msgstr ""
|
1508 |
|
1509 |
-
#: view/view-pricing-rules.php:
|
1510 |
msgid "{{discount}} -> Discount"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
-
#: view/view-pricing-rules.php:
|
1514 |
msgid "{{discounted_price}} -> Discounted price"
|
1515 |
msgstr ""
|
1516 |
|
1517 |
-
#: view/view-pricing-rules.php:
|
1518 |
msgid "{{condition}} -> Rule condition text"
|
1519 |
msgstr ""
|
1520 |
|
1521 |
-
#: view/view-pricing-rules.php:
|
1522 |
msgid "Discount Conditions"
|
1523 |
msgstr ""
|
1524 |
|
1525 |
-
#: view/view-pricing-rules.php:
|
1526 |
msgid "Apply To"
|
1527 |
msgstr ""
|
1528 |
|
1529 |
-
#: view/view-pricing-rules.php:
|
1530 |
msgid "All products"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
-
#: view/view-pricing-rules.php:
|
1534 |
msgid "Specific products"
|
1535 |
msgstr ""
|
1536 |
|
1537 |
-
#: view/view-pricing-rules.php:
|
1538 |
msgid "Specific categories"
|
1539 |
msgstr ""
|
1540 |
|
1541 |
-
#: view/view-pricing-rules.php:
|
1542 |
msgid "Specific attributes"
|
1543 |
msgstr ""
|
1544 |
|
1545 |
-
#: view/view-pricing-rules.php:
|
1546 |
msgid ""
|
1547 |
"Check this box to count item quantities in cart cumulatively across products"
|
1548 |
msgstr ""
|
1549 |
|
1550 |
-
#: view/view-pricing-rules.php:
|
1551 |
msgid "Check this box to count quantities cumulatively across category(ies)"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
-
#: view/view-pricing-rules.php:
|
1555 |
msgid "Check this box to apply child category(ies)"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
-
#: view/view-pricing-rules.php:
|
1559 |
msgid "Check this box to count quantities cumulatively across attribute"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
-
#: view/view-pricing-rules.php:
|
1563 |
msgid "Exclude products"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
-
#: view/view-pricing-rules.php:
|
1567 |
msgid "Exclude sale items"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
-
#: view/view-pricing-rules.php:
|
1571 |
msgid "Check this box if the rule should not apply to items on sale."
|
1572 |
msgstr ""
|
1573 |
|
1574 |
-
#: view/view-pricing-rules.php:
|
1575 |
msgid "Customers"
|
1576 |
msgstr ""
|
1577 |
|
1578 |
-
#: view/view-pricing-rules.php:
|
1579 |
msgid "All"
|
1580 |
msgstr ""
|
1581 |
|
1582 |
-
#: view/view-pricing-rules.php:
|
1583 |
msgid "Only Given"
|
1584 |
msgstr ""
|
1585 |
|
1586 |
-
#: view/view-pricing-rules.php:
|
1587 |
msgid "User roles"
|
1588 |
msgstr ""
|
1589 |
|
1590 |
-
#: view/view-pricing-rules.php:
|
1591 |
-
#: view/view-pricing-rules.php:
|
1592 |
msgid "Do not use"
|
1593 |
msgstr ""
|
1594 |
|
1595 |
-
#: view/view-pricing-rules.php:
|
1596 |
msgid "Coupon"
|
1597 |
msgstr ""
|
1598 |
|
1599 |
-
#: view/view-pricing-rules.php:
|
1600 |
msgid "Apply if any one coupon applied"
|
1601 |
msgstr ""
|
1602 |
|
1603 |
-
#: view/view-pricing-rules.php:
|
1604 |
msgid "Apply if all coupon applied"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
-
#: view/view-pricing-rules.php:
|
1608 |
msgid "Make sure you have created the coupon already"
|
1609 |
msgstr ""
|
1610 |
|
1611 |
-
#: view/view-pricing-rules.php:
|
1612 |
msgid "Subtotal"
|
1613 |
msgstr ""
|
1614 |
|
1615 |
-
#: view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
1616 |
msgid "Subtotal atleast"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
-
#: view/view-pricing-rules.php:
|
1620 |
msgid "Enter the amount"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
-
#: view/view-pricing-rules.php:
|
1624 |
msgid "Supported in WooCommerce 3.x"
|
1625 |
msgstr ""
|
1626 |
|
1627 |
-
#: view/view-pricing-rules.php:
|
1628 |
msgid "Any"
|
1629 |
msgstr ""
|
1630 |
|
1631 |
-
#: view/view-pricing-rules.php:
|
1632 |
msgid "Each"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
-
#: view/view-pricing-rules.php:569
|
1636 |
-
msgid "Combine"
|
1637 |
-
msgstr ""
|
1638 |
-
|
1639 |
#: view/view-pricing-rules.php:572
|
1640 |
-
msgid "
|
1641 |
msgstr ""
|
1642 |
|
1643 |
-
#: view/view-pricing-rules.php:
|
1644 |
-
msgid "
|
1645 |
msgstr ""
|
1646 |
|
1647 |
-
#: view/view-pricing-rules.php:
|
1648 |
msgid "Equal"
|
1649 |
msgstr ""
|
1650 |
|
1651 |
-
#: view/view-pricing-rules.php:
|
1652 |
-
#: view/view-pricing-rules.php:
|
1653 |
msgid "Quantity"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
-
#: view/view-pricing-rules.php:
|
1657 |
msgid "to"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
-
#: view/view-pricing-rules.php:
|
1661 |
msgid "Product(s) from"
|
1662 |
msgstr ""
|
1663 |
|
1664 |
-
#: view/view-pricing-rules.php:
|
1665 |
msgid "Apply discount in product(s)"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
-
#: view/view-pricing-rules.php:
|
1669 |
msgid "Apply discount in category(ies)"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
-
#: view/view-pricing-rules.php:
|
1673 |
msgid "and get discount in "
|
1674 |
msgstr ""
|
1675 |
|
1676 |
-
#: view/view-pricing-rules.php:
|
1677 |
msgid "First quantity(s)"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
-
#: view/view-pricing-rules.php:
|
1681 |
msgid "Skip first quantity(s)"
|
1682 |
msgstr ""
|
1683 |
|
1684 |
-
#: view/view-pricing-rules.php:
|
1685 |
msgid " Product(s) "
|
1686 |
msgstr ""
|
1687 |
|
1688 |
-
#: view/view-pricing-rules.php:
|
1689 |
msgid "Category(ies)"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
-
#: view/view-pricing-rules.php:
|
1693 |
msgid "Guide for product dependent rules"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
-
#: view/view-pricing-rules.php:
|
1697 |
msgid "Add New Range"
|
1698 |
msgstr ""
|
1699 |
|
1700 |
-
#: view/view-pricing-rules.php:
|
1701 |
msgid "Guide to create perfect BOGO rules"
|
1702 |
msgstr ""
|
1703 |
|
1704 |
-
#: view/view-pricing-rules.php:
|
1705 |
msgid "Percent"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
-
#: view/view-pricing-rules.php:
|
1709 |
msgid "Fixed"
|
1710 |
msgstr ""
|
11 |
"Language: en\n"
|
12 |
"X-Generator: Poedit 1.8.7.1\n"
|
13 |
|
14 |
+
#: helper/general-helper.php:48
|
15 |
msgid "Guest"
|
16 |
msgstr ""
|
17 |
|
18 |
+
#: helper/general-helper.php:586
|
19 |
msgid "Start date and time is set in the future date"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: helper/general-helper.php:589
|
23 |
msgid "Validity expired"
|
24 |
msgstr ""
|
25 |
|
26 |
+
#: helper/general-helper.php:606
|
27 |
msgid "Will run in future"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: helper/general-helper.php:609
|
31 |
msgid "Not running - validity expired"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: helper/general-helper.php:626
|
35 |
msgid "Running"
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: helper/general-helper.php:631
|
39 |
msgid "Your server current date and time: "
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: helper/general-helper.php:753
|
43 |
msgid "Read Docs"
|
44 |
msgstr ""
|
45 |
|
103 |
msgid "License key seems to be Invalid. Please enter a valid license key"
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: helper/woo-function.php:441 helper/woo-function.php:451
|
107 |
msgid "Search for a product…"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: helper/woo-function.php:484 helper/woo-function.php:496
|
111 |
msgid "Search for a user…"
|
112 |
msgstr ""
|
113 |
|
119 |
msgid "Custom Shipping Method for Woocommerce Discount Rules"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: includes/advanced/free_shipping_method.php:68 view/documentation.php:63
|
123 |
#: view/settings_cart_rules.php:126
|
124 |
msgid "Free Shipping"
|
125 |
msgstr ""
|
126 |
|
127 |
#: includes/advanced/free_shipping_method.php:73
|
128 |
+
#: includes/discount-base.php:1043 view/cart-rules.php:133
|
129 |
#: view/pricing-rules.php:163 view/settings_promotion.php:65
|
130 |
#: view/settings_promotion.php:100
|
131 |
msgid "Enable"
|
143 |
msgid "Title to be display on site"
|
144 |
msgstr ""
|
145 |
|
146 |
+
#: includes/discount-base.php:194 view/cart-rules.php:147
|
147 |
#: view/pricing-rules.php:177
|
148 |
msgid "Active"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: includes/discount-base.php:196 view/cart-rules.php:149
|
152 |
#: view/pricing-rules.php:179 view/settings_cart_rules.php:95
|
153 |
+
#: view/settings_cart_rules.php:102 view/settings_price_rules.php:163
|
154 |
#: view/settings_promotion.php:22 view/settings_promotion.php:62
|
155 |
#: view/settings_promotion.php:97
|
156 |
msgid "Disabled"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: includes/discount-base.php:503
|
160 |
msgid "Cache cleared successfully"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: includes/discount-base.php:505
|
164 |
msgid "Failed to clear cache"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: includes/discount-base.php:616 includes/discount-base.php:651
|
168 |
msgid "Failed to do action"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: includes/discount-base.php:655
|
172 |
msgid "Disabled successfully"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: includes/discount-base.php:658
|
176 |
msgid "Deleted successfully"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: includes/discount-base.php:661
|
180 |
msgid "Enabled successfully"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: includes/discount-base.php:681 includes/discount-base.php:682
|
184 |
+
#: includes/discount-base.php:699
|
185 |
msgid "copy"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: includes/discount-base.php:707
|
189 |
msgid "Duplicate rule created successfully"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: includes/discount-base.php:711
|
193 |
msgid "Failed to create duplicate rule"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/discount-base.php:998
|
197 |
msgid "Please fill this field"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: includes/discount-base.php:999
|
201 |
msgid "Please Enter the Rule Name to Create / Save."
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: includes/discount-base.php:1000
|
205 |
msgid "Saving..."
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: includes/discount-base.php:1001 view/view-cart-rules.php:54
|
209 |
#: view/view-pricing-rules.php:37
|
210 |
msgid "Save Rule"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: includes/discount-base.php:1002
|
214 |
msgid "Please enter a Key"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: includes/discount-base.php:1003 view/view-pricing-rules.php:657
|
218 |
msgid "Min Quantity"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: includes/discount-base.php:1004 view/view-pricing-rules.php:664
|
222 |
msgid "Max Quantity"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: includes/discount-base.php:1005 view/view-cart-rules.php:91
|
226 |
+
#: view/view-pricing-rules.php:74 view/view-pricing-rules.php:662
|
227 |
+
#: view/view-pricing-rules.php:735 view/view-pricing-rules.php:752
|
228 |
+
#: view/view-pricing-rules.php:759
|
229 |
msgid "ex. 1"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: includes/discount-base.php:1006 view/view-pricing-rules.php:797
|
233 |
msgid "ex. 10"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: includes/discount-base.php:1007 view/view-pricing-rules.php:669
|
237 |
+
#: view/view-pricing-rules.php:711
|
238 |
msgid "ex. 50"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/discount-base.php:1008
|
242 |
msgid "Search for a user"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: includes/discount-base.php:1009 view/view-pricing-rules.php:670
|
246 |
msgid "Adjustment Type"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/discount-base.php:1010 view/view-pricing-rules.php:786
|
250 |
msgid "Discount percentage"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: includes/discount-base.php:1011 view/view-cart-rules.php:612
|
254 |
+
#: view/view-pricing-rules.php:676
|
255 |
msgid "Percentage Discount"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: includes/discount-base.php:1012 view/view-cart-rules.php:618
|
259 |
+
#: view/view-cart-rules.php:620 view/view-pricing-rules.php:684
|
260 |
+
#: view/view-pricing-rules.php:686
|
261 |
msgid "Price Discount"
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: includes/discount-base.php:1013 view/view-pricing-rules.php:694
|
265 |
+
#: view/view-pricing-rules.php:696
|
266 |
msgid "BOGO Product Discount"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: includes/discount-base.php:1014
|
270 |
msgid "Product Discount - Not support for subtotal based rule"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: includes/discount-base.php:1015 view/view-cart-rules.php:398
|
274 |
+
#: view/view-pricing-rules.php:706 view/view-pricing-rules.php:826
|
275 |
msgid "Value"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: includes/discount-base.php:1016 view/view-pricing-rules.php:718
|
279 |
msgid "receive discount for"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: includes/discount-base.php:1017 view/view-pricing-rules.php:720
|
283 |
msgid "Auto add all selected products"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: includes/discount-base.php:1018 view/view-pricing-rules.php:721
|
287 |
msgid "Same product"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/discount-base.php:1019 view/view-pricing-rules.php:722
|
291 |
msgid "Any one cheapest from selected"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/discount-base.php:1020 view/view-pricing-rules.php:723
|
295 |
msgid "Any one cheapest from all products"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: includes/discount-base.php:1021 view/view-pricing-rules.php:724
|
299 |
msgid "Cheapest in cart - selected category(ies)"
|
300 |
msgstr ""
|
301 |
|
302 |
+
#: includes/discount-base.php:1022 view/view-pricing-rules.php:725
|
303 |
msgid "Cheapest in cart - selected item(s)"
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: includes/discount-base.php:1023 view/view-pricing-rules.php:726
|
307 |
msgid "Cheapest among all items in cart"
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: includes/discount-base.php:1024 view/view-pricing-rules.php:730
|
311 |
msgid "Free quantity"
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: includes/discount-base.php:1025 view/view-pricing-rules.php:730
|
315 |
msgid "Number of quantity(ies) in each selected product(s)"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: includes/discount-base.php:1026 view/view-pricing-rules.php:744
|
319 |
msgid "Fixed item count (not recommended)"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: includes/discount-base.php:1027 view/view-pricing-rules.php:743
|
323 |
msgid "Dynamic item count"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: includes/discount-base.php:1028 view/view-pricing-rules.php:746
|
327 |
msgid ""
|
328 |
"Fixed item count - You need to provide item count manually. Dynamic item "
|
329 |
"count - System will choose dynamically based on cart"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: includes/discount-base.php:1029 view/view-pricing-rules.php:747
|
333 |
msgid "Item count"
|
334 |
msgstr ""
|
335 |
|
336 |
+
#: includes/discount-base.php:1030 view/view-pricing-rules.php:747
|
337 |
msgid "Discount for number of item(s) in cart"
|
338 |
msgstr ""
|
339 |
|
340 |
+
#: includes/discount-base.php:1031 view/view-pricing-rules.php:754
|
341 |
msgid "Discount for number of quantity(ies) in each item"
|
342 |
msgstr ""
|
343 |
|
344 |
+
#: includes/discount-base.php:1032 view/view-pricing-rules.php:754
|
345 |
msgid "Item quantity"
|
346 |
msgstr ""
|
347 |
|
348 |
+
#: includes/discount-base.php:1033
|
349 |
msgid "Search for a products"
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: includes/discount-base.php:1034
|
353 |
msgid "and"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: includes/discount-base.php:1035 view/view-pricing-rules.php:788
|
357 |
msgid "100% percent"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: includes/discount-base.php:1036 view/view-pricing-rules.php:789
|
361 |
msgid "Limited percent"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: includes/discount-base.php:1037
|
365 |
msgid "Percentage"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: includes/discount-base.php:1038
|
369 |
msgid "as discount"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: includes/discount-base.php:1039 view/view-cart-rules.php:575
|
373 |
+
#: view/view-pricing-rules.php:803
|
374 |
msgid "Remove"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/discount-base.php:1040 view/cart-rules.php:170
|
378 |
+
#: view/pricing-rules.php:200 view/view-pricing-rules.php:806
|
379 |
msgid "Duplicate"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: includes/discount-base.php:1041
|
383 |
msgid "none"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: includes/discount-base.php:1042
|
387 |
msgid "Are you sure to remove this ?"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: includes/discount-base.php:1044 view/cart-rules.php:130
|
391 |
#: view/pricing-rules.php:160
|
392 |
msgid "Disable"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/discount-base.php:1045
|
396 |
msgid "Are you sure to remove ?"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: includes/discount-base.php:1046 view/view-cart-rules.php:171
|
400 |
msgid "Type"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: includes/discount-base.php:1047 view/view-cart-rules.php:175
|
404 |
msgid "Cart Subtotal"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: includes/discount-base.php:1048 view/view-cart-rules.php:178
|
408 |
msgid "Subtotal at least"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: includes/discount-base.php:1049 view/view-cart-rules.php:182
|
412 |
msgid "Subtotal less than"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: includes/discount-base.php:1050 view/view-cart-rules.php:185
|
416 |
msgid "Cart Item Count"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: includes/discount-base.php:1051 view/view-cart-rules.php:188
|
420 |
msgid "Number of line items in the cart (not quantity) at least"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: includes/discount-base.php:1052 view/view-cart-rules.php:192
|
424 |
msgid "Number of line items in the cart (not quantity) less than"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: includes/discount-base.php:1053 view/view-cart-rules.php:195
|
428 |
msgid "Quantity Sum"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: includes/discount-base.php:1054 view/view-cart-rules.php:201
|
432 |
#: view/view-cart-rules.php:204
|
433 |
msgid "Total number of quantities in the cart at least"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: includes/discount-base.php:1055 view/view-cart-rules.php:213
|
437 |
#: view/view-cart-rules.php:216
|
438 |
msgid "Total number of quantities in the cart less than"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: includes/discount-base.php:1056 view/view-cart-rules.php:225
|
442 |
msgid "Categories in cart"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: includes/discount-base.php:1057 view/view-cart-rules.php:231
|
446 |
msgid "Including sub-categories in cart"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: includes/discount-base.php:1058 view/view-cart-rules.php:240
|
450 |
msgid "Customer Details (must be logged in)"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: includes/discount-base.php:1059 view/view-cart-rules.php:246
|
454 |
#: view/view-cart-rules.php:248
|
455 |
msgid "User in list"
|
456 |
msgstr ""
|
457 |
|
458 |
+
#: includes/discount-base.php:1060 view/view-cart-rules.php:256
|
459 |
#: view/view-cart-rules.php:258
|
460 |
msgid "User role in list"
|
461 |
msgstr ""
|
462 |
|
463 |
+
#: includes/discount-base.php:1061 view/view-cart-rules.php:266
|
464 |
#: view/view-cart-rules.php:268
|
465 |
msgid "Shipping country in list"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: includes/discount-base.php:1062 view/view-cart-rules.php:272
|
469 |
msgid "Customer Email"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: includes/discount-base.php:1063
|
473 |
msgid "Email with TLD (Ege: edu)"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: includes/discount-base.php:1064 view/view-cart-rules.php:288
|
477 |
#: view/view-cart-rules.php:290
|
478 |
msgid "Email with Domain (Eg: gmail.com)"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: includes/discount-base.php:1065 view/view-cart-rules.php:294
|
482 |
msgid "Customer Billing Details"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/discount-base.php:1066 view/view-cart-rules.php:300
|
486 |
#: view/view-cart-rules.php:302
|
487 |
msgid "Billing city"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/discount-base.php:1067 view/view-cart-rules.php:306
|
491 |
msgid "Customer Shipping Details"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: includes/discount-base.php:1068 view/view-cart-rules.php:312
|
495 |
#: view/view-cart-rules.php:314
|
496 |
msgid "Shipping state"
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: includes/discount-base.php:1069 view/view-cart-rules.php:322
|
500 |
#: view/view-cart-rules.php:324
|
501 |
msgid "Shipping city"
|
502 |
msgstr ""
|
503 |
|
504 |
+
#: includes/discount-base.php:1070 view/view-cart-rules.php:332
|
505 |
#: view/view-cart-rules.php:334
|
506 |
msgid "Shipping zip code"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: includes/discount-base.php:1071 view/view-cart-rules.php:338
|
510 |
+
#: view/view-pricing-rules.php:486
|
511 |
msgid "Purchase History"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: includes/discount-base.php:1072 view/view-cart-rules.php:344
|
515 |
+
#: view/view-cart-rules.php:346 view/view-pricing-rules.php:494
|
516 |
msgid "Purchased amount"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: includes/discount-base.php:1073 view/view-cart-rules.php:354
|
520 |
+
#: view/view-cart-rules.php:356 view/view-pricing-rules.php:495
|
521 |
msgid "Number of previous orders made"
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: includes/discount-base.php:1074 view/view-cart-rules.php:364
|
525 |
+
#: view/view-cart-rules.php:366 view/view-pricing-rules.php:496
|
526 |
msgid "Number of previous orders made with following products"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: includes/discount-base.php:1075 view/view-cart-rules.php:370
|
530 |
msgid "Coupon applied"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: includes/discount-base.php:1076 view/view-cart-rules.php:376
|
534 |
#: view/view-cart-rules.php:378
|
535 |
msgid "Atleast any one"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/discount-base.php:1077 view/view-cart-rules.php:386
|
539 |
#: view/view-cart-rules.php:388
|
540 |
msgid "All selected"
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: includes/discount-base.php:1078 view/view-cart-rules.php:544
|
544 |
+
#: view/view-pricing-rules.php:531
|
545 |
msgid "Greater than or equal to"
|
546 |
msgstr ""
|
547 |
|
548 |
+
#: includes/discount-base.php:1079 view/view-cart-rules.php:545
|
549 |
+
#: view/view-pricing-rules.php:532 view/view-pricing-rules.php:576
|
550 |
msgid "Less than or equal to"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: includes/discount-base.php:1080 view/view-cart-rules.php:547
|
554 |
+
#: view/view-pricing-rules.php:535
|
555 |
msgid "and the order status should be"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: includes/discount-base.php:1081 view/cart-rules.php:114
|
559 |
#: view/cart-rules.php:209 view/pricing-rules.php:144
|
560 |
#: view/pricing-rules.php:239 view/view-cart-rules.php:574
|
561 |
msgid "Action"
|
562 |
msgstr ""
|
563 |
|
564 |
+
#: includes/discount-base.php:1082 view/settings.php:21
|
565 |
#: view/settings_taxonomy.php:21
|
566 |
msgid "Save"
|
567 |
msgstr ""
|
568 |
|
569 |
+
#: includes/discount-base.php:1083
|
570 |
msgid "Saved Successfully!"
|
571 |
msgstr ""
|
572 |
|
573 |
+
#: includes/discount-base.php:1084 view/view-cart-rules.php:427
|
574 |
#: view/view-cart-rules.php:462 view/view-cart-rules.php:482
|
575 |
#: view/view-cart-rules.php:503 view/view-cart-rules.php:552
|
576 |
+
#: view/view-pricing-rules.php:235 view/view-pricing-rules.php:251
|
577 |
+
#: view/view-pricing-rules.php:543 view/view-pricing-rules.php:612
|
578 |
+
#: view/view-pricing-rules.php:774
|
579 |
msgid "None selected"
|
580 |
msgstr ""
|
581 |
|
582 |
+
#: includes/discount-base.php:1085 view/view-cart-rules.php:237
|
583 |
msgid "In each category"
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: includes/discount-base.php:1086 view/settings_price_rules.php:128
|
587 |
+
#: view/settings_price_rules.php:202 view/settings_price_rules.php:220
|
588 |
+
#: view/settings_price_rules.php:238 view/settings_price_rules.php:256
|
589 |
msgid "Show"
|
590 |
msgstr ""
|
591 |
|
592 |
+
#: includes/discount-base.php:1087 view/template/sidebar.php:12
|
593 |
msgid "Hide"
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: includes/discount-base.php:1088
|
597 |
msgid "Please select at least one rule"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: includes/discount-base.php:1089
|
601 |
msgid "Please select an action to apply"
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: includes/discount-base.php:1090
|
605 |
msgid "Are you sure to remove the selected rules"
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: includes/discount-base.php:1091 view/view-pricing-rules.php:763
|
609 |
msgid "Choose product(s)"
|
610 |
msgstr ""
|
611 |
|
612 |
+
#: includes/discount-base.php:1092 view/view-pricing-rules.php:773
|
613 |
msgid "Choose category(ies)"
|
614 |
msgstr ""
|
615 |
|
616 |
+
#: includes/discount-base.php:1093
|
617 |
msgid "Search for a coupon"
|
618 |
msgstr ""
|
619 |
|
620 |
+
#: includes/discount-base.php:1094 view/view-pricing-rules.php:702
|
621 |
+
#: view/view-pricing-rules.php:797
|
622 |
+
#, php-format
|
623 |
+
msgid "Enter only numeric values. Eg: <b>50</b> for 50% discount"
|
624 |
+
msgstr ""
|
625 |
+
|
626 |
+
#: includes/discount-base.php:1095 view/view-pricing-rules.php:703
|
627 |
+
#, php-format
|
628 |
+
msgid "Enter the discount price. Eg: <b>10</b> for %s discount"
|
629 |
+
msgstr ""
|
630 |
+
|
631 |
+
#: includes/discount-base.php:1096 view/view-pricing-rules.php:728
|
632 |
msgid ""
|
633 |
"Auto add all selected products - Automatically added to the cart <br> Same "
|
634 |
"product - get discount in same product <br> Any one cheapest from selected - "
|
639 |
"no.of quantities"
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: includes/discount-base.php:1174 view/includes/menu.php:13
|
643 |
+
msgid "Settings"
|
644 |
+
msgstr ""
|
645 |
+
|
646 |
+
#: includes/pricing-rules.php:2788 view/view-pricing-rules.php:568
|
647 |
msgid "Buy"
|
648 |
msgstr ""
|
649 |
|
650 |
+
#: includes/pricing-rules.php:2792
|
651 |
msgid " less than or equal to "
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: includes/pricing-rules.php:2792 includes/pricing-rules.php:2798
|
655 |
msgid " Quantity"
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: includes/pricing-rules.php:2795
|
659 |
msgid " Quantity "
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: includes/pricing-rules.php:2802
|
663 |
msgid " or more Quantity"
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: includes/pricing-rules.php:2811
|
667 |
msgid " any "
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: includes/pricing-rules.php:2811
|
671 |
msgid " products from "
|
672 |
msgstr ""
|
673 |
|
674 |
+
#: includes/pricing-rules.php:2818
|
675 |
msgid " in each products"
|
676 |
msgstr ""
|
677 |
|
678 |
+
#: includes/pricing-rules.php:2830
|
679 |
msgid " and get discount in "
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: includes/pricing-rules.php:2833
|
683 |
msgid " first "
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: includes/pricing-rules.php:2835 includes/pricing-rules.php:2839
|
687 |
msgid " quantity of product(s) - "
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: includes/pricing-rules.php:2837
|
691 |
msgid " after first "
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: includes/pricing-rules.php:2855
|
695 |
msgid "Category(ies) "
|
696 |
msgstr ""
|
697 |
|
698 |
+
#: includes/pricing-rules.php:2923
|
699 |
msgid "Get "
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: includes/pricing-rules.php:2925
|
703 |
#, php-format
|
704 |
msgid "% discount in "
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: includes/pricing-rules.php:2928
|
708 |
msgid "same product"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: includes/pricing-rules.php:2930
|
712 |
msgid "any cheapest one from cart"
|
713 |
msgstr ""
|
714 |
|
715 |
+
#: includes/pricing-rules.php:2933
|
716 |
msgid "any cheapest one of "
|
717 |
msgstr ""
|
718 |
|
719 |
+
#: includes/pricing-rules.php:2938
|
720 |
msgid " quantity of any "
|
721 |
msgstr ""
|
722 |
|
723 |
+
#: includes/pricing-rules.php:2940
|
724 |
msgid " cheapest item "
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: includes/pricing-rules.php:2943
|
728 |
msgid " quantity of cheapest item "
|
729 |
msgstr ""
|
730 |
|
731 |
+
#: includes/pricing-rules.php:2947
|
732 |
msgid "from the category "
|
733 |
msgstr ""
|
734 |
|
810 |
msgid "Delete"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: view/documentation.php:28
|
814 |
+
msgid "Installation and Intro:"
|
815 |
+
msgstr ""
|
816 |
+
|
817 |
+
#: view/documentation.php:30
|
818 |
msgid "Getting started"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: view/documentation.php:30
|
822 |
msgid "Welcome onboard"
|
823 |
msgstr ""
|
824 |
|
825 |
+
#: view/documentation.php:33
|
826 |
msgid "License Key activation"
|
827 |
msgstr ""
|
828 |
|
829 |
+
#: view/documentation.php:33
|
830 |
msgid "Learn how to obtain the license key and activate it"
|
831 |
msgstr ""
|
832 |
|
833 |
+
#: view/documentation.php:36
|
834 |
msgid "Version Updates!"
|
835 |
msgstr ""
|
836 |
|
837 |
+
#: view/documentation.php:36
|
838 |
msgid "Learn how to update to latest versions"
|
839 |
msgstr ""
|
840 |
|
841 |
+
#: view/documentation.php:39
|
842 |
+
msgid "Popular Discount Rules"
|
843 |
msgstr ""
|
844 |
|
845 |
+
#: view/documentation.php:39
|
846 |
+
msgid "What type of discount scenarios are most commonly used"
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: view/documentation.php:43
|
850 |
+
msgid "Price rules/BOGO discounts:"
|
851 |
msgstr ""
|
852 |
|
853 |
+
#: view/documentation.php:45
|
854 |
+
msgid "Bulk/Tiered pricing discounts"
|
855 |
+
msgstr ""
|
856 |
+
|
857 |
+
#: view/documentation.php:45
|
858 |
+
msgid "Learn how to create bulk/tiered quantity discounts in WooCommerce"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: view/documentation.php:48
|
862 |
msgid "How to create a perfect BOGO discount rule in WooCommerce"
|
863 |
msgstr ""
|
864 |
|
865 |
+
#: view/documentation.php:48
|
866 |
msgid ""
|
867 |
"Buy One Get One deals can be simple to complex. Learn how to get them "
|
868 |
"working correct in your online store"
|
869 |
msgstr ""
|
870 |
|
871 |
+
#: view/documentation.php:51
|
872 |
msgid "User Role based discount rules"
|
873 |
msgstr ""
|
874 |
|
875 |
+
#: view/documentation.php:51
|
876 |
msgid ""
|
877 |
"Learn how to create user role based / customer group based discount in "
|
878 |
"WooCommerce"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: view/documentation.php:54
|
882 |
+
msgid "Purchase History Based Discount"
|
883 |
msgstr ""
|
884 |
|
885 |
+
#: view/documentation.php:54
|
886 |
+
msgid ""
|
887 |
+
"Price Rule and Cart Rule which gives discount based on the purchase history"
|
888 |
+
msgstr ""
|
889 |
+
|
890 |
+
#: view/documentation.php:57
|
891 |
+
msgid "Coupon code based discounts"
|
892 |
+
msgstr ""
|
893 |
+
|
894 |
+
#: view/documentation.php:57
|
895 |
msgid ""
|
896 |
"Apply the dynamic discount rules after the customer enters a valid coupon "
|
897 |
"code"
|
898 |
msgstr ""
|
899 |
|
900 |
+
#: view/documentation.php:61
|
901 |
+
msgid "Cart Based Rules:"
|
902 |
msgstr ""
|
903 |
|
904 |
+
#: view/documentation.php:63
|
905 |
+
msgid "Learn how to create a free shipping cart based rule"
|
906 |
+
msgstr ""
|
907 |
+
|
908 |
+
#: view/documentation.php:66
|
909 |
+
msgid "Subtotal based - Tiered discounts"
|
910 |
+
msgstr ""
|
911 |
+
|
912 |
+
#: view/documentation.php:66
|
913 |
+
msgid "Learn how to create tiered discount based on the subtotal value"
|
914 |
+
msgstr ""
|
915 |
+
|
916 |
+
#: view/documentation.php:69
|
917 |
+
msgid "Free product discount"
|
918 |
+
msgstr ""
|
919 |
+
|
920 |
+
#: view/documentation.php:69
|
921 |
msgid ""
|
922 |
+
"How to provide a automatic adding free product in cart under certain "
|
923 |
+
"conditions"
|
924 |
+
msgstr ""
|
925 |
+
|
926 |
+
#: view/documentation.php:72
|
927 |
+
msgid "Category Combination"
|
928 |
+
msgstr ""
|
929 |
+
|
930 |
+
#: view/documentation.php:72
|
931 |
+
msgid ""
|
932 |
+
"Category Combination (get discount only when Category A+ B + C are in the "
|
933 |
+
"cart)"
|
934 |
msgstr ""
|
935 |
|
936 |
#: view/includes/cart-menu.php:9 view/includes/sub-menu.php:9
|
945 |
|
946 |
#: view/includes/cart-menu.php:13 view/includes/sub-menu.php:13
|
947 |
#: view/template/discount-table.php:27 view/view-cart-rules.php:592
|
948 |
+
#: view/view-pricing-rules.php:634
|
949 |
msgid "Discount"
|
950 |
msgstr ""
|
951 |
|
966 |
"Discount Rules might get conflict."
|
967 |
msgstr ""
|
968 |
|
969 |
+
#: view/includes/menu.php:9
|
970 |
+
msgid "Price Discount Rules"
|
971 |
+
msgstr ""
|
972 |
+
|
973 |
+
#: view/includes/menu.php:11
|
974 |
+
msgid "Cart Discount Rules"
|
975 |
msgstr ""
|
976 |
|
977 |
#: view/includes/menu.php:17
|
1058 |
msgid "Enable free shipping option"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
+
#: view/settings_cart_rules.php:92 view/settings_price_rules.php:304
|
1062 |
+
#: view/view-pricing-rules.php:300 view/view-pricing-rules.php:357
|
1063 |
+
#: view/view-pricing-rules.php:427 view/view-pricing-rules.php:475
|
1064 |
+
#: view/view-pricing-rules.php:504
|
1065 |
msgid "Supported in PRO version"
|
1066 |
msgstr ""
|
1067 |
|
1116 |
#: view/settings_general.php:57 view/settings_general.php:74
|
1117 |
#: view/settings_general.php:108 view/settings_performance.php:21
|
1118 |
#: view/settings_price_rules.php:86 view/settings_price_rules.php:98
|
1119 |
+
#: view/settings_price_rules.php:110 view/settings_price_rules.php:145
|
1120 |
msgid "Yes"
|
1121 |
msgstr ""
|
1122 |
|
1123 |
#: view/settings_general.php:58 view/settings_general.php:75
|
1124 |
#: view/settings_general.php:109 view/settings_performance.php:22
|
1125 |
#: view/settings_price_rules.php:87 view/settings_price_rules.php:99
|
1126 |
+
#: view/settings_price_rules.php:111 view/settings_price_rules.php:146
|
1127 |
msgid "No"
|
1128 |
msgstr ""
|
1129 |
|
1221 |
msgstr ""
|
1222 |
|
1223 |
#: view/settings_price_rules.php:93
|
1224 |
+
msgid ""
|
1225 |
+
"Auto add free product when checkout fields changed (For purchase history "
|
1226 |
+
"rules)"
|
1227 |
+
msgstr ""
|
1228 |
+
|
1229 |
+
#: view/settings_price_rules.php:105
|
1230 |
msgid "Include variants when just parent products are chosen in the rules"
|
1231 |
msgstr ""
|
1232 |
|
1233 |
+
#: view/settings_price_rules.php:122
|
1234 |
msgid "Show Price discount on product pages :"
|
1235 |
msgstr ""
|
1236 |
|
1237 |
+
#: view/settings_price_rules.php:131 view/settings_price_rules.php:205
|
1238 |
+
#: view/settings_price_rules.php:223 view/settings_price_rules.php:241
|
1239 |
+
#: view/settings_price_rules.php:259
|
1240 |
msgid "Don't Show"
|
1241 |
msgstr ""
|
1242 |
|
1243 |
+
#: view/settings_price_rules.php:140
|
1244 |
msgid ""
|
1245 |
"Show a crossed-out original price along with discounted price at line items "
|
1246 |
"in cart"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
+
#: view/settings_price_rules.php:157
|
1250 |
msgid "Discount Table :"
|
1251 |
msgstr ""
|
1252 |
|
1253 |
+
#: view/settings_price_rules.php:166
|
1254 |
msgid "Default layout"
|
1255 |
msgstr ""
|
1256 |
|
1257 |
+
#: view/settings_price_rules.php:169
|
1258 |
msgid "Advance layout"
|
1259 |
msgstr ""
|
1260 |
|
1261 |
+
#: view/settings_price_rules.php:178
|
1262 |
msgid "Table placement:"
|
1263 |
msgstr ""
|
1264 |
|
1265 |
+
#: view/settings_price_rules.php:184
|
1266 |
msgid "Before cart form"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
+
#: view/settings_price_rules.php:187
|
1270 |
msgid "After cart form"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
+
#: view/settings_price_rules.php:196
|
1274 |
msgid "Table header :"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
+
#: view/settings_price_rules.php:214
|
1278 |
msgid "Title column on table :"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: view/settings_price_rules.php:232
|
1282 |
msgid "Range column on table :"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
+
#: view/settings_price_rules.php:250
|
1286 |
msgid "Discount column on table :"
|
1287 |
msgstr ""
|
1288 |
|
1289 |
+
#: view/settings_price_rules.php:272
|
1290 |
msgid "Show a Sale badge on product pages :"
|
1291 |
msgstr ""
|
1292 |
|
1293 |
+
#: view/settings_price_rules.php:278
|
1294 |
msgid "Do not show"
|
1295 |
msgstr ""
|
1296 |
|
1297 |
+
#: view/settings_price_rules.php:281
|
1298 |
msgid "Show only after a rule condition is matched exactly"
|
1299 |
msgstr ""
|
1300 |
|
1301 |
+
#: view/settings_price_rules.php:284
|
1302 |
msgid ""
|
1303 |
"Show on products that are covered under any price based discount rule in the "
|
1304 |
"plugin"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
+
#: view/settings_price_rules.php:294
|
1308 |
msgid "Do you want to customize the sale badge?"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: view/settings_price_rules.php:301
|
1312 |
msgid "Yes, I would like to customize the sale badge"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
+
#: view/settings_price_rules.php:316
|
1316 |
msgid "Sale badge content (TIP: You can use HTML inside)"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: view/settings_price_rules.php:323
|
1320 |
msgid ""
|
1321 |
"IMPORTANT NOTE: This customized sale badge will be applicable only for "
|
1322 |
"products that are part of the discount rules configured in this plugin"
|
1323 |
msgstr ""
|
1324 |
|
1325 |
+
#: view/settings_price_rules.php:327
|
1326 |
msgid "Eg:"
|
1327 |
msgstr ""
|
1328 |
|
1419 |
msgid "Priority :"
|
1420 |
msgstr ""
|
1421 |
|
1422 |
+
#: view/view-cart-rules.php:85
|
1423 |
msgid ""
|
1424 |
"The Simple Ranking concept to said, which one is going to execute first and "
|
1425 |
"so on."
|
1430 |
msgstr ""
|
1431 |
|
1432 |
#: view/view-cart-rules.php:99 view/view-cart-rules.php:111
|
1433 |
+
#: view/view-pricing-rules.php:95
|
1434 |
msgid "Rule Descriptions."
|
1435 |
msgstr ""
|
1436 |
|
1437 |
+
#: view/view-cart-rules.php:104 view/view-pricing-rules.php:89
|
1438 |
msgid "ex. Standard Rule."
|
1439 |
msgstr ""
|
1440 |
|
1441 |
+
#: view/view-cart-rules.php:109 view/view-pricing-rules.php:94
|
1442 |
msgid "Rule Description"
|
1443 |
msgstr ""
|
1444 |
|
1445 |
+
#: view/view-cart-rules.php:120 view/view-pricing-rules.php:130
|
1446 |
msgid "Validity"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
+
#: view/view-cart-rules.php:121 view/view-pricing-rules.php:131
|
1450 |
msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
+
#: view/view-cart-rules.php:134 view/view-pricing-rules.php:144
|
1454 |
+
#: view/view-pricing-rules.php:578
|
1455 |
msgid "From"
|
1456 |
msgstr ""
|
1457 |
|
1459 |
msgid "To"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
+
#: view/view-cart-rules.php:139 view/view-pricing-rules.php:149
|
1463 |
#, php-format
|
1464 |
msgid "Current date and time: %s"
|
1465 |
msgstr ""
|
1466 |
|
1467 |
#: view/view-cart-rules.php:144 view/view-cart-rules.php:586
|
1468 |
+
#: view/view-pricing-rules.php:183 view/view-pricing-rules.php:627
|
1469 |
msgid "Next"
|
1470 |
msgstr ""
|
1471 |
|
1486 |
msgstr ""
|
1487 |
|
1488 |
#: view/view-cart-rules.php:585 view/view-cart-rules.php:682
|
1489 |
+
#: view/view-pricing-rules.php:626 view/view-pricing-rules.php:831
|
1490 |
msgid "Previous"
|
1491 |
msgstr ""
|
1492 |
|
1526 |
msgid "Edit Price Rule"
|
1527 |
msgstr ""
|
1528 |
|
1529 |
+
#: view/view-pricing-rules.php:67
|
1530 |
+
msgid ""
|
1531 |
+
"The Simple Ranking concept, which one is going to execute first and so on."
|
1532 |
+
msgstr ""
|
1533 |
+
|
1534 |
+
#: view/view-pricing-rules.php:82
|
1535 |
+
msgid "Rule name / title."
|
1536 |
+
msgstr ""
|
1537 |
+
|
1538 |
+
#: view/view-pricing-rules.php:105
|
1539 |
msgid "Method"
|
1540 |
msgstr ""
|
1541 |
|
1543 |
msgid "Method to Apply."
|
1544 |
msgstr ""
|
1545 |
|
1546 |
+
#: view/view-pricing-rules.php:113
|
1547 |
msgid ""
|
1548 |
"Quantity / category / product / user role based discounts and BOGO deals "
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: view/view-pricing-rules.php:120 view/view-pricing-rules.php:122
|
1552 |
msgid "Dependent / conditional based discount (by individual product)"
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: view/view-pricing-rules.php:148
|
1556 |
msgid "To - Leave Empty if No Expiry"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
+
#: view/view-pricing-rules.php:159
|
1560 |
msgid "Format for advanced table display option (see plugin settings)"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
+
#: view/view-pricing-rules.php:161
|
1564 |
msgid "Used when advanced table display option is set in the plugin settings"
|
1565 |
msgstr ""
|
1566 |
|
1567 |
+
#: view/view-pricing-rules.php:164
|
1568 |
msgid "Buy {{min_quantity}} or more quantity and get {{discount}} as discount"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
+
#: view/view-pricing-rules.php:167
|
1572 |
msgid "{{title}} -> Title"
|
1573 |
msgstr ""
|
1574 |
|
1575 |
+
#: view/view-pricing-rules.php:168
|
1576 |
msgid "{{description}} -> Description"
|
1577 |
msgstr ""
|
1578 |
|
1579 |
+
#: view/view-pricing-rules.php:169
|
1580 |
msgid "{{min_quantity}} -> Minimum quantity"
|
1581 |
msgstr ""
|
1582 |
|
1583 |
+
#: view/view-pricing-rules.php:170
|
1584 |
msgid "{{max_quantity}} -> Maximum quantity"
|
1585 |
msgstr ""
|
1586 |
|
1587 |
+
#: view/view-pricing-rules.php:171
|
1588 |
msgid "{{discount}} -> Discount"
|
1589 |
msgstr ""
|
1590 |
|
1591 |
+
#: view/view-pricing-rules.php:172
|
1592 |
msgid "{{discounted_price}} -> Discounted price"
|
1593 |
msgstr ""
|
1594 |
|
1595 |
+
#: view/view-pricing-rules.php:173
|
1596 |
msgid "{{condition}} -> Rule condition text"
|
1597 |
msgstr ""
|
1598 |
|
1599 |
+
#: view/view-pricing-rules.php:188
|
1600 |
msgid "Discount Conditions"
|
1601 |
msgstr ""
|
1602 |
|
1603 |
+
#: view/view-pricing-rules.php:193
|
1604 |
msgid "Apply To"
|
1605 |
msgstr ""
|
1606 |
|
1607 |
+
#: view/view-pricing-rules.php:199
|
1608 |
msgid "All products"
|
1609 |
msgstr ""
|
1610 |
|
1611 |
+
#: view/view-pricing-rules.php:203
|
1612 |
msgid "Specific products"
|
1613 |
msgstr ""
|
1614 |
|
1615 |
+
#: view/view-pricing-rules.php:209 view/view-pricing-rules.php:211
|
1616 |
msgid "Specific categories"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
+
#: view/view-pricing-rules.php:218 view/view-pricing-rules.php:220
|
1620 |
msgid "Specific attributes"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
+
#: view/view-pricing-rules.php:231
|
1624 |
msgid ""
|
1625 |
"Check this box to count item quantities in cart cumulatively across products"
|
1626 |
msgstr ""
|
1627 |
|
1628 |
+
#: view/view-pricing-rules.php:243
|
1629 |
msgid "Check this box to count quantities cumulatively across category(ies)"
|
1630 |
msgstr ""
|
1631 |
|
1632 |
+
#: view/view-pricing-rules.php:246
|
1633 |
msgid "Check this box to apply child category(ies)"
|
1634 |
msgstr ""
|
1635 |
|
1636 |
+
#: view/view-pricing-rules.php:260
|
1637 |
msgid "Check this box to count quantities cumulatively across attribute"
|
1638 |
msgstr ""
|
1639 |
|
1640 |
+
#: view/view-pricing-rules.php:270
|
1641 |
msgid "Exclude products"
|
1642 |
msgstr ""
|
1643 |
|
1644 |
+
#: view/view-pricing-rules.php:289
|
1645 |
msgid "Exclude sale items"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
+
#: view/view-pricing-rules.php:294
|
1649 |
msgid "Check this box if the rule should not apply to items on sale."
|
1650 |
msgstr ""
|
1651 |
|
1652 |
+
#: view/view-pricing-rules.php:313
|
1653 |
msgid "Customers"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
+
#: view/view-pricing-rules.php:318 view/view-pricing-rules.php:599
|
1657 |
msgid "All"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
+
#: view/view-pricing-rules.php:325 view/view-pricing-rules.php:327
|
1661 |
msgid "Only Given"
|
1662 |
msgstr ""
|
1663 |
|
1664 |
+
#: view/view-pricing-rules.php:341
|
1665 |
msgid "User roles"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
+
#: view/view-pricing-rules.php:346 view/view-pricing-rules.php:376
|
1669 |
+
#: view/view-pricing-rules.php:450 view/view-pricing-rules.php:493
|
1670 |
msgid "Do not use"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
+
#: view/view-pricing-rules.php:368
|
1674 |
msgid "Coupon"
|
1675 |
msgstr ""
|
1676 |
|
1677 |
+
#: view/view-pricing-rules.php:377
|
1678 |
msgid "Apply if any one coupon applied"
|
1679 |
msgstr ""
|
1680 |
|
1681 |
+
#: view/view-pricing-rules.php:378
|
1682 |
msgid "Apply if all coupon applied"
|
1683 |
msgstr ""
|
1684 |
|
1685 |
+
#: view/view-pricing-rules.php:417
|
1686 |
msgid "Make sure you have created the coupon already"
|
1687 |
msgstr ""
|
1688 |
|
1689 |
+
#: view/view-pricing-rules.php:438
|
1690 |
msgid "Subtotal"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
+
#: view/view-pricing-rules.php:439
|
1694 |
+
msgid "Applies for the whole cart subtotal (not recommended)."
|
1695 |
+
msgstr ""
|
1696 |
+
|
1697 |
+
#: view/view-pricing-rules.php:451
|
1698 |
msgid "Subtotal atleast"
|
1699 |
msgstr ""
|
1700 |
|
1701 |
+
#: view/view-pricing-rules.php:456
|
1702 |
msgid "Enter the amount"
|
1703 |
msgstr ""
|
1704 |
|
1705 |
+
#: view/view-pricing-rules.php:466
|
1706 |
msgid "Supported in WooCommerce 3.x"
|
1707 |
msgstr ""
|
1708 |
|
1709 |
+
#: view/view-pricing-rules.php:570
|
1710 |
msgid "Any"
|
1711 |
msgstr ""
|
1712 |
|
1713 |
+
#: view/view-pricing-rules.php:571
|
1714 |
msgid "Each"
|
1715 |
msgstr ""
|
1716 |
|
|
|
|
|
|
|
|
|
1717 |
#: view/view-pricing-rules.php:572
|
1718 |
+
msgid "Combine"
|
1719 |
msgstr ""
|
1720 |
|
1721 |
+
#: view/view-pricing-rules.php:575
|
1722 |
+
msgid "More than or equal to"
|
1723 |
msgstr ""
|
1724 |
|
1725 |
+
#: view/view-pricing-rules.php:577
|
1726 |
msgid "Equal"
|
1727 |
msgstr ""
|
1728 |
|
1729 |
+
#: view/view-pricing-rules.php:580 view/view-pricing-rules.php:583
|
1730 |
+
#: view/view-pricing-rules.php:603
|
1731 |
msgid "Quantity"
|
1732 |
msgstr ""
|
1733 |
|
1734 |
+
#: view/view-pricing-rules.php:582
|
1735 |
msgid "to"
|
1736 |
msgstr ""
|
1737 |
|
1738 |
+
#: view/view-pricing-rules.php:586
|
1739 |
msgid "Product(s) from"
|
1740 |
msgstr ""
|
1741 |
|
1742 |
+
#: view/view-pricing-rules.php:592
|
1743 |
msgid "Apply discount in product(s)"
|
1744 |
msgstr ""
|
1745 |
|
1746 |
+
#: view/view-pricing-rules.php:593
|
1747 |
msgid "Apply discount in category(ies)"
|
1748 |
msgstr ""
|
1749 |
|
1750 |
+
#: view/view-pricing-rules.php:597
|
1751 |
msgid "and get discount in "
|
1752 |
msgstr ""
|
1753 |
|
1754 |
+
#: view/view-pricing-rules.php:600
|
1755 |
msgid "First quantity(s)"
|
1756 |
msgstr ""
|
1757 |
|
1758 |
+
#: view/view-pricing-rules.php:601
|
1759 |
msgid "Skip first quantity(s)"
|
1760 |
msgstr ""
|
1761 |
|
1762 |
+
#: view/view-pricing-rules.php:606
|
1763 |
msgid " Product(s) "
|
1764 |
msgstr ""
|
1765 |
|
1766 |
+
#: view/view-pricing-rules.php:610
|
1767 |
msgid "Category(ies)"
|
1768 |
msgstr ""
|
1769 |
|
1770 |
+
#: view/view-pricing-rules.php:621
|
1771 |
msgid "Guide for product dependent rules"
|
1772 |
msgstr ""
|
1773 |
|
1774 |
+
#: view/view-pricing-rules.php:637
|
1775 |
msgid "Add New Range"
|
1776 |
msgstr ""
|
1777 |
|
1778 |
+
#: view/view-pricing-rules.php:814
|
1779 |
msgid "Guide to create perfect BOGO rules"
|
1780 |
msgstr ""
|
1781 |
|
1782 |
+
#: view/view-pricing-rules.php:824
|
1783 |
msgid "Percent"
|
1784 |
msgstr ""
|
1785 |
|
1786 |
+
#: view/view-pricing-rules.php:825
|
1787 |
msgid "Fixed"
|
1788 |
msgstr ""
|
includes/cart-rules.php
CHANGED
@@ -1114,6 +1114,12 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1114 |
if($postShippingState != ''){
|
1115 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
1116 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1117 |
if(!get_current_user_id()){
|
1118 |
$order_id = $this->postData->get('order-received', 0);
|
1119 |
if($order_id){
|
@@ -1157,6 +1163,12 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1157 |
if($postShippingState != ''){
|
1158 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
1159 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1160 |
if(!get_current_user_id()){
|
1161 |
$order_id = $this->postData->get('order-received', 0);
|
1162 |
if($order_id){
|
@@ -1314,9 +1326,15 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1314 |
}
|
1315 |
if(is_array($coupons) && count($coupons)){
|
1316 |
foreach ($coupons as $coupon){
|
1317 |
-
if(
|
1318 |
-
$
|
1319 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1320 |
}
|
1321 |
}
|
1322 |
}
|
@@ -1339,12 +1357,19 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1339 |
}
|
1340 |
if(is_array($coupons) && count($coupons)){
|
1341 |
foreach ($coupons as $coupon){
|
1342 |
-
if(
|
1343 |
-
$
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1347 |
}
|
|
|
1348 |
}
|
1349 |
}
|
1350 |
|
@@ -1357,17 +1382,28 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1357 |
protected function validateCartItemsBasedOnPurchaseHistory($index, $rule, $rules){
|
1358 |
$allowed = 0;
|
1359 |
$user = get_current_user_id();
|
1360 |
-
|
|
|
1361 |
$purchase_history_status_list = isset($rule['purchase_history_order_status'])? $rule['purchase_history_order_status']: array('wc-completed');
|
1362 |
if(isset($rule['purchased_history_amount'])){
|
1363 |
if($rule['purchased_history_amount'] >= 0){
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1371 |
$totalPurchasedAmount = $totalOrder = 0;
|
1372 |
if(!empty($customerOrders)){
|
1373 |
foreach ($customerOrders as $customerOrder) {
|
@@ -1550,7 +1586,8 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1550 |
public function calculateCartSubtotal()
|
1551 |
{
|
1552 |
if(!empty($this->cart_items)){
|
1553 |
-
|
|
|
1554 |
do_action('woocommerce_before_calculate_totals', FlycartWoocommerceCart::get_cart_object());
|
1555 |
}
|
1556 |
}
|
@@ -1971,6 +2008,12 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
1971 |
if($postShippingState != ''){
|
1972 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
1973 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1974 |
if(!get_current_user_id()){
|
1975 |
$order_id = $this->postData->get('order-received', 0);
|
1976 |
if($order_id){
|
@@ -2014,6 +2057,12 @@ if (!class_exists('FlycartWooDiscountRulesCartRules')) {
|
|
2014 |
if($postShippingState != ''){
|
2015 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
2016 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2017 |
if(!get_current_user_id()){
|
2018 |
$order_id = $this->postData->get('order-received', 0);
|
2019 |
if($order_id){
|
1114 |
if($postShippingState != ''){
|
1115 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
1116 |
}
|
1117 |
+
|
1118 |
+
$postCalcShippingState = $this->postData->get('calc_shipping_state', '', 'raw');
|
1119 |
+
if(!empty($postCalcShippingState)){
|
1120 |
+
$postDataArray[$shippingFieldName] = $postCalcShippingState;
|
1121 |
+
}
|
1122 |
+
|
1123 |
if(!get_current_user_id()){
|
1124 |
$order_id = $this->postData->get('order-received', 0);
|
1125 |
if($order_id){
|
1163 |
if($postShippingState != ''){
|
1164 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
1165 |
}
|
1166 |
+
|
1167 |
+
$postCalcShippingCity = $this->postData->get('calc_shipping_city', '', 'raw');
|
1168 |
+
if(!empty($postCalcShippingCity)){
|
1169 |
+
$postDataArray[$shippingFieldName] = $postCalcShippingCity;
|
1170 |
+
}
|
1171 |
+
|
1172 |
if(!get_current_user_id()){
|
1173 |
$order_id = $this->postData->get('order-received', 0);
|
1174 |
if($order_id){
|
1326 |
}
|
1327 |
if(is_array($coupons) && count($coupons)){
|
1328 |
foreach ($coupons as $coupon){
|
1329 |
+
if(!empty($coupon)) {
|
1330 |
+
if (!empty($woocommerce->cart)) {
|
1331 |
+
if (method_exists($woocommerce->cart, 'has_discount')) {
|
1332 |
+
if($woocommerce->cart->has_discount($coupon)){
|
1333 |
+
$allowed = 1;
|
1334 |
+
break;
|
1335 |
+
}
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
}
|
1339 |
}
|
1340 |
}
|
1357 |
}
|
1358 |
if(is_array($coupons) && count($coupons)){
|
1359 |
foreach ($coupons as $coupon){
|
1360 |
+
if(!empty($coupon)) {
|
1361 |
+
if (!empty($woocommerce->cart)) {
|
1362 |
+
if (method_exists($woocommerce->cart, 'has_discount')) {
|
1363 |
+
if(!$woocommerce->cart->has_discount($coupon)){
|
1364 |
+
$allowed = 0;
|
1365 |
+
break;
|
1366 |
+
} else {
|
1367 |
+
$allowed = 1;
|
1368 |
+
}
|
1369 |
+
}
|
1370 |
+
}
|
1371 |
}
|
1372 |
+
|
1373 |
}
|
1374 |
}
|
1375 |
|
1382 |
protected function validateCartItemsBasedOnPurchaseHistory($index, $rule, $rules){
|
1383 |
$allowed = 0;
|
1384 |
$user = get_current_user_id();
|
1385 |
+
$email = FlycartWooDiscountRulesGeneralHelper::get_billing_email_from_post();
|
1386 |
+
if($user || !empty($email)){
|
1387 |
$purchase_history_status_list = isset($rule['purchase_history_order_status'])? $rule['purchase_history_order_status']: array('wc-completed');
|
1388 |
if(isset($rule['purchased_history_amount'])){
|
1389 |
if($rule['purchased_history_amount'] >= 0){
|
1390 |
+
if(!empty($email)){
|
1391 |
+
$customerOrders = get_posts( array(
|
1392 |
+
'numberposts' => -1,
|
1393 |
+
'meta_key' => '_billing_email',
|
1394 |
+
'meta_value' => $email,
|
1395 |
+
'post_type' => wc_get_order_types(),
|
1396 |
+
'post_status' => $purchase_history_status_list,
|
1397 |
+
) );
|
1398 |
+
} else {
|
1399 |
+
$customerOrders = get_posts( array(
|
1400 |
+
'numberposts' => -1,
|
1401 |
+
'meta_key' => '_customer_user',
|
1402 |
+
'meta_value' => $user,
|
1403 |
+
'post_type' => wc_get_order_types(),
|
1404 |
+
'post_status' => $purchase_history_status_list,
|
1405 |
+
) );
|
1406 |
+
}
|
1407 |
$totalPurchasedAmount = $totalOrder = 0;
|
1408 |
if(!empty($customerOrders)){
|
1409 |
foreach ($customerOrders as $customerOrder) {
|
1586 |
public function calculateCartSubtotal()
|
1587 |
{
|
1588 |
if(!empty($this->cart_items)){
|
1589 |
+
$run_before_calculate_event = apply_filters('woo_discount_rules_run_before_calculate_event_on_before_calculate_subtotal_in_cart_rules', true);
|
1590 |
+
if(!did_action('woocommerce_before_calculate_totals') && $run_before_calculate_event == true){
|
1591 |
do_action('woocommerce_before_calculate_totals', FlycartWoocommerceCart::get_cart_object());
|
1592 |
}
|
1593 |
}
|
2008 |
if($postShippingState != ''){
|
2009 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
2010 |
}
|
2011 |
+
|
2012 |
+
$postCalcShippingState = $this->postData->get('calc_shipping_state', '', 'raw');
|
2013 |
+
if(!empty($postCalcShippingState)){
|
2014 |
+
$postDataArray[$shippingFieldName] = $postCalcShippingState;
|
2015 |
+
}
|
2016 |
+
|
2017 |
if(!get_current_user_id()){
|
2018 |
$order_id = $this->postData->get('order-received', 0);
|
2019 |
if($order_id){
|
2057 |
if($postShippingState != ''){
|
2058 |
$postDataArray[$shippingFieldName] = $postShippingState;
|
2059 |
}
|
2060 |
+
|
2061 |
+
$postCalcShippingCity = $this->postData->get('calc_shipping_city', '', 'raw');
|
2062 |
+
if(!empty($postCalcShippingCity)){
|
2063 |
+
$postDataArray[$shippingFieldName] = $postCalcShippingCity;
|
2064 |
+
}
|
2065 |
+
|
2066 |
if(!get_current_user_id()){
|
2067 |
$order_id = $this->postData->get('order-received', 0);
|
2068 |
if($order_id){
|
includes/discount-base.php
CHANGED
@@ -104,10 +104,15 @@ if (!class_exists('FlycartWooDiscountBase')) {
|
|
104 |
* For adding script in checkout page
|
105 |
* */
|
106 |
public function addScriptInCheckoutPage(){
|
|
|
|
|
|
|
|
|
|
|
107 |
$script = '<script type="text/javascript">
|
108 |
jQuery( function( $ ) {
|
109 |
$(document).ready(function() {
|
110 |
-
$( document.body ).on( "blur", "input#billing_email", function() {
|
111 |
$("select#billing_country").trigger("change");
|
112 |
});
|
113 |
});
|
@@ -1086,6 +1091,8 @@ if (!class_exists('FlycartWooDiscountBase')) {
|
|
1086 |
'choose_products' => esc_html__('Choose product(s)', 'woo-discount-rules'),
|
1087 |
'choose_categories' => esc_html__('Choose category(ies)', 'woo-discount-rules'),
|
1088 |
'coupon_select_box_placeholder' => esc_html__('Search for a coupon', 'woo-discount-rules'),
|
|
|
|
|
1089 |
'discount_product_option_tooltip' => esc_html__("Auto add all selected products - Automatically added to the cart <br> Same product - get discount in same product <br> Any one cheapest from selected - Get discount in one selected product <br> Any one cheapest from all products - Get discount in one cheapest product in cart <br> Cheapest in cart - selected category(ies) - cheapest product from the selected category will be discounted <br> Cheapest in cart - selected item(s) - get discount in chosen no.of quantities", 'woo-discount-rules'),
|
1090 |
);
|
1091 |
}
|
104 |
* For adding script in checkout page
|
105 |
* */
|
106 |
public function addScriptInCheckoutPage(){
|
107 |
+
$additional_class_to_add = '';
|
108 |
+
$additional_class = apply_filters('woo_discount_rules_add_additional_class_to_refresh_the_checkout_review_on_blur', $additional_class_to_add);
|
109 |
+
if(!empty($additional_class) && is_string($additional_class)){
|
110 |
+
$additional_class_to_add = $additional_class;
|
111 |
+
}
|
112 |
$script = '<script type="text/javascript">
|
113 |
jQuery( function( $ ) {
|
114 |
$(document).ready(function() {
|
115 |
+
$( document.body ).on( "blur", "input#billing_email, select#billing_state'.$additional_class_to_add.'", function() {
|
116 |
$("select#billing_country").trigger("change");
|
117 |
});
|
118 |
});
|
1091 |
'choose_products' => esc_html__('Choose product(s)', 'woo-discount-rules'),
|
1092 |
'choose_categories' => esc_html__('Choose category(ies)', 'woo-discount-rules'),
|
1093 |
'coupon_select_box_placeholder' => esc_html__('Search for a coupon', 'woo-discount-rules'),
|
1094 |
+
'percentage_discount_amount_tool_tip_text' => esc_attr__('Enter only numeric values. Eg: <b>50</b> for 50% discount', 'woo-discount-rules'),
|
1095 |
+
'price_discount_amount_tool_tip_text' => sprintf(esc_attr__('Enter the discount price. Eg: <b>10</b> for %s discount', 'woo-discount-rules'), strip_tags(FlycartWoocommerceProduct::wc_price(10))),
|
1096 |
'discount_product_option_tooltip' => esc_html__("Auto add all selected products - Automatically added to the cart <br> Same product - get discount in same product <br> Any one cheapest from selected - Get discount in one selected product <br> Any one cheapest from all products - Get discount in one cheapest product in cart <br> Cheapest in cart - selected category(ies) - cheapest product from the selected category will be discounted <br> Cheapest in cart - selected item(s) - get discount in chosen no.of quantities", 'woo-discount-rules'),
|
1097 |
);
|
1098 |
}
|
includes/pricing-rules.php
CHANGED
@@ -1047,10 +1047,16 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
1047 |
$allowed = 0;
|
1048 |
$coupons = explode(',', $coupons_selected);
|
1049 |
if(is_array($coupons) && count($coupons)){
|
1050 |
-
foreach ($coupons as $coupon){
|
1051 |
-
if(
|
1052 |
-
$
|
1053 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1054 |
}
|
1055 |
}
|
1056 |
}
|
@@ -1067,11 +1073,17 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
1067 |
$coupons = explode(',', $coupons_selected);
|
1068 |
if(is_array($coupons) && count($coupons)){
|
1069 |
foreach ($coupons as $coupon){
|
1070 |
-
if(
|
1071 |
-
$
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1075 |
}
|
1076 |
}
|
1077 |
}
|
@@ -1086,17 +1098,28 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
1086 |
{
|
1087 |
$allowed = 'no';
|
1088 |
$user = get_current_user_id();
|
1089 |
-
|
|
|
1090 |
if(isset($rule->purchased_history_amount) && isset($rule->purchase_history_status_list)){
|
1091 |
if($rule->purchased_history_amount >= 0){
|
1092 |
$purchase_history_status_list = json_decode($rule->purchase_history_status_list, true);
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1100 |
$totalPurchasedAmount = $totalOrder = 0;
|
1101 |
if(!empty($customerOrders)){
|
1102 |
foreach ($customerOrders as $customerOrder) {
|
@@ -2062,7 +2085,21 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2062 |
{
|
2063 |
if (!$rule_exclude_sale_items) return false;
|
2064 |
$sale_price = FlycartWoocommerceProduct::get_sale_price($product);
|
2065 |
-
if($sale_price > 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2066 |
|
2067 |
return false;
|
2068 |
}
|
@@ -2585,7 +2622,32 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2585 |
$matched_category = true;
|
2586 |
}
|
2587 |
}
|
2588 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2589 |
$product_based_discounts = json_decode((isset($rule->product_based_discount) ? $rule->product_based_discount : '{}'), true);
|
2590 |
$product_based_discount_type = isset($product_based_discounts['discount_type']) ? $product_based_discounts['discount_type'] : 'percentage_discount';
|
2591 |
$product_based_discount_value = isset($product_based_discounts['discount_value']) ? $product_based_discounts['discount_value'] : '';
|
1047 |
$allowed = 0;
|
1048 |
$coupons = explode(',', $coupons_selected);
|
1049 |
if(is_array($coupons) && count($coupons)){
|
1050 |
+
foreach ($coupons as $coupon) {
|
1051 |
+
if (!empty($coupon)) {
|
1052 |
+
if (!empty($woocommerce->cart)) {
|
1053 |
+
if (method_exists($woocommerce->cart, 'has_discount')) {
|
1054 |
+
if ($woocommerce->cart->has_discount($coupon)) {
|
1055 |
+
$allowed = 1;
|
1056 |
+
break;
|
1057 |
+
}
|
1058 |
+
}
|
1059 |
+
}
|
1060 |
}
|
1061 |
}
|
1062 |
}
|
1073 |
$coupons = explode(',', $coupons_selected);
|
1074 |
if(is_array($coupons) && count($coupons)){
|
1075 |
foreach ($coupons as $coupon){
|
1076 |
+
if(!empty($coupon)){
|
1077 |
+
if(!empty($woocommerce->cart)){
|
1078 |
+
if(method_exists($woocommerce->cart, 'has_discount')){
|
1079 |
+
if(!$woocommerce->cart->has_discount($coupon)){
|
1080 |
+
$allowed = 0;
|
1081 |
+
break;
|
1082 |
+
} else {
|
1083 |
+
$allowed = 1;
|
1084 |
+
}
|
1085 |
+
}
|
1086 |
+
}
|
1087 |
}
|
1088 |
}
|
1089 |
}
|
1098 |
{
|
1099 |
$allowed = 'no';
|
1100 |
$user = get_current_user_id();
|
1101 |
+
$email = FlycartWooDiscountRulesGeneralHelper::get_billing_email_from_post();
|
1102 |
+
if($user || !empty($email)){
|
1103 |
if(isset($rule->purchased_history_amount) && isset($rule->purchase_history_status_list)){
|
1104 |
if($rule->purchased_history_amount >= 0){
|
1105 |
$purchase_history_status_list = json_decode($rule->purchase_history_status_list, true);
|
1106 |
+
if(!empty($email)){
|
1107 |
+
$customerOrders = get_posts( array(
|
1108 |
+
'numberposts' => -1,
|
1109 |
+
'meta_key' => '_billing_email',
|
1110 |
+
'meta_value' => $email,
|
1111 |
+
'post_type' => wc_get_order_types(),
|
1112 |
+
'post_status' => $purchase_history_status_list,
|
1113 |
+
) );
|
1114 |
+
} else {
|
1115 |
+
$customerOrders = get_posts( array(
|
1116 |
+
'numberposts' => -1,
|
1117 |
+
'meta_key' => '_customer_user',
|
1118 |
+
'meta_value' => $user,
|
1119 |
+
'post_type' => wc_get_order_types(),
|
1120 |
+
'post_status' => $purchase_history_status_list,
|
1121 |
+
) );
|
1122 |
+
}
|
1123 |
$totalPurchasedAmount = $totalOrder = 0;
|
1124 |
if(!empty($customerOrders)){
|
1125 |
foreach ($customerOrders as $customerOrder) {
|
2085 |
{
|
2086 |
if (!$rule_exclude_sale_items) return false;
|
2087 |
$sale_price = FlycartWoocommerceProduct::get_sale_price($product);
|
2088 |
+
if($sale_price > 0){
|
2089 |
+
$on_sale = true;
|
2090 |
+
if(method_exists($product, 'get_date_on_sale_from')){
|
2091 |
+
if ( $product->get_date_on_sale_from() && $product->get_date_on_sale_from()->getTimestamp() > current_time( 'timestamp', true ) ) {
|
2092 |
+
$on_sale = false;
|
2093 |
+
}
|
2094 |
+
}
|
2095 |
+
if(method_exists($product, 'get_date_on_sale_to')){
|
2096 |
+
if ( $product->get_date_on_sale_to() && $product->get_date_on_sale_to()->getTimestamp() < current_time( 'timestamp', true ) ) {
|
2097 |
+
$on_sale = false;
|
2098 |
+
}
|
2099 |
+
}
|
2100 |
+
|
2101 |
+
return $on_sale;
|
2102 |
+
}
|
2103 |
|
2104 |
return false;
|
2105 |
}
|
2622 |
$matched_category = true;
|
2623 |
}
|
2624 |
}
|
2625 |
+
$matched_in_variation = false;
|
2626 |
+
if($product->is_type(array('variable', 'subscription_variation', 'variable-subscription'))) {
|
2627 |
+
$childProducts = array();
|
2628 |
+
if(FlycartWoocommerceVersion::wcVersion('3.1.0')){
|
2629 |
+
$children = array_filter( array_map( 'wc_get_product', FlycartWoocommerceProduct::get_children($product) ), 'wc_products_array_filter_visible_grouped' );
|
2630 |
+
if(is_array($children) && count($children)){
|
2631 |
+
foreach ( $children as $child ) {
|
2632 |
+
$is_visible = FlycartWoocommerceProduct::variation_is_visible_in_frontend($child);
|
2633 |
+
if ( '' !== FlycartWoocommerceProduct::get_price($child) && $is_visible) {
|
2634 |
+
$childProducts[] = FlycartWoocommerceProduct::get_id($child);
|
2635 |
+
}
|
2636 |
+
}
|
2637 |
+
}
|
2638 |
+
} else {
|
2639 |
+
$childProducts = $product->get_children();
|
2640 |
+
}
|
2641 |
+
if(!empty($childProducts) && is_array($childProducts)){
|
2642 |
+
if (count(array_intersect($childProducts, $product_to_buy)) > 0) {
|
2643 |
+
$matched_in_variation = true;
|
2644 |
+
}
|
2645 |
+
if (count(array_intersect($childProducts, $product_to_apply)) > 0) {
|
2646 |
+
$matched_in_variation = true;
|
2647 |
+
}
|
2648 |
+
}
|
2649 |
+
}
|
2650 |
+
if ((in_array($id, $product_to_buy) || in_array($id, $product_to_apply)) || $matched_category || $matched_in_variation) {
|
2651 |
$product_based_discounts = json_decode((isset($rule->product_based_discount) ? $rule->product_based_discount : '{}'), true);
|
2652 |
$product_based_discount_type = isset($product_based_discounts['discount_type']) ? $product_based_discounts['discount_type'] : 'percentage_discount';
|
2653 |
$product_based_discount_value = isset($product_based_discounts['discount_value']) ? $product_based_discounts['discount_value'] : '';
|
loader.php
CHANGED
@@ -319,6 +319,13 @@ if(!class_exists('FlycartWooDiscountRules')){
|
|
319 |
add_action('woocommerce_applied_coupon', array($this->pricingRules, 'handleBOGODiscountAfterApplyCoupon'), 10, 1);
|
320 |
}
|
321 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
add_action( 'woocommerce_checkout_create_order_line_item', array( $this->pricingRules, 'onCreateWoocommerceOrderLineItem'), 10, 4);
|
323 |
$display_you_saved_text = $this->discountBase->getConfigData('display_you_saved_text', 'no');
|
324 |
if(in_array($display_you_saved_text, array('on_each_line_item', 'both_line_item_and_after_total'))){
|
@@ -392,6 +399,15 @@ if(!class_exists('FlycartWooDiscountRules')){
|
|
392 |
add_filter('woo_discount_rule_products_to_include', array($this, 'woo_discount_get_variations'), 3, 10);
|
393 |
}
|
394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
395 |
/**
|
396 |
* Include the variant product as well while choose parent product
|
397 |
*
|
319 |
add_action('woocommerce_applied_coupon', array($this->pricingRules, 'handleBOGODiscountAfterApplyCoupon'), 10, 1);
|
320 |
}
|
321 |
|
322 |
+
$add_free_product_on_change_checkout_fields = $this->discountBase->getConfigData('add_free_product_on_change_checkout_fields', 0);
|
323 |
+
if($add_free_product_on_change_checkout_fields) {
|
324 |
+
if (isset($_REQUEST['wc-ajax']) && sanitize_text_field($_REQUEST['wc-ajax']) == 'update_order_review') {
|
325 |
+
$this->add_free_product_on_change_checkout_fields();
|
326 |
+
}
|
327 |
+
}
|
328 |
+
|
329 |
add_action( 'woocommerce_checkout_create_order_line_item', array( $this->pricingRules, 'onCreateWoocommerceOrderLineItem'), 10, 4);
|
330 |
$display_you_saved_text = $this->discountBase->getConfigData('display_you_saved_text', 'no');
|
331 |
if(in_array($display_you_saved_text, array('on_each_line_item', 'both_line_item_and_after_total'))){
|
399 |
add_filter('woo_discount_rule_products_to_include', array($this, 'woo_discount_get_variations'), 3, 10);
|
400 |
}
|
401 |
|
402 |
+
/**
|
403 |
+
* Add free product on change checkout fields
|
404 |
+
* */
|
405 |
+
public function add_free_product_on_change_checkout_fields()
|
406 |
+
{
|
407 |
+
add_action('woocommerce_cart_loaded_from_session', array($this->pricingRules, 'handleBOGODiscountAfterApplyCoupon'), 10);
|
408 |
+
remove_action('woocommerce_after_cart_item_quantity_update', array($this->discountBase, 'handleDiscount'), 100);
|
409 |
+
}
|
410 |
+
|
411 |
/**
|
412 |
* Include the variant product as well while choose parent product
|
413 |
*
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flycart.org/
|
|
4 |
Tags: woocommerce, coupons, discounts, dynamic pricing, Buy One Get One Free, pricing deals, bulk discount, discount
|
5 |
Requires at least: 4.4.1
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 1.7.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -312,6 +312,17 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
|
|
312 |
|
313 |
== Changelog ==
|
314 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
= 1.7.16 - 12/06/19 =
|
316 |
* Fix - Coupon not applied while coupon name added with space.
|
317 |
* Improvement - Event apply_filters('woo_discount_rules_load_price_discount_strikeout_from_variant_for_single_price_variable_products', true, $product);
|
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.2
|
7 |
+
Stable tag: 1.7.17
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
312 |
|
313 |
== Changelog ==
|
314 |
|
315 |
+
= 1.7.17 - 04/07/19 =
|
316 |
+
* Fix - Fatal error while API request.
|
317 |
+
* Fix - Free shipping not works when update shipping state through calculate shipping option in cart.
|
318 |
+
* Improvement - Purchase history based on email.
|
319 |
+
* Improvement - CSS fix as some template overrides few css.
|
320 |
+
* Improvement - Enable cumulative option by default.
|
321 |
+
* Improvement - Check sale price date as well, while should not apply if item on sale option is enabled.
|
322 |
+
* Improvement - Event apply_filters('woo_discount_rules_run_before_calculate_event_on_before_calculate_subtotal_in_cart_rules', true);
|
323 |
+
* Improvement - If product not exists return empty product object to avoid errors while an product is deleted.
|
324 |
+
* Improvement - Display the formatted title for variants instead of product title.
|
325 |
+
|
326 |
= 1.7.16 - 12/06/19 =
|
327 |
* Fix - Coupon not applied while coupon name added with space.
|
328 |
* Improvement - Event apply_filters('woo_discount_rules_load_price_discount_strikeout_from_variant_for_single_price_variable_products', true, $product);
|
view/documentation.php
CHANGED
@@ -24,31 +24,54 @@ $isPro = $flycartWooDiscountRulesPurchase->isPro();
|
|
24 |
</div>
|
25 |
<div class="row form-group enable_variable_product_cache_con">
|
26 |
<div class="col-md-12">
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</div>
|
53 |
</div>
|
54 |
</div>
|
24 |
</div>
|
25 |
<div class="row form-group enable_variable_product_cache_con">
|
26 |
<div class="col-md-12">
|
27 |
+
<div class="col-md-4">
|
28 |
+
<h4><?php esc_html_e('Installation and Intro:', 'woo-discount-rules'); ?></h4>
|
29 |
+
<div class="col-md-12">
|
30 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/getting-started', 'getting_started', esc_html__('Getting started', 'woo-discount-rules'), esc_html__('Welcome onboard', 'woo-discount-rules')); ?>
|
31 |
+
</div>
|
32 |
+
<div class="col-md-12">
|
33 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/license-key-activation', 'license_key_activation', esc_html__('License Key activation', 'woo-discount-rules'), esc_html__('Learn how to obtain the license key and activate it', 'woo-discount-rules')); ?>
|
34 |
+
</div>
|
35 |
+
<div class="col-md-12">
|
36 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/version-updates', 'version_updates', esc_html__('Version Updates!', 'woo-discount-rules'), esc_html__('Learn how to update to latest versions', 'woo-discount-rules')); ?>
|
37 |
+
</div>
|
38 |
+
<div class="col-md-12">
|
39 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('introduction/popular-discount-scenarios', 'popular_discount_rules', esc_html__('Popular Discount Rules', 'woo-discount-rules'), esc_html__('What type of discount scenarios are most commonly used', 'woo-discount-rules')); ?>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
<div class="col-md-4">
|
43 |
+
<h4><?php esc_html_e('Price rules/BOGO discounts:', 'woo-discount-rules'); ?></h4>
|
44 |
+
<div class="col-md-12">
|
45 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('simple-discount-rules/bulk-discounts-tiered-pricing-discounts', 'bulk_pricing_discount', esc_html__('Bulk/Tiered pricing discounts', 'woo-discount-rules'), esc_html__('Learn how to create bulk/tiered quantity discounts in WooCommerce', 'woo-discount-rules')); ?>
|
46 |
+
</div>
|
47 |
+
<div class="col-md-12">
|
48 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('buy-one-get-one-deals/how-to-create-a-perfect-bogo-discount-rule-in-woocommerce', 'perfect_bogo', esc_html__('How to create a perfect BOGO discount rule in WooCommerce', 'woo-discount-rules'), esc_html__('Buy One Get One deals can be simple to complex. Learn how to get them working correct in your online store', 'woo-discount-rules')); ?>
|
49 |
+
</div>
|
50 |
+
<div class="col-md-12">
|
51 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('role-based-discounts/user-role-based-discount-rules', 'role_based', esc_html__('User Role based discount rules', 'woo-discount-rules'), esc_html__('Learn how to create user role based / customer group based discount in WooCommerce', 'woo-discount-rules')); ?>
|
52 |
+
</div>
|
53 |
+
<div class="col-md-12">
|
54 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('purchase-history-based-discounts/purchase-history-based-discount', 'purchase_history', esc_html__('Purchase History Based Discount', 'woo-discount-rules'), esc_html__('Price Rule and Cart Rule which gives discount based on the purchase history', 'woo-discount-rules')); ?>
|
55 |
+
</div>
|
56 |
+
<div class="col-md-12">
|
57 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('coupon-based-discounts/activate-discount-rule-using-a-coupon-code-in-woocommerce', 'coupon_based', esc_html__('Coupon code based discounts', 'woo-discount-rules'), esc_html__('Apply the dynamic discount rules after the customer enters a valid coupon code', 'woo-discount-rules')); ?>
|
58 |
+
</div>
|
59 |
+
</div>
|
60 |
+
<div class="col-md-4">
|
61 |
+
<h4><?php esc_html_e('Cart Based Rules:', 'woo-discount-rules'); ?></h4>
|
62 |
+
<div class="col-md-12">
|
63 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('shipping-based-discounts/free-shipping-cart-based-rule', 'free_shipping', esc_html__('Free Shipping', 'woo-discount-rules'), esc_html__('Learn how to create a free shipping cart based rule', 'woo-discount-rules')); ?>
|
64 |
+
</div>
|
65 |
+
<div class="col-md-12">
|
66 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('subtotal-based-discounts/subtotal-based-tiered-discounts', 'subtotal_based', esc_html__('Subtotal based - Tiered discounts', 'woo-discount-rules'), esc_html__('Learn how to create tiered discount based on the subtotal value', 'woo-discount-rules')); ?>
|
67 |
+
</div>
|
68 |
+
<div class="col-md-12">
|
69 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('cart-based-discount-examples/free-product-cart-based-rules', 'free_product', esc_html__('Free product discount', 'woo-discount-rules'), esc_html__('How to provide a automatic adding free product in cart under certain conditions', 'woo-discount-rules')); ?>
|
70 |
+
</div>
|
71 |
+
<div class="col-md-12">
|
72 |
+
<?php echo FlycartWooDiscountRulesGeneralHelper::docsURLHTMLForDocumentation('category-specific-discount/category-combination-get-discount-only-when-category-a-b-c-are-in-the-cart', 'category_combination', esc_html__('Category Combination', 'woo-discount-rules'), esc_html__('Category Combination (get discount only when Category A+ B + C are in the cart)', 'woo-discount-rules')); ?>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
</div>
|
76 |
</div>
|
77 |
</div>
|
view/settings_price_rules.php
CHANGED
@@ -87,6 +87,18 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
87 |
<label><input type="radio" name="add_free_product_on_coupon_applied" value="0" <?php echo ($data['add_free_product_on_coupon_applied'] == 0)? 'checked': '' ?> /> <?php esc_html_e('No', 'woo-discount-rules'); ?></label>
|
88 |
</div>
|
89 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
<div class="row form-group">
|
91 |
<div class="col-md-2">
|
92 |
<label>
|
87 |
<label><input type="radio" name="add_free_product_on_coupon_applied" value="0" <?php echo ($data['add_free_product_on_coupon_applied'] == 0)? 'checked': '' ?> /> <?php esc_html_e('No', 'woo-discount-rules'); ?></label>
|
88 |
</div>
|
89 |
</div>
|
90 |
+
<div class="row form-group">
|
91 |
+
<div class="col-md-2">
|
92 |
+
<label>
|
93 |
+
<?php esc_html_e('Auto add free product when checkout fields changed (For purchase history rules)', 'woo-discount-rules'); ?>
|
94 |
+
</label>
|
95 |
+
</div>
|
96 |
+
<?php $data['add_free_product_on_change_checkout_fields'] = (isset($data['add_free_product_on_change_checkout_fields']) ? $data['add_free_product_on_change_checkout_fields'] : 0); ?>
|
97 |
+
<div class="col-md-6">
|
98 |
+
<label><input type="radio" name="add_free_product_on_change_checkout_fields" value="1" <?php echo ($data['add_free_product_on_change_checkout_fields'] == 1)? 'checked': '' ?>/> <?php esc_html_e('Yes', 'woo-discount-rules'); ?></label>
|
99 |
+
<label><input type="radio" name="add_free_product_on_change_checkout_fields" value="0" <?php echo ($data['add_free_product_on_change_checkout_fields'] == 0)? 'checked': '' ?> /> <?php esc_html_e('No', 'woo-discount-rules'); ?></label>
|
100 |
+
</div>
|
101 |
+
</div>
|
102 |
<div class="row form-group">
|
103 |
<div class="col-md-2">
|
104 |
<label>
|
view/view-pricing-rules.php
CHANGED
@@ -63,9 +63,8 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
63 |
?>
|
64 |
<div class="form-group">
|
65 |
<div class="row">
|
66 |
-
<div class="col-md-3"><label> <?php esc_html_e('Priority :', 'woo-discount-rules'); ?>
|
67 |
-
|
68 |
-
title="<?php esc_html_e('The Simple Ranking concept to said, which one is going to execute first and so on.', 'woo-discount-rules'); ?>"></i></label>
|
69 |
</div>
|
70 |
<div class="col-md-6"><input type="number" class="rule_order"
|
71 |
id="rule_order"
|
@@ -78,9 +77,11 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
78 |
</div>
|
79 |
<div class="form-group">
|
80 |
<div class="row">
|
81 |
-
<div class="col-md-3"
|
82 |
-
|
83 |
-
|
|
|
|
|
84 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
85 |
id="rule_name"
|
86 |
name="rule_name"
|
@@ -90,9 +91,9 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
90 |
</div>
|
91 |
<div class="form-group">
|
92 |
<div class="row">
|
93 |
-
<div class="col-md-3"><label> <?php esc_html_e('Rule Description', 'woo-discount-rules'); ?>
|
94 |
-
|
95 |
-
|
96 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
97 |
name="rule_descr"
|
98 |
value="<?php echo(isset($data->rule_descr) ? $data->rule_descr : ''); ?>"
|
@@ -101,9 +102,9 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
101 |
</div>
|
102 |
<div class="form-group">
|
103 |
<div class="row">
|
104 |
-
<div class="col-md-3"><label> <?php esc_html_e('Method', 'woo-discount-rules'); ?>
|
105 |
-
|
106 |
-
|
107 |
<?php $opt = (isset($data->rule_method) ? $data->rule_method : ''); ?>
|
108 |
<div class="col-md-6"><select class="form-control"
|
109 |
name="rule_method" id="price_rule_method">
|
@@ -225,7 +226,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
225 |
echo FlycartWoocommerceProduct::getProductAjaxSelectBox($products_list, 'product_to_apply');
|
226 |
?>
|
227 |
</div>
|
228 |
-
<?php $is_cumulative_for_products = (isset($data->is_cumulative_for_products))? $data->is_cumulative_for_products :
|
229 |
<div class="form-group" id="cumulative_for_products_cont">
|
230 |
<input type="checkbox" name="is_cumulative_for_products" id="is_cumulative_for_products" value="1" <?php if($is_cumulative_for_products) { echo "checked"; } ?>> <label class="checkbox_label" for="is_cumulative_for_products"><?php esc_html_e('Check this box to count item quantities in cart cumulatively across products', 'woo-discount-rules'); ?></label>
|
231 |
</div>
|
@@ -238,7 +239,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
238 |
value="<?php echo $index; ?>"<?php if (in_array($index, $category_list)) { ?> selected=selected <?php } ?>><?php echo $value; ?></option>
|
239 |
<?php } ?>
|
240 |
</select>
|
241 |
-
<?php $is_cumulative = (isset($data->is_cumulative))? $data->is_cumulative :
|
242 |
<input type="checkbox" name="is_cumulative" id="is_cumulative" value="1" <?php if($is_cumulative) { echo "checked"; } ?>> <label class="checkbox_label" for="is_cumulative"><?php esc_html_e('Check this box to count quantities cumulatively across category(ies)', 'woo-discount-rules'); ?></label>
|
243 |
<div class="apply_child_categories">
|
244 |
<?php $apply_child_categories = (isset($data->apply_child_categories))? $data->apply_child_categories : 0 ?>
|
@@ -254,7 +255,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
254 |
value="<?php echo $value['id']; ?>"<?php if (in_array($value['id'], $attribute_list)) { ?> selected=selected <?php } ?>><?php echo $value['text']; ?></option>
|
255 |
<?php } ?>
|
256 |
</select>
|
257 |
-
<?php $is_cumulative_attribute = (isset($data->is_cumulative_attribute))? $data->is_cumulative_attribute :
|
258 |
<div class="form-group">
|
259 |
<input type="checkbox" name="is_cumulative_attribute" id="is_cumulative_attribute" value="1" <?php if($is_cumulative_attribute) { echo "checked"; } ?>> <label class="checkbox_label" for="is_cumulative_attribute"><?php esc_html_e('Check this box to count quantities cumulatively across attribute', 'woo-discount-rules'); ?></label>
|
260 |
</div>
|
@@ -434,7 +435,9 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
434 |
</div>
|
435 |
<div class="form-group">
|
436 |
<div class="row">
|
437 |
-
<div class="col-md-3"><label> <?php esc_html_e('Subtotal', 'woo-discount-rules') ?>
|
|
|
|
|
438 |
<div class="col-md-9">
|
439 |
<?php
|
440 |
if($pro){
|
@@ -569,8 +572,8 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
569 |
<option value="combine"<?php echo ($product_based_condition_product_buy_type == 'combine')? ' selected="selected"': ''; ?>><?php esc_html_e('Combine', 'woo-discount-rules') ?></option>
|
570 |
</select>
|
571 |
<select class="selectpicker" id="product_based_condition_quantity_rule" name="product_based_condition[product_quantity_rule]">
|
572 |
-
<option value="more"<?php echo ($product_based_condition_product_quantity_rule == 'more')? ' selected="selected"': ''; ?>><?php esc_html_e('More than', 'woo-discount-rules') ?></option>
|
573 |
-
<option value="less"<?php echo ($product_based_condition_product_quantity_rule == 'less')? ' selected="selected"': ''; ?>><?php esc_html_e('Less than', 'woo-discount-rules') ?></option>
|
574 |
<option value="equal"<?php echo ($product_based_condition_product_quantity_rule == 'equal')? ' selected="selected"': ''; ?>><?php esc_html_e('Equal', 'woo-discount-rules') ?></option>
|
575 |
<option value="from"<?php echo ($product_based_condition_product_quantity_rule == 'from')? ' selected="selected"': ''; ?>><?php esc_html_e('From', 'woo-discount-rules') ?></option>
|
576 |
</select>
|
@@ -635,7 +638,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
635 |
<hr>
|
636 |
<div id="discount_rule_list">
|
637 |
<?php
|
638 |
-
$discount_range = new stdClass();
|
639 |
if (isset($data->discount_range)) {
|
640 |
if (is_string($data->discount_range)) {
|
641 |
$discount_range = json_decode($data->discount_range);
|
@@ -694,12 +697,19 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
694 |
<?php } ?>
|
695 |
</option>
|
696 |
</select></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
697 |
<label><span class="hide-for-product-discount"><?php esc_html_e('Value', 'woo-discount-rules'); ?></span>
|
698 |
<input type="text"
|
699 |
name="discount_range[<?php echo $fieldIndex; ?>][to_discount]"
|
700 |
class="form-control price_discount_amount"
|
701 |
value="<?php echo(isset($discount->to_discount) ? $discount->to_discount : ''); ?>"
|
702 |
placeholder="<?php esc_attr_e('ex. 50', 'woo-discount-rules'); ?>">
|
|
|
703 |
<?php
|
704 |
$products_list = (isset($discount->discount_product) ? $discount->discount_product : array());
|
705 |
$discount_product_option = (isset($discount->discount_product_option) ? $discount->discount_product_option : 'all');
|
@@ -727,7 +737,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
727 |
</div>
|
728 |
<div class="discount_product_option_more_cheapest_con hide">
|
729 |
<?php
|
730 |
-
$discount_product_item_type = (isset($discount->discount_product_item_type) ? $discount->discount_product_item_type : '
|
731 |
?>
|
732 |
<select class="selectpicker discount_product_item_count_type" name="discount_range[<?php echo $fieldIndex; ?>][discount_product_item_type]">
|
733 |
<option value="dynamic"<?php echo ($discount_product_item_type == 'dynamic')? ' selected="selected"': '' ?>><?php esc_html_e('Dynamic item count', 'woo-discount-rules') ?></option>
|
@@ -784,7 +794,7 @@ $current_date_and_time = FlycartWooDiscountRulesGeneralHelper::getCurrentDateAnd
|
|
784 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_percent]"
|
785 |
class="discount_product_percent_field"
|
786 |
value="<?php echo(isset($discount->discount_product_percent) ? $discount->discount_product_percent : ''); ?>"
|
787 |
-
placeholder="<?php esc_attr_e('ex. 10', 'woo-discount-rules'); ?>" /><span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('
|
788 |
</span>
|
789 |
</div>
|
790 |
</div>
|
63 |
?>
|
64 |
<div class="form-group">
|
65 |
<div class="row">
|
66 |
+
<div class="col-md-3"><label> <?php esc_html_e('Priority :', 'woo-discount-rules'); ?> </label>
|
67 |
+
<span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('The Simple Ranking concept, which one is going to execute first and so on.', 'woo-discount-rules'); ?>"></span>
|
|
|
68 |
</div>
|
69 |
<div class="col-md-6"><input type="number" class="rule_order"
|
70 |
id="rule_order"
|
77 |
</div>
|
78 |
<div class="form-group">
|
79 |
<div class="row">
|
80 |
+
<div class="col-md-3">
|
81 |
+
<label> <?php esc_html_e('Rule Name', 'woo-discount-rules'); ?>
|
82 |
+
<span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Rule name / title.', 'woo-discount-rules'); ?>"></span>
|
83 |
+
</label>
|
84 |
+
</div>
|
85 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
86 |
id="rule_name"
|
87 |
name="rule_name"
|
91 |
</div>
|
92 |
<div class="form-group">
|
93 |
<div class="row">
|
94 |
+
<div class="col-md-3"><label> <?php esc_html_e('Rule Description', 'woo-discount-rules'); ?>
|
95 |
+
<span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Rule Descriptions.', 'woo-discount-rules'); ?>"></span>
|
96 |
+
</label></div>
|
97 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
98 |
name="rule_descr"
|
99 |
value="<?php echo(isset($data->rule_descr) ? $data->rule_descr : ''); ?>"
|
102 |
</div>
|
103 |
<div class="form-group">
|
104 |
<div class="row">
|
105 |
+
<div class="col-md-3"><label> <?php esc_html_e('Method', 'woo-discount-rules'); ?>
|
106 |
+
<span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Method to Apply.', 'woo-discount-rules'); ?>"></span>
|
107 |
+
</label></div>
|
108 |
<?php $opt = (isset($data->rule_method) ? $data->rule_method : ''); ?>
|
109 |
<div class="col-md-6"><select class="form-control"
|
110 |
name="rule_method" id="price_rule_method">
|
226 |
echo FlycartWoocommerceProduct::getProductAjaxSelectBox($products_list, 'product_to_apply');
|
227 |
?>
|
228 |
</div>
|
229 |
+
<?php $is_cumulative_for_products = (isset($data->is_cumulative_for_products))? $data->is_cumulative_for_products : 1 ?>
|
230 |
<div class="form-group" id="cumulative_for_products_cont">
|
231 |
<input type="checkbox" name="is_cumulative_for_products" id="is_cumulative_for_products" value="1" <?php if($is_cumulative_for_products) { echo "checked"; } ?>> <label class="checkbox_label" for="is_cumulative_for_products"><?php esc_html_e('Check this box to count item quantities in cart cumulatively across products', 'woo-discount-rules'); ?></label>
|
232 |
</div>
|
239 |
value="<?php echo $index; ?>"<?php if (in_array($index, $category_list)) { ?> selected=selected <?php } ?>><?php echo $value; ?></option>
|
240 |
<?php } ?>
|
241 |
</select>
|
242 |
+
<?php $is_cumulative = (isset($data->is_cumulative))? $data->is_cumulative : 1 ?>
|
243 |
<input type="checkbox" name="is_cumulative" id="is_cumulative" value="1" <?php if($is_cumulative) { echo "checked"; } ?>> <label class="checkbox_label" for="is_cumulative"><?php esc_html_e('Check this box to count quantities cumulatively across category(ies)', 'woo-discount-rules'); ?></label>
|
244 |
<div class="apply_child_categories">
|
245 |
<?php $apply_child_categories = (isset($data->apply_child_categories))? $data->apply_child_categories : 0 ?>
|
255 |
value="<?php echo $value['id']; ?>"<?php if (in_array($value['id'], $attribute_list)) { ?> selected=selected <?php } ?>><?php echo $value['text']; ?></option>
|
256 |
<?php } ?>
|
257 |
</select>
|
258 |
+
<?php $is_cumulative_attribute = (isset($data->is_cumulative_attribute))? $data->is_cumulative_attribute : 1 ?>
|
259 |
<div class="form-group">
|
260 |
<input type="checkbox" name="is_cumulative_attribute" id="is_cumulative_attribute" value="1" <?php if($is_cumulative_attribute) { echo "checked"; } ?>> <label class="checkbox_label" for="is_cumulative_attribute"><?php esc_html_e('Check this box to count quantities cumulatively across attribute', 'woo-discount-rules'); ?></label>
|
261 |
</div>
|
435 |
</div>
|
436 |
<div class="form-group">
|
437 |
<div class="row">
|
438 |
+
<div class="col-md-3"><label> <?php esc_html_e('Subtotal', 'woo-discount-rules') ?>
|
439 |
+
<span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Applies for the whole cart subtotal (not recommended).', 'woo-discount-rules'); ?>"></span>
|
440 |
+
</label></div>
|
441 |
<div class="col-md-9">
|
442 |
<?php
|
443 |
if($pro){
|
572 |
<option value="combine"<?php echo ($product_based_condition_product_buy_type == 'combine')? ' selected="selected"': ''; ?>><?php esc_html_e('Combine', 'woo-discount-rules') ?></option>
|
573 |
</select>
|
574 |
<select class="selectpicker" id="product_based_condition_quantity_rule" name="product_based_condition[product_quantity_rule]">
|
575 |
+
<option value="more"<?php echo ($product_based_condition_product_quantity_rule == 'more')? ' selected="selected"': ''; ?>><?php esc_html_e('More than or equal to', 'woo-discount-rules') ?></option>
|
576 |
+
<option value="less"<?php echo ($product_based_condition_product_quantity_rule == 'less')? ' selected="selected"': ''; ?>><?php esc_html_e('Less than or equal to', 'woo-discount-rules') ?></option>
|
577 |
<option value="equal"<?php echo ($product_based_condition_product_quantity_rule == 'equal')? ' selected="selected"': ''; ?>><?php esc_html_e('Equal', 'woo-discount-rules') ?></option>
|
578 |
<option value="from"<?php echo ($product_based_condition_product_quantity_rule == 'from')? ' selected="selected"': ''; ?>><?php esc_html_e('From', 'woo-discount-rules') ?></option>
|
579 |
</select>
|
638 |
<hr>
|
639 |
<div id="discount_rule_list">
|
640 |
<?php
|
641 |
+
$discount_range = array(0 => '');//new stdClass();
|
642 |
if (isset($data->discount_range)) {
|
643 |
if (is_string($data->discount_range)) {
|
644 |
$discount_range = json_decode($data->discount_range);
|
697 |
<?php } ?>
|
698 |
</option>
|
699 |
</select></label>
|
700 |
+
<label>
|
701 |
+
<span class="price_discount_amount price_discount_amount_tool_tip_con">
|
702 |
+
<span class="woocommerce-help-tip percentage_discount_amount_tool_tip" data-tip="<?php esc_attr_e('Enter only numeric values. Eg: <b>50</b> for 50% discount', 'woo-discount-rules'); ?>"></span>
|
703 |
+
<span class="woocommerce-help-tip price_discount_amount_tool_tip" data-tip="<?php echo sprintf(esc_attr__('Enter the discount price. Eg: <b>10</b> for %s discount', 'woo-discount-rules'), htmlentities(FlycartWoocommerceProduct::wc_price(10))); ?>"></span>
|
704 |
+
</span>
|
705 |
+
</label>
|
706 |
<label><span class="hide-for-product-discount"><?php esc_html_e('Value', 'woo-discount-rules'); ?></span>
|
707 |
<input type="text"
|
708 |
name="discount_range[<?php echo $fieldIndex; ?>][to_discount]"
|
709 |
class="form-control price_discount_amount"
|
710 |
value="<?php echo(isset($discount->to_discount) ? $discount->to_discount : ''); ?>"
|
711 |
placeholder="<?php esc_attr_e('ex. 50', 'woo-discount-rules'); ?>">
|
712 |
+
|
713 |
<?php
|
714 |
$products_list = (isset($discount->discount_product) ? $discount->discount_product : array());
|
715 |
$discount_product_option = (isset($discount->discount_product_option) ? $discount->discount_product_option : 'all');
|
737 |
</div>
|
738 |
<div class="discount_product_option_more_cheapest_con hide">
|
739 |
<?php
|
740 |
+
$discount_product_item_type = (isset($discount->discount_product_item_type) ? $discount->discount_product_item_type : 'dynamic');
|
741 |
?>
|
742 |
<select class="selectpicker discount_product_item_count_type" name="discount_range[<?php echo $fieldIndex; ?>][discount_product_item_type]">
|
743 |
<option value="dynamic"<?php echo ($discount_product_item_type == 'dynamic')? ' selected="selected"': '' ?>><?php esc_html_e('Dynamic item count', 'woo-discount-rules') ?></option>
|
794 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_percent]"
|
795 |
class="discount_product_percent_field"
|
796 |
value="<?php echo(isset($discount->discount_product_percent) ? $discount->discount_product_percent : ''); ?>"
|
797 |
+
placeholder="<?php esc_attr_e('ex. 10', 'woo-discount-rules'); ?>" /><span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Enter only numeric values. Eg: <b>50</b> for 50% discount', 'woo-discount-rules'); ?>"></span>
|
798 |
</span>
|
799 |
</div>
|
800 |
</div>
|
woo-discount-rules.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Simple Discount Rules for WooCommerce.
|
6 |
* Author: Flycart Technologies LLP
|
7 |
* Author URI: https://www.flycart.org
|
8 |
-
* Version: 1.7.
|
9 |
* Slug: woo-discount-rules
|
10 |
* Text Domain: woo-discount-rules
|
11 |
* Domain Path: /i18n/languages/
|
5 |
* Description: Simple Discount Rules for WooCommerce.
|
6 |
* Author: Flycart Technologies LLP
|
7 |
* Author URI: https://www.flycart.org
|
8 |
+
* Version: 1.7.17
|
9 |
* Slug: woo-discount-rules
|
10 |
* Text Domain: woo-discount-rules
|
11 |
* Domain Path: /i18n/languages/
|