Version Description
- 27/06/18 =
- Fix - Warning while ajax request in admin
- Improvement - Localisation improvement
- Improvement - Display sale tag and strike-out even if they have 100% discount
Download this release
Release Info
Developer | flycart |
Plugin | Discount Rules for WooCommerce |
Version | 1.6.6 |
Comparing to | |
See all releases |
Code changes from version 1.6.5 to 1.6.6
- assets/js/app.js +100 -93
- helper/general-helper.php +6 -1
- helper/purchase.php +12 -12
- i18n/languages/{woo-discount-rules.po → woo-discount-rules.pot} +377 -180
- includes/discount-base.php +91 -1
- includes/pricing-rules.php +80 -17
- readme.txt +6 -1
- view/cart-rules.php +1 -1
- view/includes/cart-menu.php +4 -4
- view/includes/menu.php +4 -4
- view/pricing-rules.php +1 -1
- view/settings.php +7 -7
- view/template/sidebar.php +1 -1
- view/view-cart-rules.php +24 -6
- view/view-pricing-rules.php +34 -21
- woo-discount-rules.php +1 -1
assets/js/app.js
CHANGED
@@ -11,7 +11,7 @@ function validateFields(){
|
|
11 |
$('a.general_tab').trigger('click');
|
12 |
rule_order.addClass('invalid-field');
|
13 |
rule_order.next('.error').remove();
|
14 |
-
rule_order.after('<span class="error">
|
15 |
returnValue = false;
|
16 |
}
|
17 |
|
@@ -57,6 +57,10 @@ function trigger_woocommerce_tooltip(){
|
|
57 |
$('#user_list').css('display', 'none');
|
58 |
}
|
59 |
|
|
|
|
|
|
|
|
|
60 |
// Saving Rule.
|
61 |
$('#savePriceRule').on('click', function (event) {
|
62 |
var validate = validateFields();
|
@@ -70,9 +74,9 @@ function trigger_woocommerce_tooltip(){
|
|
70 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
71 |
event.preventDefault();
|
72 |
if ($('#rule_name').val() == '') {
|
73 |
-
alert(
|
74 |
} else {
|
75 |
-
current.val(
|
76 |
$.ajax({
|
77 |
url: ajax_url,
|
78 |
type: 'POST',
|
@@ -86,7 +90,7 @@ function trigger_woocommerce_tooltip(){
|
|
86 |
success: function () {
|
87 |
// After Status Changed.
|
88 |
resizeChart = setTimeout(function () {
|
89 |
-
current.val(
|
90 |
}, 300);
|
91 |
// Reset, if its New Form.
|
92 |
if (rule_id == 0) {
|
@@ -106,7 +110,7 @@ function trigger_woocommerce_tooltip(){
|
|
106 |
var resp_msg = $('#woo-disc-license-check-msg');
|
107 |
if(license_key.val() == ''){
|
108 |
license_key.addClass('invalid-field');
|
109 |
-
resp_msg.html('<div class="notice-message error inline notice-error notice-alt">
|
110 |
return false;
|
111 |
}else{
|
112 |
license_key.removeClass('invalid-field');
|
@@ -120,7 +124,7 @@ function trigger_woocommerce_tooltip(){
|
|
120 |
|
121 |
current.removeClass('button-primary');
|
122 |
current.addClass('button-secondary');
|
123 |
-
current.val(
|
124 |
$('.license-success, .license-failed').hide();
|
125 |
var license_chk_req = $.ajax({
|
126 |
url: ajax_url,
|
@@ -154,35 +158,35 @@ function trigger_woocommerce_tooltip(){
|
|
154 |
$('#addNewDiscountRange').on('click', function () {
|
155 |
var count = $('.discount_rule_list').length + 1;
|
156 |
if (is_pro) {
|
157 |
-
var form = '<div class="discount_rule_list"> <div class="form-group"><label>
|
158 |
-
'<label>
|
159 |
-
'<option value="percentage_discount">
|
160 |
-
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="
|
161 |
form += '<div class="price_discount_product_list_con hide">' +
|
162 |
-
'
|
163 |
-
'<option value="more_than_one_cheapest_from_cat">
|
164 |
'</select>';
|
165 |
form += '<div class="discount_product_option_bogo_con">';
|
166 |
-
form += ' <label>
|
167 |
form += '</div>';
|
168 |
form += '<div class="discount_product_option_more_cheapest_con hide">';
|
169 |
form += '<select class="selectpicker discount_product_item_count_type" name="discount_range['+count+'][discount_product_item_type]">';
|
170 |
-
form += '<option value="static">
|
171 |
-
form += '<option value="dynamic">
|
172 |
form += '</select>';
|
173 |
-
form += '<span class="woocommerce-help-tip" data-tip="
|
174 |
-
form += ' <label class="discount_product_items_count_field">
|
175 |
-
form += ' <label>
|
176 |
form += '</div>';
|
177 |
form += '<div class="discount_product_option_list_con">';
|
178 |
if($('#flycart_wdr_woocommerce_version').val() == 2){
|
179 |
-
form += ' <input type="hidden" class="wc-product-search" style="min-width: 250px" data-multiple="true" name="discount_range[' + count + '][discount_product][]" data-placeholder="
|
180 |
} else {
|
181 |
-
form += ' <select class="wc-product-search" multiple="multiple" style="min-width: 250px" name="discount_range[' + count + '][discount_product][]" data-placeholder="
|
182 |
}
|
183 |
form += '</div>';
|
184 |
form += '<div class="discount_category_option_list_con hide">';
|
185 |
-
form += ' <select class="category_list selectpicker" multiple name="discount_range[' + count + '][discount_category][]">';
|
186 |
$("#category_list select.category_list option").each(function()
|
187 |
{
|
188 |
form += '<option value="'+$(this).val()+'">'+$(this).html()+'</option>';
|
@@ -190,32 +194,35 @@ function trigger_woocommerce_tooltip(){
|
|
190 |
form += '</select>';
|
191 |
form += '</div>';
|
192 |
form += '<div class="discount_product_percent_con">';
|
193 |
-
form += '
|
194 |
-
form += '<span class="discount_product_percent_field"> <input type="text" name="discount_range['+count+'][discount_product_percent]" class="discount_product_percent_field" value="" placeholder="
|
195 |
form += '</div>';
|
196 |
form += '</div>';
|
197 |
-
form += '</label> <label><a href=javascript:void(0) class="btn btn-danger form-control remove_discount_range">
|
198 |
} else {
|
199 |
-
var form = '<div class="discount_rule_list"> <div class="form-group"><label>
|
200 |
-
'<label>
|
201 |
-
'<option value="percentage_discount">
|
202 |
-
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="
|
203 |
-
form += '<div class="price_discount_product_list_con hide"><select class="product_list selectpicker price_discount_product_list" multiple name="discount_range[' + count + '][discount_product][]">';
|
204 |
-
form += '<option>
|
205 |
form += '</select></div>';
|
206 |
-
form += '</label> <label><a href=javascript:void(0) class="btn btn-danger form-control remove_discount_range">
|
207 |
}
|
208 |
$('#discount_rule_list').append(form);
|
209 |
$('.product_list,.selectpicker').selectpicker('refresh');
|
210 |
$('.wc-product-search').trigger( 'wc-enhanced-select-init' );
|
211 |
$('select.discount_product_discount_type').trigger('change');
|
|
|
|
|
|
|
212 |
// Tooltips
|
213 |
trigger_woocommerce_tooltip();
|
214 |
});
|
215 |
|
216 |
// Removing Discount Rule.
|
217 |
$(document).on('click', '.remove_discount_range', function () {
|
218 |
-
var confirm_delete = confirm(
|
219 |
if (confirm_delete) {
|
220 |
$(this).closest('.discount_rule_list').remove();
|
221 |
}
|
@@ -236,11 +243,11 @@ function trigger_woocommerce_tooltip(){
|
|
236 |
if (status == 'Disable') {
|
237 |
current.addClass('btn-success');
|
238 |
current.removeClass('btn-warning');
|
239 |
-
current.html(
|
240 |
} else if (status == 'Publish') {
|
241 |
current.removeClass('btn-success');
|
242 |
current.addClass('btn-warning');
|
243 |
-
current.html(
|
244 |
}
|
245 |
}
|
246 |
|
@@ -253,7 +260,7 @@ function trigger_woocommerce_tooltip(){
|
|
253 |
var current = $(this);
|
254 |
var id = $(this).attr('id');
|
255 |
id = id.replace('delete_', '');
|
256 |
-
var confirm_delete = confirm(
|
257 |
if (confirm_delete) {
|
258 |
$.ajax({
|
259 |
url: ajax_url,
|
@@ -346,8 +353,10 @@ function trigger_woocommerce_tooltip(){
|
|
346 |
var option = $(this).val();
|
347 |
if (option == 'none') {
|
348 |
$('.subtotal_to_apply_price_rule_con').hide();
|
|
|
349 |
} else {
|
350 |
$('.subtotal_to_apply_price_rule_con').show();
|
|
|
351 |
}
|
352 |
});
|
353 |
$('#subtotal_option_price_rule').trigger('change');
|
@@ -392,70 +401,70 @@ function trigger_woocommerce_tooltip(){
|
|
392 |
var country_list = $('#cart_countries_list_0 > option').clone();
|
393 |
var order_status_list = $('#order_status_list_0 > option').clone();
|
394 |
if (is_pro) {
|
395 |
-
var form = '<div class="cart_rules_list row"> <div class="col-md-3 form-group"> <label>
|
396 |
-
'<optgroup label="
|
397 |
-
'<optgroup label="
|
398 |
-
'<optgroup label="
|
399 |
-
'<option value="categories_in">
|
400 |
'</optgroup>' +
|
401 |
-
'<optgroup label="
|
402 |
-
'<optgroup label="
|
403 |
-
'<optgroup label="
|
404 |
-
'<optgroup label="
|
405 |
-
'<optgroup label="
|
406 |
-
'<option value="customer_based_on_purchase_history">
|
407 |
-
'<option value="customer_based_on_purchase_history_order_count">
|
408 |
-
'<option value="customer_based_on_purchase_history_product_order_count">
|
409 |
'</optgroup>' +
|
410 |
-
'<optgroup label="
|
411 |
'</select></label></div>' +
|
412 |
-
'<div class="col-md-3 form-group"><label>
|
413 |
'<div id="user_div_' + count + '">';
|
414 |
if($('#flycart_wdr_woocommerce_version').val() == 2){
|
415 |
-
form += '<input class="wc-customer-search" style="width: 250px" name="discount_rule[' + count + '][users_to_apply][]" data-placeholder="
|
416 |
} else {
|
417 |
-
form += '<select class="wc-customer-search" style="width: 250px" multiple="multiple" name="discount_rule[' + count + '][users_to_apply][]" data-placeholder="
|
418 |
}
|
419 |
form += '</div>' +
|
420 |
-
'<div id="product_div_' + count + '"><select id="cart_product_list_' + count + '" class="product_list selectpicker" data-live-search="true" multiple name="discount_rule[' + count + '][product_to_apply][]"></select></div>' +
|
421 |
-
'<div id="category_div_' + count + '"><select id="cart_category_list_' + count + '" class="category_list selectpicker"
|
422 |
-
'<div id="roles_div_' + count + '"><select id="cart_roles_list_' + count + '" class="roles_list selectpicker" data-live-search="true" multiple name="discount_rule[' + count + '][user_roles_to_apply][]"></select></div>' +
|
423 |
-
'<div id="countries_div_' + count + '"><select id="cart_countries_list_' + count + '" class="country_list selectpicker"
|
424 |
'<div id="purchase_history_div_' + count + '">' +
|
425 |
'<div class="form-group wdr_hide" id="purchase_history_products_list_'+ count +'">'+
|
426 |
'</div>'+
|
427 |
'<select class="selectpicker purchased_history_type" data-live-search="true" name="discount_rule['+count+'][purchased_history_type]">' +
|
428 |
-
'<option value="atleast">
|
429 |
-
'<option value="less_than_or_equal">
|
430 |
'</select>' +
|
431 |
-
' <input name="discount_rule[' + count + '][purchased_history_amount]" value="" type="text"/>
|
432 |
-
'</div><div class="col-md-1"> <label>
|
433 |
'</label></div>';
|
434 |
} else {
|
435 |
-
var form = '<div class="cart_rules_list row"> <div class="col-md-3 form-group"> <label>
|
436 |
-
'<optgroup label="
|
437 |
-
'<optgroup label="
|
438 |
-
'<optgroup label="
|
439 |
-
'<option disabled>
|
440 |
'</optgroup>' +
|
441 |
-
'<optgroup label="
|
442 |
-
'<optgroup label="
|
443 |
-
'<optgroup label="
|
444 |
-
'<optgroup label="
|
445 |
-
'<optgroup label="
|
446 |
-
'<option disabled>
|
447 |
-
'<option disabled>
|
448 |
'</optgroup>' +
|
449 |
-
'<optgroup label="
|
450 |
'</select></label></div>' +
|
451 |
-
'<div class="col-md-3 form-group"><label>
|
452 |
-
'<div id="user_div_' + count + '"><select id="cart_user_list_' + count + '" class="user_list selectpicker" data-live-search="true" multiple name="discount_rule[' + count + '][users_to_apply][]"></select></div>' +
|
453 |
-
'<div id="product_div_' + count + '"><select id="cart_product_list_' + count + '" class="product_list selectpicker"
|
454 |
-
'<div id="category_div_' + count + '"><select id="cart_category_list_' + count + '" class="category_list selectpicker"
|
455 |
-
'<div id="roles_div_' + count + '"><select id="cart_roles_list_' + count + '" class="roles_list selectpicker"
|
456 |
-
'<div id="countries_div_' + count + '"><select id="cart_countries_list_' + count + '" class="country_list selectpicker"
|
457 |
-
'<div id="purchase_history_div_' + count + '"><select id="order_status_list_' + count + '" class="order_status_list selectpicker"
|
458 |
-
'</div><div class="col-md-1"> <label>
|
459 |
'</label></div>';
|
460 |
}
|
461 |
|
@@ -593,9 +602,9 @@ function trigger_woocommerce_tooltip(){
|
|
593 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
594 |
event.preventDefault();
|
595 |
if ($('#rule_name').val() == '') {
|
596 |
-
alert(
|
597 |
} else {
|
598 |
-
current.val(
|
599 |
$.ajax({
|
600 |
url: ajax_url,
|
601 |
type: 'POST',
|
@@ -608,9 +617,8 @@ function trigger_woocommerce_tooltip(){
|
|
608 |
},
|
609 |
success: function () {
|
610 |
// After Status Changed.
|
611 |
-
|
612 |
resizeChart = setTimeout(function () {
|
613 |
-
current.val(
|
614 |
}, 300);
|
615 |
|
616 |
// Reset, if its New Form.
|
@@ -626,7 +634,6 @@ function trigger_woocommerce_tooltip(){
|
|
626 |
// Change the List to Show, on change of Rule Type.
|
627 |
$('.cart_rule_type').on('change', function () {
|
628 |
var id = $(this).attr('id');
|
629 |
-
console.log(id);
|
630 |
id = id.replace('cart_condition_type_', '');
|
631 |
|
632 |
$('#cart_user_list_' + id).selectpicker('val', []);
|
@@ -653,11 +660,11 @@ function trigger_woocommerce_tooltip(){
|
|
653 |
if (status == 'Disable') {
|
654 |
current.removeClass('btn-warning');
|
655 |
current.addClass('btn-success');
|
656 |
-
current.html(
|
657 |
} else if (status == 'Publish') {
|
658 |
current.addClass('btn-warning');
|
659 |
current.removeClass('btn-success');
|
660 |
-
current.html(
|
661 |
}
|
662 |
}
|
663 |
|
@@ -670,7 +677,7 @@ function trigger_woocommerce_tooltip(){
|
|
670 |
var current = $(this);
|
671 |
var id = $(this).attr('id');
|
672 |
id = id.replace('delete_', '');
|
673 |
-
var confirm_delete = confirm(
|
674 |
if (confirm_delete) {
|
675 |
$.ajax({
|
676 |
url: ajax_url,
|
@@ -687,7 +694,7 @@ function trigger_woocommerce_tooltip(){
|
|
687 |
|
688 |
// Removing Cart Condition.
|
689 |
$(document).on('click', '.remove_cart_rule', function () {
|
690 |
-
var confirm_remove = confirm(
|
691 |
if (confirm_remove) {
|
692 |
$(this).closest('.cart_rules_list').remove();
|
693 |
}
|
@@ -745,7 +752,7 @@ function trigger_woocommerce_tooltip(){
|
|
745 |
var form = $('#discount_config').serialize();
|
746 |
var current = $(this);
|
747 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
748 |
-
current.val(
|
749 |
$.ajax({
|
750 |
url: ajax_url,
|
751 |
type: 'POST',
|
@@ -759,7 +766,7 @@ function trigger_woocommerce_tooltip(){
|
|
759 |
success: function () {
|
760 |
// After Removed.
|
761 |
resizeChart = setTimeout(function () {
|
762 |
-
current.val(
|
763 |
}, 300);
|
764 |
adminNotice();
|
765 |
}
|
@@ -832,7 +839,7 @@ function trigger_woocommerce_tooltip(){
|
|
832 |
}
|
833 |
|
834 |
function adminNotice() {
|
835 |
-
jQuery('#woo-admin-message').html(' <div class="notice notice-success is-dismissable"><p>
|
836 |
|
837 |
setTimeout(function () {
|
838 |
jQuery('#woo-admin-message').html('');
|
11 |
$('a.general_tab').trigger('click');
|
12 |
rule_order.addClass('invalid-field');
|
13 |
rule_order.next('.error').remove();
|
14 |
+
rule_order.after('<span class="error">'+woo_discount_localization.please_fill_this_field+'</span>');
|
15 |
returnValue = false;
|
16 |
}
|
17 |
|
57 |
$('#user_list').css('display', 'none');
|
58 |
}
|
59 |
|
60 |
+
if($('#subtotal_option_price_rule').val() != 'none'){
|
61 |
+
$('select.price_discount_type option[value=product_discount]').attr('disabled', 'disabled').html(woo_discount_localization.product_discount_not_work_on_subtotal_based);
|
62 |
+
}
|
63 |
+
|
64 |
// Saving Rule.
|
65 |
$('#savePriceRule').on('click', function (event) {
|
66 |
var validate = validateFields();
|
74 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
75 |
event.preventDefault();
|
76 |
if ($('#rule_name').val() == '') {
|
77 |
+
alert(woo_discount_localization.please_enter_the_rule_name);
|
78 |
} else {
|
79 |
+
current.val(woo_discount_localization.saving);
|
80 |
$.ajax({
|
81 |
url: ajax_url,
|
82 |
type: 'POST',
|
90 |
success: function () {
|
91 |
// After Status Changed.
|
92 |
resizeChart = setTimeout(function () {
|
93 |
+
current.val(woo_discount_localization.save_rule);
|
94 |
}, 300);
|
95 |
// Reset, if its New Form.
|
96 |
if (rule_id == 0) {
|
110 |
var resp_msg = $('#woo-disc-license-check-msg');
|
111 |
if(license_key.val() == ''){
|
112 |
license_key.addClass('invalid-field');
|
113 |
+
resp_msg.html('<div class="notice-message error inline notice-error notice-alt">'+woo_discount_localization.please_enter_a_key+'</div>');
|
114 |
return false;
|
115 |
}else{
|
116 |
license_key.removeClass('invalid-field');
|
124 |
|
125 |
current.removeClass('button-primary');
|
126 |
current.addClass('button-secondary');
|
127 |
+
current.val(woo_discount_localization.saving);
|
128 |
$('.license-success, .license-failed').hide();
|
129 |
var license_chk_req = $.ajax({
|
130 |
url: ajax_url,
|
158 |
$('#addNewDiscountRange').on('click', function () {
|
159 |
var count = $('.discount_rule_list').length + 1;
|
160 |
if (is_pro) {
|
161 |
+
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" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'"></label>' +
|
162 |
+
'<label>'+woo_discount_localization.max_quantity+' <input type="text" name="discount_range[' + count + '][max_qty]" class="form-control" 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]"> ' +
|
163 |
+
'<option value="percentage_discount"> '+woo_discount_localization.percentage_discount+' </option> <option value="price_discount">'+woo_discount_localization.price_discount+' </option> <option value="product_discount">'+woo_discount_localization.product_discount+' </option> </select></label> <label><span class="hide-for-product-discount">'+woo_discount_localization.value_text+'</span>' +
|
164 |
+
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> ';
|
165 |
form += '<div class="price_discount_product_list_con hide">' +
|
166 |
+
' '+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>' +
|
167 |
+
'<option value="more_than_one_cheapest_from_cat">'+woo_discount_localization.more_than_one_cheapest_from_selected_category+'</option><option value="more_than_one_cheapest">'+woo_discount_localization.more_than_one_cheapest_from_selected+'</option><option value="more_than_one_cheapest_from_all">'+woo_discount_localization.more_than_one_cheapest_from_all+'</option>' +
|
168 |
'</select>';
|
169 |
form += '<div class="discount_product_option_bogo_con">';
|
170 |
+
form += ' <label> '+woo_discount_localization.free_quantity+' <span class="woocommerce-help-tip" data-tip="'+woo_discount_localization.number_of_quantities_in_each_products+'"></span> <input type="text" name="discount_range['+count+'][discount_bogo_qty]" class="form-control" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'" /></label>';
|
171 |
form += '</div>';
|
172 |
form += '<div class="discount_product_option_more_cheapest_con hide">';
|
173 |
form += '<select class="selectpicker discount_product_item_count_type" name="discount_range['+count+'][discount_product_item_type]">';
|
174 |
+
form += '<option value="static">'+woo_discount_localization.fixed_item_count+'</option>';
|
175 |
+
form += '<option value="dynamic">'+woo_discount_localization.dynamic_item_count+'</option>';
|
176 |
form += '</select>';
|
177 |
+
form += '<span class="woocommerce-help-tip" data-tip="'+woo_discount_localization.fixed_item_count_tooltip+'"></span>';
|
178 |
+
form += ' <label class="discount_product_items_count_field"> '+woo_discount_localization.item_count+' <span class="woocommerce-help-tip" data-tip="'+woo_discount_localization.discount_number_of_item_tooltip+'"></span><input type="text" name="discount_range['+count+'][discount_product_items]" class="form-control discount_product_items_count_field" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'" /></label>';
|
179 |
+
form += ' <label> '+woo_discount_localization.item_quantity+' <span class="woocommerce-help-tip" data-tip="'+woo_discount_localization.discount_number_of_each_item_tooltip+'"></span><input type="text" name="discount_range['+count+'][discount_product_qty]" class="form-control" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'" /></label>';
|
180 |
form += '</div>';
|
181 |
form += '<div class="discount_product_option_list_con">';
|
182 |
if($('#flycart_wdr_woocommerce_version').val() == 2){
|
183 |
+
form += ' <input type="hidden" class="wc-product-search" style="min-width: 250px" data-multiple="true" name="discount_range[' + count + '][discount_product][]" data-placeholder="'+woo_discount_localization.place_holder_search_for_products+'" data-action="woocommerce_json_search_products_and_variations" data-selected=""/>';
|
184 |
} else {
|
185 |
+
form += ' <select class="wc-product-search" multiple="multiple" style="min-width: 250px" name="discount_range[' + count + '][discount_product][]" data-placeholder="'+woo_discount_localization.place_holder_search_for_products+'" data-action="woocommerce_json_search_products_and_variations"></select>'
|
186 |
}
|
187 |
form += '</div>';
|
188 |
form += '<div class="discount_category_option_list_con hide">';
|
189 |
+
form += ' <select class="category_list selectpicker" multiple title="'+woo_discount_localization.none_selected+'" name="discount_range[' + count + '][discount_category][]">';
|
190 |
$("#category_list select.category_list option").each(function()
|
191 |
{
|
192 |
form += '<option value="'+$(this).val()+'">'+$(this).html()+'</option>';
|
194 |
form += '</select>';
|
195 |
form += '</div>';
|
196 |
form += '<div class="discount_product_percent_con">';
|
197 |
+
form += ' '+woo_discount_localization.and_text+' <select class="selectpicker discount_product_discount_type" name="discount_range['+ count +'][discount_product_discount_type]"><option value="">'+woo_discount_localization.percent_100+'</option><option value="limited_percent">'+woo_discount_localization.limited_percent+'</option></select>';
|
198 |
+
form += '<span class="discount_product_percent_field"> <input type="text" name="discount_range['+count+'][discount_product_percent]" class="discount_product_percent_field" value="" placeholder="'+woo_discount_localization.place_holder_ex_10+'" /><span class="woocommerce-help-tip" data-tip="'+woo_discount_localization.percentage_tooltip+'"></span></span> '+woo_discount_localization.as_discount;
|
199 |
form += '</div>';
|
200 |
form += '</div>';
|
201 |
+
form += '</label> <label><a href=javascript:void(0) class="btn btn-danger form-control remove_discount_range">'+woo_discount_localization.remove_text+'</a></label> </div> </div>';
|
202 |
} else {
|
203 |
+
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" value="" placeholder="'+woo_discount_localization.place_holder_ex_1+'"></label>' +
|
204 |
+
'<label>'+woo_discount_localization.max_quantity+' <input type="text" name="discount_range[' + count + '][max_qty]" class="form-control" 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]"> ' +
|
205 |
+
'<option value="percentage_discount"> '+woo_discount_localization.percentage_discount+' </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> <label>'+woo_discount_localization.value_text+' ' +
|
206 |
+
'<input type="text" name="discount_range[' + count + '][to_discount]" class="form-control price_discount_amount" value="" placeholder="'+woo_discount_localization.place_holder_ex_50+'"> ';
|
207 |
+
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][]">';
|
208 |
+
form += '<option>'+woo_discount_localization.none_text+'</option>';
|
209 |
form += '</select></div>';
|
210 |
+
form += '</label> <label><a href=javascript:void(0) class="btn btn-danger form-control remove_discount_range">'+woo_discount_localization.remove_text+'</a> </label></div> </div>';
|
211 |
}
|
212 |
$('#discount_rule_list').append(form);
|
213 |
$('.product_list,.selectpicker').selectpicker('refresh');
|
214 |
$('.wc-product-search').trigger( 'wc-enhanced-select-init' );
|
215 |
$('select.discount_product_discount_type').trigger('change');
|
216 |
+
if($('#subtotal_option_price_rule').val() != 'none'){
|
217 |
+
$('select.price_discount_type option[value=product_discount]').attr('disabled', 'disabled').html(woo_discount_localization.product_discount_not_work_on_subtotal_based);
|
218 |
+
}
|
219 |
// Tooltips
|
220 |
trigger_woocommerce_tooltip();
|
221 |
});
|
222 |
|
223 |
// Removing Discount Rule.
|
224 |
$(document).on('click', '.remove_discount_range', function () {
|
225 |
+
var confirm_delete = confirm(woo_discount_localization.are_you_sure_to_remove_this);
|
226 |
if (confirm_delete) {
|
227 |
$(this).closest('.discount_rule_list').remove();
|
228 |
}
|
243 |
if (status == 'Disable') {
|
244 |
current.addClass('btn-success');
|
245 |
current.removeClass('btn-warning');
|
246 |
+
current.html(woo_discount_localization.enable_text);
|
247 |
} else if (status == 'Publish') {
|
248 |
current.removeClass('btn-success');
|
249 |
current.addClass('btn-warning');
|
250 |
+
current.html(woo_discount_localization.disable_text);
|
251 |
}
|
252 |
}
|
253 |
|
260 |
var current = $(this);
|
261 |
var id = $(this).attr('id');
|
262 |
id = id.replace('delete_', '');
|
263 |
+
var confirm_delete = confirm(woo_discount_localization.are_you_sure_to_remove);
|
264 |
if (confirm_delete) {
|
265 |
$.ajax({
|
266 |
url: ajax_url,
|
353 |
var option = $(this).val();
|
354 |
if (option == 'none') {
|
355 |
$('.subtotal_to_apply_price_rule_con').hide();
|
356 |
+
$('select.price_discount_type option[value=product_discount]').removeAttr('disabled').html(woo_discount_localization.product_discount);
|
357 |
} else {
|
358 |
$('.subtotal_to_apply_price_rule_con').show();
|
359 |
+
$('select.price_discount_type option[value=product_discount]').attr('disabled', 'disabled').html(woo_discount_localization.product_discount_not_work_on_subtotal_based);
|
360 |
}
|
361 |
});
|
362 |
$('#subtotal_option_price_rule').trigger('change');
|
401 |
var country_list = $('#cart_countries_list_0 > option').clone();
|
402 |
var order_status_list = $('#order_status_list_0 > option').clone();
|
403 |
if (is_pro) {
|
404 |
+
var form = '<div class="cart_rules_list row"> <div class="col-md-3 form-group"> <label>'+woo_discount_localization.type_text+' <select class="form-control cart_rule_type" id="cart_condition_type_' + count + '" name="discount_rule[' + count + '][type]"> <optgroup label="'+woo_discount_localization.cart_subtotal+'"><option value="subtotal_least" selected="selected">'+woo_discount_localization.subtotal_at_least+'</option><option value="subtotal_less">'+woo_discount_localization.subtotal_less_than+'</option></optgroup>' +
|
405 |
+
'<optgroup label="'+woo_discount_localization.cart_item_count+'"><option value="item_count_least">'+woo_discount_localization.number_of_line_items_in_cart_at_least+'</option><option value="item_count_less">'+woo_discount_localization.number_of_line_items_in_cart_less_than+'</option></optgroup>' +
|
406 |
+
'<optgroup label="'+woo_discount_localization.quantity_sum+'"><option value="quantity_least">'+woo_discount_localization.total_number_of_quantities_in_cart_at_least+'</option><option value="quantity_less">'+woo_discount_localization.total_number_of_quantities_in_cart_less_than+'</option></optgroup>' +
|
407 |
+
'<optgroup label="'+woo_discount_localization.categories_in_cart+'">' +
|
408 |
+
'<option value="categories_in">'+woo_discount_localization.categories_in_cart+'</option>' +
|
409 |
'</optgroup>' +
|
410 |
+
'<optgroup label="'+woo_discount_localization.customer_details_must_be_logged_in+'"><option value="users_in">'+woo_discount_localization.user_in_list+'</option><option value="roles_in">'+woo_discount_localization.user_role_in_list+'</option><option value="shipping_countries_in">'+woo_discount_localization.shipping_country_list+'</option></optgroup>' +
|
411 |
+
'<optgroup label="'+woo_discount_localization.customer_email+'"><option value="customer_email_tld">'+woo_discount_localization.customer_email_tld+'</option><option value="customer_email_domain">'+woo_discount_localization.customer_email_domain+'</option></optgroup>' +
|
412 |
+
'<optgroup label="'+woo_discount_localization.customer_billing_details+'"><option value="customer_billing_city">'+woo_discount_localization.customer_billing_city+'</option></optgroup>' +
|
413 |
+
'<optgroup label="'+woo_discount_localization.customer_shipping_details+'"><option value="customer_shipping_state">'+woo_discount_localization.customer_shipping_state+'</option></optgroup>' +
|
414 |
+
'<optgroup label="'+woo_discount_localization.purchase_history+'">' +
|
415 |
+
'<option value="customer_based_on_purchase_history">'+woo_discount_localization.purchased_amount+'</option>'+
|
416 |
+
'<option value="customer_based_on_purchase_history_order_count">'+woo_discount_localization.number_of_order_purchased+'</option>'+
|
417 |
+
'<option value="customer_based_on_purchase_history_product_order_count">'+woo_discount_localization.number_of_order_purchased_in_product+'</option>'+
|
418 |
'</optgroup>' +
|
419 |
+
'<optgroup label="'+woo_discount_localization.coupon_applied+'"><option value="coupon_applied_any_one">'+woo_discount_localization.atleast_any_one+'</option><option value="coupon_applied_all_selected">'+woo_discount_localization.all_selected+'</option></optgroup>' +
|
420 |
'</select></label></div>' +
|
421 |
+
'<div class="col-md-3 form-group"><label> '+woo_discount_localization.value_text+'<div id="general_' + count + '"><input type="text" name="discount_rule[' + count + '][option_value]"></div>' +
|
422 |
'<div id="user_div_' + count + '">';
|
423 |
if($('#flycart_wdr_woocommerce_version').val() == 2){
|
424 |
+
form += '<input class="wc-customer-search" style="width: 250px" name="discount_rule[' + count + '][users_to_apply][]" data-placeholder="'+woo_discount_localization.place_holder_search_for_a_user+'"/>';
|
425 |
} else {
|
426 |
+
form += '<select class="wc-customer-search" style="width: 250px" multiple="multiple" name="discount_rule[' + count + '][users_to_apply][]" data-placeholder="'+woo_discount_localization.place_holder_search_for_a_user+'"></select>';
|
427 |
}
|
428 |
form += '</div>' +
|
429 |
+
'<div id="product_div_' + count + '"><select id="cart_product_list_' + count + '" class="product_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][product_to_apply][]"></select></div>' +
|
430 |
+
'<div id="category_div_' + count + '"><select id="cart_category_list_' + count + '" class="category_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][category_to_apply][]"></select></div>' +
|
431 |
+
'<div id="roles_div_' + count + '"><select id="cart_roles_list_' + count + '" class="roles_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][user_roles_to_apply][]"></select></div>' +
|
432 |
+
'<div id="countries_div_' + count + '"><select id="cart_countries_list_' + count + '" class="country_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][countries_to_apply][]"></select></div>' +
|
433 |
'<div id="purchase_history_div_' + count + '">' +
|
434 |
'<div class="form-group wdr_hide" id="purchase_history_products_list_'+ count +'">'+
|
435 |
'</div>'+
|
436 |
'<select class="selectpicker purchased_history_type" data-live-search="true" name="discount_rule['+count+'][purchased_history_type]">' +
|
437 |
+
'<option value="atleast">'+woo_discount_localization.greater_than_or_equal_to+'</option>' +
|
438 |
+
'<option value="less_than_or_equal">'+woo_discount_localization.less_than_or_equal_to+'</option>' +
|
439 |
'</select>' +
|
440 |
+
' <input name="discount_rule[' + count + '][purchased_history_amount]" value="" type="text"/> '+woo_discount_localization.in_order_status+' <select id="order_status_list_' + count + '" class="order_status_list selectpicker" data-live-search="true" multiple name="discount_rule[' + count + '][purchase_history_order_status][]"></select></div>' +
|
441 |
+
'</div><div class="col-md-1"> <label> '+woo_discount_localization.action_text+'</label> <br> <a href=javascript:void(0) class="btn btn-danger remove_cart_rule">'+woo_discount_localization.remove_text+'</a> </div>' +
|
442 |
'</label></div>';
|
443 |
} else {
|
444 |
+
var form = '<div class="cart_rules_list row"> <div class="col-md-3 form-group"> <label>'+woo_discount_localization.type_text+' <select class="form-control cart_rule_type" id="cart_condition_type_' + count + '" name="discount_rule[' + count + '][type]"> <optgroup label="'+woo_discount_localization.cart_subtotal+'"><option value="subtotal_least" selected="selected">'+woo_discount_localization.subtotal_at_least+'</option><option value="subtotal_less">'+woo_discount_localization.subtotal_less_than+'</option></optgroup>' +
|
445 |
+
'<optgroup label="'+woo_discount_localization.cart_item_count+'"><option value="item_count_least">'+woo_discount_localization.number_of_line_items_in_cart_at_least+'</option><option value="item_count_less">'+woo_discount_localization.number_of_line_items_in_cart_less_than+'</option></optgroup>' +
|
446 |
+
'<optgroup label="'+woo_discount_localization.quantity_sum+'"><option disabled>'+woo_discount_localization.total_number_of_quantities_in_cart_at_least+' <b>' + pro_suffix + '</b></option><option disabled>'+woo_discount_localization.total_number_of_quantities_in_cart_less_than+' <b>' + pro_suffix + '</b></option></optgroup>' +
|
447 |
+
'<optgroup label="'+woo_discount_localization.categories_in_cart+'">' +
|
448 |
+
'<option disabled>'+woo_discount_localization.categories_in_cart+' <b>' + pro_suffix + '</b></option>' +
|
449 |
'</optgroup>' +
|
450 |
+
'<optgroup label="'+woo_discount_localization.customer_details_must_be_logged_in+'"><option disabled>'+woo_discount_localization.user_in_list+' <b>' + pro_suffix + '</b></option><option disabled>'+woo_discount_localization.user_role_in_list+' <b>' + pro_suffix + '</b></option><option disabled>'+woo_discount_localization.shipping_country_list+' <b>' + pro_suffix + '</b></option></optgroup>' +
|
451 |
+
'<optgroup label="'+woo_discount_localization.customer_email+'"><option disabled>'+woo_discount_localization.customer_email_tld+' <b>' + pro_suffix + '</b></option><option disabled>'+woo_discount_localization.customer_email_domain+'<b>' + pro_suffix + '</b></option></optgroup>' +
|
452 |
+
'<optgroup label="'+woo_discount_localization.customer_billing_details+'"><option disabled>'+woo_discount_localization.customer_billing_city+' <b>' + pro_suffix + '</b></option></optgroup>' +
|
453 |
+
'<optgroup label="'+woo_discount_localization.customer_shipping_details+'"><option disabled>'+woo_discount_localization.customer_shipping_state+' <b>' + pro_suffix + '</b></option></optgroup>' +
|
454 |
+
'<optgroup label="'+woo_discount_localization.purchase_history+'"><option disabled>'+woo_discount_localization.purchased_amount+' <b>' + pro_suffix + '</b></option>' +
|
455 |
+
'<option disabled>'+woo_discount_localization.number_of_order_purchased+' <b>' + pro_suffix + '</b></option>' +
|
456 |
+
'<option disabled>'+woo_discount_localization.number_of_order_purchased_in_product+' <b>' + pro_suffix + '</b></option>' +
|
457 |
'</optgroup>' +
|
458 |
+
'<optgroup label="'+woo_discount_localization.coupon_applied+'"><option disabled>'+woo_discount_localization.atleast_any_one+' <b>' + pro_suffix + '</b></option><option disabled>'+woo_discount_localization.all_selected+' <b>' + pro_suffix + '</b></option></optgroup>' +
|
459 |
'</select></label></div>' +
|
460 |
+
'<div class="col-md-3 form-group"><label> '+woo_discount_localization.value_text+'<div id="general_' + count + '"><input type="text" name="discount_rule[' + count + '][option_value]"></div>' +
|
461 |
+
'<div id="user_div_' + count + '"><select id="cart_user_list_' + count + '" class="user_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][users_to_apply][]"></select></div>' +
|
462 |
+
'<div id="product_div_' + count + '"><select id="cart_product_list_' + count + '" class="product_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][product_to_apply][]"></select></div>' +
|
463 |
+
'<div id="category_div_' + count + '"><select id="cart_category_list_' + count + '" class="category_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][category_to_apply][]"></select></div>' +
|
464 |
+
'<div id="roles_div_' + count + '"><select id="cart_roles_list_' + count + '" class="roles_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][user_roles_to_apply][]"></select></div>' +
|
465 |
+
'<div id="countries_div_' + count + '"><select id="cart_countries_list_' + count + '" class="country_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][countries_to_apply][]"></select></div>' +
|
466 |
+
'<div id="purchase_history_div_' + count + '"><select id="order_status_list_' + count + '" class="order_status_list selectpicker" title="'+woo_discount_localization.none_selected+'" data-live-search="true" multiple name="discount_rule[' + count + '][purchase_history_order_status][]"></select></div>' +
|
467 |
+
'</div><div class="col-md-1"> <label> '+woo_discount_localization.action_text+' </label><br><a href=javascript:void(0) class="btn btn-danger remove_cart_rule">'+woo_discount_localization.remove_text+'</a> </div>' +
|
468 |
'</label></div>';
|
469 |
}
|
470 |
|
602 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
603 |
event.preventDefault();
|
604 |
if ($('#rule_name').val() == '') {
|
605 |
+
alert(woo_discount_localization.please_enter_the_rule_name);
|
606 |
} else {
|
607 |
+
current.val(woo_discount_localization.saving);
|
608 |
$.ajax({
|
609 |
url: ajax_url,
|
610 |
type: 'POST',
|
617 |
},
|
618 |
success: function () {
|
619 |
// After Status Changed.
|
|
|
620 |
resizeChart = setTimeout(function () {
|
621 |
+
current.val(woo_discount_localization.save_rule);
|
622 |
}, 300);
|
623 |
|
624 |
// Reset, if its New Form.
|
634 |
// Change the List to Show, on change of Rule Type.
|
635 |
$('.cart_rule_type').on('change', function () {
|
636 |
var id = $(this).attr('id');
|
|
|
637 |
id = id.replace('cart_condition_type_', '');
|
638 |
|
639 |
$('#cart_user_list_' + id).selectpicker('val', []);
|
660 |
if (status == 'Disable') {
|
661 |
current.removeClass('btn-warning');
|
662 |
current.addClass('btn-success');
|
663 |
+
current.html(woo_discount_localization.enable_text);
|
664 |
} else if (status == 'Publish') {
|
665 |
current.addClass('btn-warning');
|
666 |
current.removeClass('btn-success');
|
667 |
+
current.html(woo_discount_localization.disable_text);
|
668 |
}
|
669 |
}
|
670 |
|
677 |
var current = $(this);
|
678 |
var id = $(this).attr('id');
|
679 |
id = id.replace('delete_', '');
|
680 |
+
var confirm_delete = confirm(woo_discount_localization.are_you_sure_to_remove);
|
681 |
if (confirm_delete) {
|
682 |
$.ajax({
|
683 |
url: ajax_url,
|
694 |
|
695 |
// Removing Cart Condition.
|
696 |
$(document).on('click', '.remove_cart_rule', function () {
|
697 |
+
var confirm_remove = confirm(woo_discount_localization.are_you_sure_to_remove);
|
698 |
if (confirm_remove) {
|
699 |
$(this).closest('.cart_rules_list').remove();
|
700 |
}
|
752 |
var form = $('#discount_config').serialize();
|
753 |
var current = $(this);
|
754 |
var loader = $('.woo_discount_loader_outer > .woo_discount_loader');
|
755 |
+
current.val(woo_discount_localization.saving);
|
756 |
$.ajax({
|
757 |
url: ajax_url,
|
758 |
type: 'POST',
|
766 |
success: function () {
|
767 |
// After Removed.
|
768 |
resizeChart = setTimeout(function () {
|
769 |
+
current.val(woo_discount_localization.save_text);
|
770 |
}, 300);
|
771 |
adminNotice();
|
772 |
}
|
839 |
}
|
840 |
|
841 |
function adminNotice() {
|
842 |
+
jQuery('#woo-admin-message').html(' <div class="notice notice-success is-dismissable"><p>'+woo_discount_localization.saved_successfully+'</p></div>');
|
843 |
|
844 |
setTimeout(function () {
|
845 |
jQuery('#woo-admin-message').html('');
|
helper/general-helper.php
CHANGED
@@ -155,8 +155,13 @@ if ( ! class_exists( 'FlycartWooDiscountRulesGeneralHelper' ) ) {
|
|
155 |
if (!isset($wp_roles)) {
|
156 |
$wp_roles = new WP_Roles();
|
157 |
}
|
|
|
|
|
|
|
|
|
|
|
158 |
|
159 |
-
return
|
160 |
}
|
161 |
|
162 |
/**
|
155 |
if (!isset($wp_roles)) {
|
156 |
$wp_roles = new WP_Roles();
|
157 |
}
|
158 |
+
$roles = array();
|
159 |
+
foreach ($wp_roles->get_names() as $key => $wp_role ){
|
160 |
+
if(function_exists('translate_user_role')) $roles[$key] = translate_user_role($wp_role);
|
161 |
+
else $roles[$key] = $wp_role;
|
162 |
+
}
|
163 |
|
164 |
+
return $roles;
|
165 |
}
|
166 |
|
167 |
/**
|
helper/purchase.php
CHANGED
@@ -22,7 +22,7 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
22 |
*/
|
23 |
public function __construct()
|
24 |
{
|
25 |
-
$this->pluginName = 'Woo Discount Rules '.$this->getProText();
|
26 |
}
|
27 |
|
28 |
public function init()
|
@@ -57,18 +57,18 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
57 |
if ( isset( $config['license_key'] ) && !empty($config['license_key']) ) {
|
58 |
$verifiedLicense = get_option('woo_discount_rules_verified_key', 0);
|
59 |
if(!$verifiedLicense){
|
60 |
-
$msg = 'The license key for '.$this->pluginName.' seems invalid.
|
61 |
$hasMessage = 1;
|
62 |
}
|
63 |
} else {
|
64 |
-
$msg = 'License key for the '.$this->pluginName.' is not entered. <a href="admin.php?page=woo_discount_rules&tab=settings">Please enter a valid license key</a>. You can get it from <a href="'.$this->siteURL.'">our website</a>.';
|
65 |
$hasMessage = 1;
|
66 |
}
|
67 |
} else {
|
68 |
if ( isset( $config['license_key'] ) && !empty($config['license_key']) ) {
|
69 |
$verifiedLicense = get_option('woo_discount_rules_verified_key', 0);
|
70 |
if($verifiedLicense){
|
71 |
-
$msg = $this->pluginName.': You are using CORE version. Please Update to PRO version.';
|
72 |
$hasMessage = 1;
|
73 |
}
|
74 |
}
|
@@ -92,7 +92,7 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
92 |
*/
|
93 |
public function getSuffix()
|
94 |
{
|
95 |
-
return '-PRO-';
|
96 |
}
|
97 |
|
98 |
/**
|
@@ -101,9 +101,9 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
101 |
public function getProText()
|
102 |
{
|
103 |
if($this->isPro()){
|
104 |
-
return 'Pro';
|
105 |
} else {
|
106 |
-
return 'Core';
|
107 |
}
|
108 |
}
|
109 |
|
@@ -129,10 +129,10 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
129 |
|
130 |
if ( isset( $config['license_key'] ) && !empty($config['license_key']) ) {
|
131 |
if (!$this->validateLicenseKey()) {
|
132 |
-
$message = 'The license key for '.$this->pluginName.' seems invalid.
|
133 |
}
|
134 |
}else{
|
135 |
-
$message = 'License key for the '.$this->pluginName.' is not entered. <a href="admin.php?page=woo_discount_rules&tab=settings">Please enter a valid license key</a>. You can get it from <a href="'.$this->siteURL.'">our website</a>.';
|
136 |
}
|
137 |
|
138 |
if (!empty($message)) {
|
@@ -162,7 +162,7 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
162 |
|
163 |
$resp = array();
|
164 |
if (empty($params['license_key'])) {
|
165 |
-
$resp['error']='Please enter a valid license key';
|
166 |
echo json_encode( $resp );
|
167 |
die();
|
168 |
}
|
@@ -171,11 +171,11 @@ if ( ! class_exists( 'FlycartWooDiscountRulesPurchase' ) ) {
|
|
171 |
$base->saveConfig(1);
|
172 |
|
173 |
if ( $this->validateLicenseKey() ) {
|
174 |
-
$resp['success']='License key check : Passed.';
|
175 |
// TODO: passed tick mark with a flag
|
176 |
} else {
|
177 |
// return an error
|
178 |
-
$resp['error']='License key seems to be Invalid. Please enter a valid license key';
|
179 |
}
|
180 |
|
181 |
echo json_encode( $resp );
|
22 |
*/
|
23 |
public function __construct()
|
24 |
{
|
25 |
+
$this->pluginName = esc_html__('Woo Discount Rules', 'woo-discount-rules').' '.$this->getProText();
|
26 |
}
|
27 |
|
28 |
public function init()
|
57 |
if ( isset( $config['license_key'] ) && !empty($config['license_key']) ) {
|
58 |
$verifiedLicense = get_option('woo_discount_rules_verified_key', 0);
|
59 |
if(!$verifiedLicense){
|
60 |
+
$msg = esc_html__('The license key for ', 'woo-discount-rules').$this->pluginName.' '.esc_html__('seems invalid.', 'woo-discount-rules').' <a href="admin.php?page=woo_discount_rules&tab=settings">'.esc_html__('Please enter a valid license key', 'woo-discount-rules').'</a>. '.esc_html__('You can get it from', 'woo-discount-rules').' <a href="'.$this->siteURL.'">'.esc_html__('our website', 'woo-discount-rules').'</a>.';
|
61 |
$hasMessage = 1;
|
62 |
}
|
63 |
} else {
|
64 |
+
$msg = esc_html__('License key for the ', 'woo-discount-rules').$this->pluginName.' '.esc_html__('is not entered.', 'woo-discount-rules').' <a href="admin.php?page=woo_discount_rules&tab=settings">'.esc_html__('Please enter a valid license key', 'woo-discount-rules').'</a>. '.esc_html__('You can get it from', 'woo-discount-rules').' <a href="'.$this->siteURL.'">'.esc_html__('our website', 'woo-discount-rules').'</a>.';
|
65 |
$hasMessage = 1;
|
66 |
}
|
67 |
} else {
|
68 |
if ( isset( $config['license_key'] ) && !empty($config['license_key']) ) {
|
69 |
$verifiedLicense = get_option('woo_discount_rules_verified_key', 0);
|
70 |
if($verifiedLicense){
|
71 |
+
$msg = $this->pluginName.esc_html__(': You are using CORE version. Please Update to PRO version.', 'woo-discount-rules');
|
72 |
$hasMessage = 1;
|
73 |
}
|
74 |
}
|
92 |
*/
|
93 |
public function getSuffix()
|
94 |
{
|
95 |
+
return esc_html__('-PRO-', 'woo-discount-rules');
|
96 |
}
|
97 |
|
98 |
/**
|
101 |
public function getProText()
|
102 |
{
|
103 |
if($this->isPro()){
|
104 |
+
return esc_html__('Pro', 'woo-discount-rules');
|
105 |
} else {
|
106 |
+
return esc_html__('Core', 'woo-discount-rules');
|
107 |
}
|
108 |
}
|
109 |
|
129 |
|
130 |
if ( isset( $config['license_key'] ) && !empty($config['license_key']) ) {
|
131 |
if (!$this->validateLicenseKey()) {
|
132 |
+
$message = esc_html__('The license key for ', 'woo-discount-rules').$this->pluginName.' '.esc_html__('seems invalid.', 'woo-discount-rules').' <a href="admin.php?page=woo_discount_rules&tab=settings">'.esc_html__('Please enter a valid license key', 'woo-discount-rules').'</a>. '.esc_html__('You can get it from', 'woo-discount-rules').' <a href="'.$this->siteURL.'">'.esc_html__('our website', 'woo-discount-rules').'</a>.';
|
133 |
}
|
134 |
}else{
|
135 |
+
$message = esc_html__('License key for the ', 'woo-discount-rules').$this->pluginName.' '.esc_html__('is not entered.', 'woo-discount-rules').' <a href="admin.php?page=woo_discount_rules&tab=settings">'.esc_html__('Please enter a valid license key', 'woo-discount-rules').'</a>. '.esc_html__('You can get it from', 'woo-discount-rules').' <a href="'.$this->siteURL.'">'.esc_html__('our website', 'woo-discount-rules').'</a>.';
|
136 |
}
|
137 |
|
138 |
if (!empty($message)) {
|
162 |
|
163 |
$resp = array();
|
164 |
if (empty($params['license_key'])) {
|
165 |
+
$resp['error'] = esc_html__('Please enter a valid license key', 'woo-discount-rules');
|
166 |
echo json_encode( $resp );
|
167 |
die();
|
168 |
}
|
171 |
$base->saveConfig(1);
|
172 |
|
173 |
if ( $this->validateLicenseKey() ) {
|
174 |
+
$resp['success'] = esc_html__('License key check : Passed.', 'woo-discount-rules');
|
175 |
// TODO: passed tick mark with a flag
|
176 |
} else {
|
177 |
// return an error
|
178 |
+
$resp['error'] = esc_html__('License key seems to be Invalid. Please enter a valid license key', 'woo-discount-rules');
|
179 |
}
|
180 |
|
181 |
echo json_encode( $resp );
|
i18n/languages/{woo-discount-rules.po → woo-discount-rules.pot}
RENAMED
@@ -1,4 +1,3 @@
|
|
1 |
-
#, # Copyright (C) 2018 Flycart
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Content-Type: text/plain; charset=UTF-8\n"
|
@@ -10,32 +9,32 @@ msgstr ""
|
|
10 |
"Language-Team: Flycart\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Language: en\n"
|
13 |
-
"X-Generator: Poedit
|
14 |
|
15 |
#. Text in echo
|
16 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
17 |
msgid " Product(s) "
|
18 |
msgstr ""
|
19 |
|
20 |
#. Text in echo
|
21 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
22 |
msgid "100% percent"
|
23 |
msgstr ""
|
24 |
|
25 |
#. Text in echo
|
26 |
#: woo-discount-rules/view/cart-rules.php:118
|
27 |
#: woo-discount-rules/view/pricing-rules.php:147
|
28 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
29 |
msgid "Action"
|
30 |
msgstr ""
|
31 |
|
32 |
#. Text in echo
|
33 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
34 |
msgid "Add Condition"
|
35 |
msgstr ""
|
36 |
|
37 |
#. Text in echo
|
38 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
39 |
msgid "Add New Range"
|
40 |
msgstr ""
|
41 |
|
@@ -46,45 +45,45 @@ msgid "Add New Rule"
|
|
46 |
msgstr ""
|
47 |
|
48 |
#. Text in echo
|
49 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
50 |
msgid "Adjustment Type"
|
51 |
msgstr ""
|
52 |
|
53 |
#. Text in echo
|
54 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
55 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
56 |
msgid "All"
|
57 |
msgstr ""
|
58 |
|
59 |
#. Text in echo
|
60 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
61 |
msgid "All products"
|
62 |
msgstr ""
|
63 |
|
64 |
#. Text in echo
|
65 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
66 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
67 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
68 |
msgid "All selected"
|
69 |
msgstr ""
|
70 |
|
71 |
#. Text in echo
|
72 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
73 |
msgid "Any"
|
74 |
msgstr ""
|
75 |
|
76 |
#. Text in echo
|
77 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
78 |
msgid "Any one cheapest from all products"
|
79 |
msgstr ""
|
80 |
|
81 |
#. Text in echo
|
82 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
83 |
msgid "Any one cheapest from selected"
|
84 |
msgstr ""
|
85 |
|
86 |
#. Text in echo
|
87 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
88 |
msgid "Apply To"
|
89 |
msgstr ""
|
90 |
|
@@ -107,50 +106,49 @@ msgid "Apply first matched rule"
|
|
107 |
msgstr ""
|
108 |
|
109 |
#. Text in echo
|
110 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
111 |
msgid "Apply for"
|
112 |
msgstr ""
|
113 |
|
114 |
#. Text in echo
|
115 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
116 |
msgid "Apply if all coupon applied"
|
117 |
msgstr ""
|
118 |
|
119 |
#. Text in echo
|
120 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
121 |
msgid "Apply if any one coupon applied"
|
122 |
msgstr ""
|
123 |
|
124 |
#. Text in echo
|
125 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
126 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
127 |
msgid "Atleast any one"
|
128 |
msgstr ""
|
129 |
|
130 |
#. Text in echo
|
131 |
-
#: woo-discount-rules/view/view-cart-rules.php:293
|
132 |
-
#: woo-discount-rules/view/view-cart-rules.php:295
|
133 |
-
msgid "Based on Purchase history"
|
134 |
-
msgstr ""
|
135 |
-
|
136 |
-
#. Text in echo
|
137 |
-
#: woo-discount-rules/view/view-cart-rules.php:269
|
138 |
#: woo-discount-rules/view/view-cart-rules.php:271
|
|
|
139 |
msgid "Billing city"
|
140 |
msgstr ""
|
141 |
|
142 |
#. Text in echo
|
143 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
144 |
msgid "Buy"
|
145 |
msgstr ""
|
146 |
|
147 |
#. Text in echo
|
148 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
149 |
msgid "Cart Conditions"
|
150 |
msgstr ""
|
151 |
|
152 |
#. Text in echo
|
153 |
-
#: woo-discount-rules/view/
|
|
|
|
|
|
|
|
|
|
|
154 |
msgid "Cart Item Count"
|
155 |
msgstr ""
|
156 |
|
@@ -160,7 +158,7 @@ msgid "Cart Rules"
|
|
160 |
msgstr ""
|
161 |
|
162 |
#. Text in echo
|
163 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
164 |
msgid "Cart Subtotal"
|
165 |
msgstr ""
|
166 |
|
@@ -170,43 +168,63 @@ msgid "Cart rules settings"
|
|
170 |
msgstr ""
|
171 |
|
172 |
#. Text in echo
|
173 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
174 |
msgid "Categories In Cart"
|
175 |
msgstr ""
|
176 |
|
177 |
#. Text in echo
|
178 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
179 |
msgid "Categories in cart"
|
180 |
msgstr ""
|
181 |
|
182 |
#. Text in echo
|
183 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
184 |
msgid "Check this box to apply child category(ies)"
|
185 |
msgstr ""
|
186 |
|
187 |
#. Text in echo
|
188 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
189 |
msgid "Check this box to count quantities cumulatively across category(ies)"
|
190 |
msgstr ""
|
191 |
|
192 |
#. Text in echo
|
193 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
194 |
msgid "Check this box to count quantities cumulatively across products"
|
195 |
msgstr ""
|
196 |
|
197 |
#. Text in echo
|
198 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
199 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
200 |
msgid "Close"
|
201 |
msgstr ""
|
202 |
|
203 |
#. Text in echo
|
204 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
205 |
msgid "Combine"
|
206 |
msgstr ""
|
207 |
|
208 |
#. Text in echo
|
209 |
-
#: woo-discount-rules/view/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
msgid "Coupon"
|
211 |
msgstr ""
|
212 |
|
@@ -216,32 +234,32 @@ msgid "Coupon Name to be displayed :"
|
|
216 |
msgstr ""
|
217 |
|
218 |
#. Text in echo
|
219 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
220 |
msgid "Coupon applied"
|
221 |
msgstr ""
|
222 |
|
223 |
#. Text in echo
|
224 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
225 |
msgid "Customer Billing Details"
|
226 |
msgstr ""
|
227 |
|
228 |
#. Text in echo
|
229 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
230 |
msgid "Customer Details (must be logged in)"
|
231 |
msgstr ""
|
232 |
|
233 |
#. Text in echo
|
234 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
235 |
msgid "Customer Email"
|
236 |
msgstr ""
|
237 |
|
238 |
#. Text in echo
|
239 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
240 |
msgid "Customer Shipping Details"
|
241 |
msgstr ""
|
242 |
|
243 |
#. Text in echo
|
244 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
245 |
msgid "Customers"
|
246 |
msgstr ""
|
247 |
|
@@ -252,8 +270,8 @@ msgid "Delete"
|
|
252 |
msgstr ""
|
253 |
|
254 |
#. Text in echo
|
255 |
-
#: woo-discount-rules/view/view-pricing-rules.php:101
|
256 |
#: woo-discount-rules/view/view-pricing-rules.php:103
|
|
|
257 |
msgid "Dependant product based discount"
|
258 |
msgstr ""
|
259 |
|
@@ -263,6 +281,12 @@ msgstr ""
|
|
263 |
msgid "Disable"
|
264 |
msgstr ""
|
265 |
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
#. Text in echo
|
267 |
#: woo-discount-rules/view/settings.php:263
|
268 |
msgid "Disable the rules while have coupon(Third party) in cart"
|
@@ -275,14 +299,16 @@ msgid "Disabled"
|
|
275 |
msgstr ""
|
276 |
|
277 |
#. Text in echo
|
|
|
|
|
278 |
#: woo-discount-rules/view/template/discount-table.php:16
|
279 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
280 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
281 |
msgid "Discount"
|
282 |
msgstr ""
|
283 |
|
284 |
#. Text in echo
|
285 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
286 |
msgid "Discount Conditions"
|
287 |
msgstr ""
|
288 |
|
@@ -297,13 +323,25 @@ msgid "Discount Table :"
|
|
297 |
msgstr ""
|
298 |
|
299 |
#. Text in echo
|
300 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
301 |
msgid "Discount Type :"
|
302 |
msgstr ""
|
303 |
|
304 |
#. Text in echo
|
305 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
306 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
msgid "Do not use"
|
308 |
msgstr ""
|
309 |
|
@@ -313,18 +351,23 @@ msgstr ""
|
|
313 |
msgid "Documentation"
|
314 |
msgstr ""
|
315 |
|
|
|
|
|
|
|
|
|
|
|
316 |
#. Text in echo
|
317 |
#: woo-discount-rules/view/settings.php:326
|
318 |
msgid "Draft"
|
319 |
msgstr ""
|
320 |
|
321 |
#. Text in echo
|
322 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
323 |
msgid "Dynamic item count"
|
324 |
msgstr ""
|
325 |
|
326 |
#. Text in echo
|
327 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
328 |
msgid "Each"
|
329 |
msgstr ""
|
330 |
|
@@ -335,24 +378,24 @@ msgid "Edit"
|
|
335 |
msgstr ""
|
336 |
|
337 |
#. Text in echo
|
338 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
339 |
msgid "Edit Cart Rule"
|
340 |
msgstr ""
|
341 |
|
342 |
#. Text in echo
|
343 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
344 |
msgid "Edit Price Rule"
|
345 |
msgstr ""
|
346 |
|
347 |
#. Text in echo
|
348 |
-
#: woo-discount-rules/view/view-cart-rules.php:257
|
349 |
#: woo-discount-rules/view/view-cart-rules.php:259
|
|
|
350 |
msgid "Email with Domain (Eg: gmail.com)"
|
351 |
msgstr ""
|
352 |
|
353 |
#. Text in echo
|
354 |
-
#: woo-discount-rules/view/view-cart-rules.php:247
|
355 |
#: woo-discount-rules/view/view-cart-rules.php:249
|
|
|
356 |
msgid "Email with TLD (Eg: edu)"
|
357 |
msgstr ""
|
358 |
|
@@ -373,17 +416,17 @@ msgid "Enable free shipping option"
|
|
373 |
msgstr ""
|
374 |
|
375 |
#. Text in echo
|
376 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
377 |
msgid "Enter the amount"
|
378 |
msgstr ""
|
379 |
|
380 |
#. Text in echo
|
381 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
382 |
msgid "Enter the coupon code separated by comma(,)"
|
383 |
msgstr ""
|
384 |
|
385 |
#. Text in echo
|
386 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
387 |
msgid "Equal"
|
388 |
msgstr ""
|
389 |
|
@@ -393,10 +436,15 @@ msgid "Exclude Draft products in product select box."
|
|
393 |
msgstr ""
|
394 |
|
395 |
#. Text in echo
|
396 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
397 |
msgid "Exclude products"
|
398 |
msgstr ""
|
399 |
|
|
|
|
|
|
|
|
|
|
|
400 |
#. Text in echo
|
401 |
#: woo-discount-rules/view/cart-rules.php:116
|
402 |
#: woo-discount-rules/view/pricing-rules.php:145
|
@@ -404,20 +452,25 @@ msgid "Expired On"
|
|
404 |
msgstr ""
|
405 |
|
406 |
#. Text in echo
|
407 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
408 |
msgid "First quantity(s)"
|
409 |
msgstr ""
|
410 |
|
411 |
#. Text in echo
|
412 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
413 |
msgid "Fixed"
|
414 |
msgstr ""
|
415 |
|
416 |
#. Text in echo
|
417 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
418 |
msgid "Fixed item count"
|
419 |
msgstr ""
|
420 |
|
|
|
|
|
|
|
|
|
|
|
421 |
#. Text in echo
|
422 |
#: woo-discount-rules/view/settings.php:75
|
423 |
msgid "Force refresh the cart widget while add and remove item to cart"
|
@@ -434,13 +487,13 @@ msgid "Free Shipping title"
|
|
434 |
msgstr ""
|
435 |
|
436 |
#. Text in echo
|
437 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
438 |
msgid "Free quantity"
|
439 |
msgstr ""
|
440 |
|
441 |
#. Text in echo
|
442 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
443 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
444 |
msgid "Free shipping"
|
445 |
msgstr ""
|
446 |
|
@@ -450,15 +503,17 @@ msgid "Free shipping text to be displayed"
|
|
450 |
msgstr ""
|
451 |
|
452 |
#. Text in echo
|
453 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
454 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
455 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
456 |
msgid "From"
|
457 |
msgstr ""
|
458 |
|
459 |
#. Text in echo
|
460 |
-
#: woo-discount-rules/view/
|
461 |
-
#: woo-discount-rules/view/
|
|
|
|
|
462 |
msgid "General"
|
463 |
msgstr ""
|
464 |
|
@@ -468,7 +523,8 @@ msgid "General Settings"
|
|
468 |
msgstr ""
|
469 |
|
470 |
#. Text in echo
|
471 |
-
#: woo-discount-rules/view/view-
|
|
|
472 |
msgid "Greater than or equal to"
|
473 |
msgstr ""
|
474 |
|
@@ -478,8 +534,13 @@ msgid "Guest"
|
|
478 |
msgstr ""
|
479 |
|
480 |
#. Text in echo
|
481 |
-
#: woo-discount-rules/view/
|
482 |
-
|
|
|
|
|
|
|
|
|
|
|
483 |
msgid "In Order status"
|
484 |
msgstr ""
|
485 |
|
@@ -489,22 +550,23 @@ msgid "It displays only if any rule matches"
|
|
489 |
msgstr ""
|
490 |
|
491 |
#. Text in echo
|
492 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
493 |
msgid "Item count"
|
494 |
msgstr ""
|
495 |
|
496 |
#. Text in echo
|
497 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
498 |
msgid "Item quantity"
|
499 |
msgstr ""
|
500 |
|
501 |
#. Text in echo
|
502 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
503 |
msgid "Less than"
|
504 |
msgstr ""
|
505 |
|
506 |
#. Text in echo
|
507 |
-
#: woo-discount-rules/view/view-
|
|
|
508 |
msgid "Less than or equal to"
|
509 |
msgstr ""
|
510 |
|
@@ -519,7 +581,7 @@ msgid "License key seems to be Invalid. Please enter a valid license key"
|
|
519 |
msgstr ""
|
520 |
|
521 |
#. Text in echo
|
522 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
523 |
msgid "Limited percent"
|
524 |
msgstr ""
|
525 |
|
@@ -529,40 +591,51 @@ msgid "Looking for more features? Upgrade to PRO"
|
|
529 |
msgstr ""
|
530 |
|
531 |
#. Text in echo
|
532 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
533 |
msgid "Max Quantity"
|
534 |
msgstr ""
|
535 |
|
536 |
#. Text in echo
|
537 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
538 |
msgid "Method"
|
539 |
msgstr ""
|
540 |
|
541 |
#. Text in echo
|
542 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
543 |
msgid "Min Quantity"
|
544 |
msgstr ""
|
545 |
|
546 |
#. Text in echo
|
547 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
548 |
msgid "More than"
|
549 |
msgstr ""
|
550 |
|
551 |
#. Text in echo
|
552 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
553 |
msgid "More than one cheapest from all"
|
554 |
msgstr ""
|
555 |
|
556 |
#. Text in echo
|
557 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
558 |
msgid "More than one cheapest from selected"
|
559 |
msgstr ""
|
560 |
|
561 |
#. Text in echo
|
562 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
563 |
msgid "More than one cheapest from selected category"
|
564 |
msgstr ""
|
565 |
|
|
|
|
|
|
|
|
|
|
|
|
|
566 |
#. Text in echo
|
567 |
#: woo-discount-rules/view/cart-rules.php:114
|
568 |
#: woo-discount-rules/view/pricing-rules.php:143
|
@@ -576,20 +649,20 @@ msgid "Need help in setting up the rules?"
|
|
576 |
msgstr ""
|
577 |
|
578 |
#. Text in echo
|
579 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
580 |
msgid "New Cart Rule"
|
581 |
msgstr ""
|
582 |
|
583 |
#. Text in echo
|
584 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
585 |
msgid "New Price Rule"
|
586 |
msgstr ""
|
587 |
|
588 |
#. Text in echo
|
589 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
590 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
591 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
592 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
593 |
msgid "Next"
|
594 |
msgstr ""
|
595 |
|
@@ -598,6 +671,8 @@ msgstr ""
|
|
598 |
#: woo-discount-rules/view/settings.php:81
|
599 |
#: woo-discount-rules/view/settings.php:206
|
600 |
#: woo-discount-rules/view/settings.php:269
|
|
|
|
|
601 |
msgid "No"
|
602 |
msgstr ""
|
603 |
|
@@ -607,18 +682,49 @@ msgid "No Active Discounts."
|
|
607 |
msgstr ""
|
608 |
|
609 |
#. Text in echo
|
610 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
msgid "Number of line items in the cart (not quantity) at least"
|
612 |
msgstr ""
|
613 |
|
614 |
#. Text in echo
|
615 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
616 |
msgid "Number of line items in the cart (not quantity) less than"
|
617 |
msgstr ""
|
618 |
|
619 |
#. Text in echo
|
620 |
-
#: woo-discount-rules/view/view-
|
621 |
-
#: woo-discount-rules/view/view-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
622 |
msgid "Only Given"
|
623 |
msgstr ""
|
624 |
|
@@ -629,25 +735,30 @@ msgid "Order"
|
|
629 |
msgstr ""
|
630 |
|
631 |
#. Text in echo
|
632 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
633 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
634 |
msgid "Order :"
|
635 |
msgstr ""
|
636 |
|
637 |
#. Text in echo
|
638 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
639 |
msgid "Percent"
|
640 |
msgstr ""
|
641 |
|
642 |
#. Text in echo
|
643 |
-
#: woo-discount-rules/view/view-
|
644 |
-
|
|
|
|
|
|
|
|
|
|
|
645 |
msgid "Percentage Discount"
|
646 |
msgstr ""
|
647 |
|
648 |
#. Text in echo
|
649 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
650 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
651 |
msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
|
652 |
msgstr ""
|
653 |
|
@@ -657,21 +768,26 @@ msgid "Please contact our support team"
|
|
657 |
msgstr ""
|
658 |
|
659 |
#. Text in echo
|
660 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
661 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
662 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
663 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
664 |
msgid "Previous"
|
665 |
msgstr ""
|
666 |
|
667 |
#. Text in echo
|
668 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
669 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
670 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
671 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
672 |
msgid "Price Discount"
|
673 |
msgstr ""
|
674 |
|
|
|
|
|
|
|
|
|
|
|
675 |
#. Text in echo
|
676 |
#: woo-discount-rules/view/pricing-rules.php:54
|
677 |
msgid "Price Rules"
|
@@ -683,36 +799,48 @@ msgid "Price rules settings"
|
|
683 |
msgstr ""
|
684 |
|
685 |
#. Text in echo
|
686 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
687 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
688 |
msgid "Product Discount"
|
689 |
msgstr ""
|
690 |
|
691 |
#. Text in echo
|
692 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
693 |
msgid "Product(s) from"
|
694 |
msgstr ""
|
695 |
|
696 |
#. Text in echo
|
697 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
698 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
699 |
msgid "Purchase History"
|
700 |
msgstr ""
|
701 |
|
702 |
#. Text in echo
|
703 |
-
#: woo-discount-rules/view/view-
|
704 |
-
#: woo-discount-rules/view/view-
|
705 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
706 |
msgid "Quantity"
|
707 |
msgstr ""
|
708 |
|
709 |
#. Text in echo
|
710 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
711 |
msgid "Quantity Sum"
|
712 |
msgstr ""
|
713 |
|
714 |
#. Text in echo
|
715 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
716 |
msgid "Quantity based by product/category and BOGO deals"
|
717 |
msgstr ""
|
718 |
|
@@ -722,20 +850,26 @@ msgid "Range"
|
|
722 |
msgstr ""
|
723 |
|
724 |
#. Text in echo
|
725 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
726 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
727 |
msgid "Remove"
|
728 |
msgstr ""
|
729 |
|
730 |
#. Text in echo
|
731 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
732 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
733 |
msgid "Rule Description"
|
734 |
msgstr ""
|
735 |
|
736 |
#. Text in echo
|
737 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
738 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
739 |
msgid "Rule Name"
|
740 |
msgstr ""
|
741 |
|
@@ -750,14 +884,35 @@ msgid "Rule Setup for Price:"
|
|
750 |
msgstr ""
|
751 |
|
752 |
#. Text in echo
|
753 |
-
#: woo-discount-rules/view/view-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
754 |
#: woo-discount-rules/view/view-cart-rules.php:237
|
|
|
755 |
msgid "Shipping country in list"
|
756 |
msgstr ""
|
757 |
|
758 |
#. Text in echo
|
759 |
-
#: woo-discount-rules/view/view-cart-rules.php:281
|
760 |
#: woo-discount-rules/view/view-cart-rules.php:283
|
|
|
761 |
msgid "Shipping state"
|
762 |
msgstr ""
|
763 |
|
@@ -787,24 +942,24 @@ msgid "Show strikeout discount in cart item"
|
|
787 |
msgstr ""
|
788 |
|
789 |
#. Text in echo
|
790 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
791 |
msgid "Skip first quantity(s)"
|
792 |
msgstr ""
|
793 |
|
794 |
#. Text in echo
|
795 |
-
#: woo-discount-rules/view/view-pricing-rules.php:168
|
796 |
#: woo-discount-rules/view/view-pricing-rules.php:170
|
|
|
797 |
msgid "Specific attributes"
|
798 |
msgstr ""
|
799 |
|
800 |
#. Text in echo
|
801 |
-
#: woo-discount-rules/view/view-pricing-rules.php:159
|
802 |
#: woo-discount-rules/view/view-pricing-rules.php:161
|
|
|
803 |
msgid "Specific categories"
|
804 |
msgstr ""
|
805 |
|
806 |
#. Text in echo
|
807 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
808 |
msgid "Specific products"
|
809 |
msgstr ""
|
810 |
|
@@ -815,68 +970,71 @@ msgid "Start Date"
|
|
815 |
msgstr ""
|
816 |
|
817 |
#. Text in echo
|
818 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
819 |
msgid "Subtotal"
|
820 |
msgstr ""
|
821 |
|
822 |
#. Text in echo
|
823 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
824 |
msgid "Subtotal at least"
|
825 |
msgstr ""
|
826 |
|
827 |
#. Text in echo
|
828 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
829 |
msgid "Subtotal atleast"
|
830 |
msgstr ""
|
831 |
|
832 |
#. Text in echo
|
833 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
834 |
msgid "Subtotal less than"
|
835 |
msgstr ""
|
836 |
|
837 |
#. Text in echo
|
838 |
#: woo-discount-rules/view/settings.php:330
|
839 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
840 |
msgid "Supported in PRO version"
|
841 |
msgstr ""
|
842 |
|
843 |
#. Text in echo
|
844 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
845 |
msgid "Supported in WooCommerce 3.x"
|
846 |
msgstr ""
|
847 |
|
848 |
#. Text in echo
|
849 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
850 |
-
|
|
|
851 |
msgstr ""
|
852 |
|
853 |
#. Text in echo
|
854 |
-
#: woo-discount-rules/view/view-
|
855 |
-
msgid "To
|
856 |
msgstr ""
|
857 |
|
858 |
#. Text in echo
|
859 |
-
#: woo-discount-rules/view/view-
|
860 |
-
msgid "
|
861 |
msgstr ""
|
862 |
|
863 |
#. Text in echo
|
864 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
865 |
-
|
|
|
866 |
msgstr ""
|
867 |
|
868 |
#. Text in echo
|
869 |
-
#: woo-discount-rules/view/view-
|
870 |
-
msgid "Total
|
871 |
msgstr ""
|
872 |
|
873 |
#. Text in echo
|
874 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
875 |
-
msgid "Total
|
876 |
msgstr ""
|
877 |
|
878 |
#. Text in echo
|
879 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
880 |
msgid "Type"
|
881 |
msgstr ""
|
882 |
|
@@ -891,32 +1049,37 @@ msgid "Use Woocommerce free shipping"
|
|
891 |
msgstr ""
|
892 |
|
893 |
#. Text in echo
|
894 |
-
#: woo-discount-rules/view/view-cart-rules.php:215
|
895 |
#: woo-discount-rules/view/view-cart-rules.php:217
|
|
|
896 |
msgid "User in list"
|
897 |
msgstr ""
|
898 |
|
899 |
#. Text in echo
|
900 |
-
#: woo-discount-rules/view/view-cart-rules.php:225
|
901 |
#: woo-discount-rules/view/view-cart-rules.php:227
|
|
|
902 |
msgid "User role in list"
|
903 |
msgstr ""
|
904 |
|
905 |
#. Text in echo
|
906 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
907 |
msgid "User roles"
|
908 |
msgstr ""
|
909 |
|
910 |
#. Text in echo
|
911 |
-
#: woo-discount-rules/view/
|
912 |
-
|
|
|
|
|
|
|
|
|
|
|
913 |
msgid "Validity"
|
914 |
msgstr ""
|
915 |
|
916 |
#. Text in echo
|
917 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
918 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
919 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
920 |
msgid "Value"
|
921 |
msgstr ""
|
922 |
|
@@ -927,11 +1090,18 @@ msgid "View Examples"
|
|
927 |
msgstr ""
|
928 |
|
929 |
#. Text in echo
|
930 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
931 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
932 |
msgid "WARNING: More than one rule should not have same priority."
|
933 |
msgstr ""
|
934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
#. Text in echo
|
936 |
#: woo-discount-rules/view/settings.php:68
|
937 |
#: woo-discount-rules/view/settings.php:80
|
@@ -940,11 +1110,6 @@ msgstr ""
|
|
940 |
msgid "Yes"
|
941 |
msgstr ""
|
942 |
|
943 |
-
#. Text in echo
|
944 |
-
#: woo-discount-rules/view/view-pricing-rules.php:379
|
945 |
-
msgid "Yes, based on Purchase history."
|
946 |
-
msgstr ""
|
947 |
-
|
948 |
#. Text in echo
|
949 |
#: woo-discount-rules/view/cart-rules.php:37
|
950 |
#: woo-discount-rules/view/pricing-rules.php:69
|
@@ -952,36 +1117,68 @@ msgid "You Reach Max. Rule Limit"
|
|
952 |
msgstr ""
|
953 |
|
954 |
#. Text in echo
|
955 |
-
#: woo-discount-rules/view/
|
|
|
|
|
|
|
|
|
|
|
956 |
msgid "and"
|
957 |
msgstr ""
|
958 |
|
959 |
#. Text in echo
|
960 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
961 |
msgid "and get discount in "
|
962 |
msgstr ""
|
963 |
|
964 |
#. Text in echo
|
965 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
966 |
msgid "as discount"
|
967 |
msgstr ""
|
968 |
|
969 |
#. Text in echo
|
970 |
-
#: woo-discount-rules/view/view-
|
|
|
|
|
|
|
971 |
msgid "ex. 1"
|
972 |
msgstr ""
|
973 |
|
974 |
#. Text in echo
|
975 |
-
#: woo-discount-rules/view/view-pricing-rules.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
976 |
msgid "ex. 50"
|
977 |
msgstr ""
|
978 |
|
979 |
#. Text in echo
|
980 |
-
#: woo-discount-rules/view/view-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
981 |
msgid "to"
|
982 |
msgstr ""
|
983 |
|
984 |
#. Text in echo
|
985 |
-
#: woo-discount-rules/view/view-cart-rules.php:
|
986 |
msgid "value :"
|
987 |
msgstr ""
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Language-Team: Flycart\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Language: en\n"
|
12 |
+
"X-Generator: Poedit 1.8.7.1\n"
|
13 |
|
14 |
#. Text in echo
|
15 |
+
#: woo-discount-rules/view/view-pricing-rules.php:524
|
16 |
msgid " Product(s) "
|
17 |
msgstr ""
|
18 |
|
19 |
#. Text in echo
|
20 |
+
#: woo-discount-rules/view/view-pricing-rules.php:681
|
21 |
msgid "100% percent"
|
22 |
msgstr ""
|
23 |
|
24 |
#. Text in echo
|
25 |
#: woo-discount-rules/view/cart-rules.php:118
|
26 |
#: woo-discount-rules/view/pricing-rules.php:147
|
27 |
+
#: woo-discount-rules/view/view-cart-rules.php:500
|
28 |
msgid "Action"
|
29 |
msgstr ""
|
30 |
|
31 |
#. Text in echo
|
32 |
+
#: woo-discount-rules/view/view-cart-rules.php:133
|
33 |
msgid "Add Condition"
|
34 |
msgstr ""
|
35 |
|
36 |
#. Text in echo
|
37 |
+
#: woo-discount-rules/view/view-pricing-rules.php:543
|
38 |
msgid "Add New Range"
|
39 |
msgstr ""
|
40 |
|
45 |
msgstr ""
|
46 |
|
47 |
#. Text in echo
|
48 |
+
#: woo-discount-rules/view/view-pricing-rules.php:576
|
49 |
msgid "Adjustment Type"
|
50 |
msgstr ""
|
51 |
|
52 |
#. Text in echo
|
53 |
+
#: woo-discount-rules/view/view-pricing-rules.php:270
|
54 |
+
#: woo-discount-rules/view/view-pricing-rules.php:517
|
55 |
msgid "All"
|
56 |
msgstr ""
|
57 |
|
58 |
#. Text in echo
|
59 |
+
#: woo-discount-rules/view/view-pricing-rules.php:151
|
60 |
msgid "All products"
|
61 |
msgstr ""
|
62 |
|
63 |
#. Text in echo
|
64 |
+
#: woo-discount-rules/view/view-cart-rules.php:337
|
65 |
+
#: woo-discount-rules/view/view-cart-rules.php:339
|
66 |
+
#: woo-discount-rules/view/view-pricing-rules.php:619
|
67 |
msgid "All selected"
|
68 |
msgstr ""
|
69 |
|
70 |
#. Text in echo
|
71 |
+
#: woo-discount-rules/view/view-pricing-rules.php:495
|
72 |
msgid "Any"
|
73 |
msgstr ""
|
74 |
|
75 |
#. Text in echo
|
76 |
+
#: woo-discount-rules/view/view-pricing-rules.php:622
|
77 |
msgid "Any one cheapest from all products"
|
78 |
msgstr ""
|
79 |
|
80 |
#. Text in echo
|
81 |
+
#: woo-discount-rules/view/view-pricing-rules.php:621
|
82 |
msgid "Any one cheapest from selected"
|
83 |
msgstr ""
|
84 |
|
85 |
#. Text in echo
|
86 |
+
#: woo-discount-rules/view/view-pricing-rules.php:145
|
87 |
msgid "Apply To"
|
88 |
msgstr ""
|
89 |
|
106 |
msgstr ""
|
107 |
|
108 |
#. Text in echo
|
109 |
+
#: woo-discount-rules/view/view-pricing-rules.php:617
|
110 |
msgid "Apply for"
|
111 |
msgstr ""
|
112 |
|
113 |
#. Text in echo
|
114 |
+
#: woo-discount-rules/view/view-pricing-rules.php:329
|
115 |
msgid "Apply if all coupon applied"
|
116 |
msgstr ""
|
117 |
|
118 |
#. Text in echo
|
119 |
+
#: woo-discount-rules/view/view-pricing-rules.php:328
|
120 |
msgid "Apply if any one coupon applied"
|
121 |
msgstr ""
|
122 |
|
123 |
#. Text in echo
|
124 |
+
#: woo-discount-rules/view/view-cart-rules.php:327
|
125 |
+
#: woo-discount-rules/view/view-cart-rules.php:329
|
126 |
msgid "Atleast any one"
|
127 |
msgstr ""
|
128 |
|
129 |
#. Text in echo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
#: woo-discount-rules/view/view-cart-rules.php:271
|
131 |
+
#: woo-discount-rules/view/view-cart-rules.php:273
|
132 |
msgid "Billing city"
|
133 |
msgstr ""
|
134 |
|
135 |
#. Text in echo
|
136 |
+
#: woo-discount-rules/view/view-pricing-rules.php:493
|
137 |
msgid "Buy"
|
138 |
msgstr ""
|
139 |
|
140 |
#. Text in echo
|
141 |
+
#: woo-discount-rules/view/view-cart-rules.php:130
|
142 |
msgid "Cart Conditions"
|
143 |
msgstr ""
|
144 |
|
145 |
#. Text in echo
|
146 |
+
#: woo-discount-rules/view/includes/menu.php:10
|
147 |
+
msgid "Cart Discount Rules"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#. Text in echo
|
151 |
+
#: woo-discount-rules/view/view-cart-rules.php:168
|
152 |
msgid "Cart Item Count"
|
153 |
msgstr ""
|
154 |
|
158 |
msgstr ""
|
159 |
|
160 |
#. Text in echo
|
161 |
+
#: woo-discount-rules/view/view-cart-rules.php:158
|
162 |
msgid "Cart Subtotal"
|
163 |
msgstr ""
|
164 |
|
168 |
msgstr ""
|
169 |
|
170 |
#. Text in echo
|
171 |
+
#: woo-discount-rules/view/view-cart-rules.php:203
|
172 |
msgid "Categories In Cart"
|
173 |
msgstr ""
|
174 |
|
175 |
#. Text in echo
|
176 |
+
#: woo-discount-rules/view/view-cart-rules.php:208
|
177 |
msgid "Categories in cart"
|
178 |
msgstr ""
|
179 |
|
180 |
#. Text in echo
|
181 |
+
#: woo-discount-rules/view/view-pricing-rules.php:246
|
182 |
+
msgid "Check this box if the rule should not apply to items on sale."
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#. Text in echo
|
186 |
+
#: woo-discount-rules/view/view-pricing-rules.php:198
|
187 |
msgid "Check this box to apply child category(ies)"
|
188 |
msgstr ""
|
189 |
|
190 |
#. Text in echo
|
191 |
+
#: woo-discount-rules/view/view-pricing-rules.php:212
|
192 |
+
msgid "Check this box to count quantities cumulatively across attribute"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#. Text in echo
|
196 |
+
#: woo-discount-rules/view/view-pricing-rules.php:195
|
197 |
msgid "Check this box to count quantities cumulatively across category(ies)"
|
198 |
msgstr ""
|
199 |
|
200 |
#. Text in echo
|
201 |
+
#: woo-discount-rules/view/view-pricing-rules.php:183
|
202 |
msgid "Check this box to count quantities cumulatively across products"
|
203 |
msgstr ""
|
204 |
|
205 |
#. Text in echo
|
206 |
+
#: woo-discount-rules/view/view-cart-rules.php:53
|
207 |
+
#: woo-discount-rules/view/view-pricing-rules.php:37
|
208 |
msgid "Close"
|
209 |
msgstr ""
|
210 |
|
211 |
#. Text in echo
|
212 |
+
#: woo-discount-rules/view/view-pricing-rules.php:497
|
213 |
msgid "Combine"
|
214 |
msgstr ""
|
215 |
|
216 |
#. Text in echo
|
217 |
+
#: woo-discount-rules/view/includes/sub-menu.php:11
|
218 |
+
msgid "Condition"
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#. Text in echo
|
222 |
+
#: woo-discount-rules/view/includes/cart-menu.php:11
|
223 |
+
msgid "Conditions"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#. Text in echo
|
227 |
+
#: woo-discount-rules/view/view-pricing-rules.php:319
|
228 |
msgid "Coupon"
|
229 |
msgstr ""
|
230 |
|
234 |
msgstr ""
|
235 |
|
236 |
#. Text in echo
|
237 |
+
#: woo-discount-rules/view/view-cart-rules.php:321
|
238 |
msgid "Coupon applied"
|
239 |
msgstr ""
|
240 |
|
241 |
#. Text in echo
|
242 |
+
#: woo-discount-rules/view/view-cart-rules.php:265
|
243 |
msgid "Customer Billing Details"
|
244 |
msgstr ""
|
245 |
|
246 |
#. Text in echo
|
247 |
+
#: woo-discount-rules/view/view-cart-rules.php:211
|
248 |
msgid "Customer Details (must be logged in)"
|
249 |
msgstr ""
|
250 |
|
251 |
#. Text in echo
|
252 |
+
#: woo-discount-rules/view/view-cart-rules.php:243
|
253 |
msgid "Customer Email"
|
254 |
msgstr ""
|
255 |
|
256 |
#. Text in echo
|
257 |
+
#: woo-discount-rules/view/view-cart-rules.php:277
|
258 |
msgid "Customer Shipping Details"
|
259 |
msgstr ""
|
260 |
|
261 |
#. Text in echo
|
262 |
+
#: woo-discount-rules/view/view-pricing-rules.php:265
|
263 |
msgid "Customers"
|
264 |
msgstr ""
|
265 |
|
270 |
msgstr ""
|
271 |
|
272 |
#. Text in echo
|
|
|
273 |
#: woo-discount-rules/view/view-pricing-rules.php:103
|
274 |
+
#: woo-discount-rules/view/view-pricing-rules.php:105
|
275 |
msgid "Dependant product based discount"
|
276 |
msgstr ""
|
277 |
|
281 |
msgid "Disable"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#. Text in echo
|
285 |
+
#: woo-discount-rules/view/view-cart-rules.php:492
|
286 |
+
#: woo-discount-rules/view/view-pricing-rules.php:343
|
287 |
+
msgid "Disable the rules while have coupon(Third party)"
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
#. Text in echo
|
291 |
#: woo-discount-rules/view/settings.php:263
|
292 |
msgid "Disable the rules while have coupon(Third party) in cart"
|
299 |
msgstr ""
|
300 |
|
301 |
#. Text in echo
|
302 |
+
#: woo-discount-rules/view/includes/cart-menu.php:13
|
303 |
+
#: woo-discount-rules/view/includes/sub-menu.php:13
|
304 |
#: woo-discount-rules/view/template/discount-table.php:16
|
305 |
+
#: woo-discount-rules/view/view-cart-rules.php:517
|
306 |
+
#: woo-discount-rules/view/view-pricing-rules.php:540
|
307 |
msgid "Discount"
|
308 |
msgstr ""
|
309 |
|
310 |
#. Text in echo
|
311 |
+
#: woo-discount-rules/view/view-pricing-rules.php:140
|
312 |
msgid "Discount Conditions"
|
313 |
msgstr ""
|
314 |
|
323 |
msgstr ""
|
324 |
|
325 |
#. Text in echo
|
326 |
+
#: woo-discount-rules/view/view-cart-rules.php:533
|
327 |
msgid "Discount Type :"
|
328 |
msgstr ""
|
329 |
|
330 |
#. Text in echo
|
331 |
+
#: woo-discount-rules/view/view-pricing-rules.php:645
|
332 |
+
msgid "Discount for number of item(s) in cart"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#. Text in echo
|
336 |
+
#: woo-discount-rules/view/view-pricing-rules.php:652
|
337 |
+
msgid "Discount for number of quantity(ies) in each item"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#. Text in echo
|
341 |
+
#: woo-discount-rules/view/view-pricing-rules.php:298
|
342 |
+
#: woo-discount-rules/view/view-pricing-rules.php:327
|
343 |
+
#: woo-discount-rules/view/view-pricing-rules.php:376
|
344 |
+
#: woo-discount-rules/view/view-pricing-rules.php:419
|
345 |
msgid "Do not use"
|
346 |
msgstr ""
|
347 |
|
351 |
msgid "Documentation"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#. Text in echo
|
355 |
+
#: woo-discount-rules/view/settings.php:192
|
356 |
+
msgid "Don't Show"
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
#. Text in echo
|
360 |
#: woo-discount-rules/view/settings.php:326
|
361 |
msgid "Draft"
|
362 |
msgstr ""
|
363 |
|
364 |
#. Text in echo
|
365 |
+
#: woo-discount-rules/view/view-pricing-rules.php:642
|
366 |
msgid "Dynamic item count"
|
367 |
msgstr ""
|
368 |
|
369 |
#. Text in echo
|
370 |
+
#: woo-discount-rules/view/view-pricing-rules.php:496
|
371 |
msgid "Each"
|
372 |
msgstr ""
|
373 |
|
378 |
msgstr ""
|
379 |
|
380 |
#. Text in echo
|
381 |
+
#: woo-discount-rules/view/view-cart-rules.php:58
|
382 |
msgid "Edit Cart Rule"
|
383 |
msgstr ""
|
384 |
|
385 |
#. Text in echo
|
386 |
+
#: woo-discount-rules/view/view-pricing-rules.php:42
|
387 |
msgid "Edit Price Rule"
|
388 |
msgstr ""
|
389 |
|
390 |
#. Text in echo
|
|
|
391 |
#: woo-discount-rules/view/view-cart-rules.php:259
|
392 |
+
#: woo-discount-rules/view/view-cart-rules.php:261
|
393 |
msgid "Email with Domain (Eg: gmail.com)"
|
394 |
msgstr ""
|
395 |
|
396 |
#. Text in echo
|
|
|
397 |
#: woo-discount-rules/view/view-cart-rules.php:249
|
398 |
+
#: woo-discount-rules/view/view-cart-rules.php:251
|
399 |
msgid "Email with TLD (Eg: edu)"
|
400 |
msgstr ""
|
401 |
|
416 |
msgstr ""
|
417 |
|
418 |
#. Text in echo
|
419 |
+
#: woo-discount-rules/view/view-pricing-rules.php:442
|
420 |
msgid "Enter the amount"
|
421 |
msgstr ""
|
422 |
|
423 |
#. Text in echo
|
424 |
+
#: woo-discount-rules/view/view-pricing-rules.php:442
|
425 |
msgid "Enter the coupon code separated by comma(,)"
|
426 |
msgstr ""
|
427 |
|
428 |
#. Text in echo
|
429 |
+
#: woo-discount-rules/view/view-pricing-rules.php:502
|
430 |
msgid "Equal"
|
431 |
msgstr ""
|
432 |
|
436 |
msgstr ""
|
437 |
|
438 |
#. Text in echo
|
439 |
+
#: woo-discount-rules/view/view-pricing-rules.php:222
|
440 |
msgid "Exclude products"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#. Text in echo
|
444 |
+
#: woo-discount-rules/view/view-pricing-rules.php:241
|
445 |
+
msgid "Exclude sale items"
|
446 |
+
msgstr ""
|
447 |
+
|
448 |
#. Text in echo
|
449 |
#: woo-discount-rules/view/cart-rules.php:116
|
450 |
#: woo-discount-rules/view/pricing-rules.php:145
|
452 |
msgstr ""
|
453 |
|
454 |
#. Text in echo
|
455 |
+
#: woo-discount-rules/view/view-pricing-rules.php:518
|
456 |
msgid "First quantity(s)"
|
457 |
msgstr ""
|
458 |
|
459 |
#. Text in echo
|
460 |
+
#: woo-discount-rules/view/view-pricing-rules.php:712
|
461 |
msgid "Fixed"
|
462 |
msgstr ""
|
463 |
|
464 |
#. Text in echo
|
465 |
+
#: woo-discount-rules/view/view-pricing-rules.php:641
|
466 |
msgid "Fixed item count"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#. Text in echo
|
470 |
+
#: woo-discount-rules/view/view-pricing-rules.php:644
|
471 |
+
msgid "Fixed item count - You need to provide item count manually. Dynamic item count - System will choose dynamically based on cart"
|
472 |
+
msgstr ""
|
473 |
+
|
474 |
#. Text in echo
|
475 |
#: woo-discount-rules/view/settings.php:75
|
476 |
msgid "Force refresh the cart widget while add and remove item to cart"
|
487 |
msgstr ""
|
488 |
|
489 |
#. Text in echo
|
490 |
+
#: woo-discount-rules/view/view-pricing-rules.php:628
|
491 |
msgid "Free quantity"
|
492 |
msgstr ""
|
493 |
|
494 |
#. Text in echo
|
495 |
+
#: woo-discount-rules/view/view-cart-rules.php:552
|
496 |
+
#: woo-discount-rules/view/view-cart-rules.php:554
|
497 |
msgid "Free shipping"
|
498 |
msgstr ""
|
499 |
|
503 |
msgstr ""
|
504 |
|
505 |
#. Text in echo
|
506 |
+
#: woo-discount-rules/view/view-cart-rules.php:117
|
507 |
+
#: woo-discount-rules/view/view-pricing-rules.php:127
|
508 |
+
#: woo-discount-rules/view/view-pricing-rules.php:503
|
509 |
msgid "From"
|
510 |
msgstr ""
|
511 |
|
512 |
#. Text in echo
|
513 |
+
#: woo-discount-rules/view/includes/cart-menu.php:9
|
514 |
+
#: woo-discount-rules/view/includes/sub-menu.php:9
|
515 |
+
#: woo-discount-rules/view/view-cart-rules.php:61
|
516 |
+
#: woo-discount-rules/view/view-pricing-rules.php:45
|
517 |
msgid "General"
|
518 |
msgstr ""
|
519 |
|
523 |
msgstr ""
|
524 |
|
525 |
#. Text in echo
|
526 |
+
#: woo-discount-rules/view/view-cart-rules.php:458
|
527 |
+
#: woo-discount-rules/view/view-pricing-rules.php:456
|
528 |
msgid "Greater than or equal to"
|
529 |
msgstr ""
|
530 |
|
534 |
msgstr ""
|
535 |
|
536 |
#. Text in echo
|
537 |
+
#: woo-discount-rules/view/template/sidebar.php:12
|
538 |
+
msgid "Hide"
|
539 |
+
msgstr ""
|
540 |
+
|
541 |
+
#. Text in echo
|
542 |
+
#: woo-discount-rules/view/view-cart-rules.php:461
|
543 |
+
#: woo-discount-rules/view/view-pricing-rules.php:460
|
544 |
msgid "In Order status"
|
545 |
msgstr ""
|
546 |
|
550 |
msgstr ""
|
551 |
|
552 |
#. Text in echo
|
553 |
+
#: woo-discount-rules/view/view-pricing-rules.php:645
|
554 |
msgid "Item count"
|
555 |
msgstr ""
|
556 |
|
557 |
#. Text in echo
|
558 |
+
#: woo-discount-rules/view/view-pricing-rules.php:652
|
559 |
msgid "Item quantity"
|
560 |
msgstr ""
|
561 |
|
562 |
#. Text in echo
|
563 |
+
#: woo-discount-rules/view/view-pricing-rules.php:501
|
564 |
msgid "Less than"
|
565 |
msgstr ""
|
566 |
|
567 |
#. Text in echo
|
568 |
+
#: woo-discount-rules/view/view-cart-rules.php:459
|
569 |
+
#: woo-discount-rules/view/view-pricing-rules.php:457
|
570 |
msgid "Less than or equal to"
|
571 |
msgstr ""
|
572 |
|
581 |
msgstr ""
|
582 |
|
583 |
#. Text in echo
|
584 |
+
#: woo-discount-rules/view/view-pricing-rules.php:682
|
585 |
msgid "Limited percent"
|
586 |
msgstr ""
|
587 |
|
591 |
msgstr ""
|
592 |
|
593 |
#. Text in echo
|
594 |
+
#: woo-discount-rules/view/view-pricing-rules.php:570
|
595 |
msgid "Max Quantity"
|
596 |
msgstr ""
|
597 |
|
598 |
#. Text in echo
|
599 |
+
#: woo-discount-rules/view/view-pricing-rules.php:88
|
600 |
msgid "Method"
|
601 |
msgstr ""
|
602 |
|
603 |
#. Text in echo
|
604 |
+
#: woo-discount-rules/view/view-pricing-rules.php:90
|
605 |
+
msgid "Method to Apply."
|
606 |
+
msgstr ""
|
607 |
+
|
608 |
+
#. Text in echo
|
609 |
+
#: woo-discount-rules/view/view-pricing-rules.php:563
|
610 |
msgid "Min Quantity"
|
611 |
msgstr ""
|
612 |
|
613 |
#. Text in echo
|
614 |
+
#: woo-discount-rules/view/view-pricing-rules.php:500
|
615 |
msgid "More than"
|
616 |
msgstr ""
|
617 |
|
618 |
#. Text in echo
|
619 |
+
#: woo-discount-rules/view/view-pricing-rules.php:625
|
620 |
msgid "More than one cheapest from all"
|
621 |
msgstr ""
|
622 |
|
623 |
#. Text in echo
|
624 |
+
#: woo-discount-rules/view/view-pricing-rules.php:624
|
625 |
msgid "More than one cheapest from selected"
|
626 |
msgstr ""
|
627 |
|
628 |
#. Text in echo
|
629 |
+
#: woo-discount-rules/view/view-pricing-rules.php:623
|
630 |
msgid "More than one cheapest from selected category"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#. Text in echo
|
634 |
+
#: woo-discount-rules/view/cart-rules.php:52
|
635 |
+
#: woo-discount-rules/view/pricing-rules.php:81
|
636 |
+
msgid "NOTE: Order Should not be empty ('-').If it's empty('-'), then it won't be implemented."
|
637 |
+
msgstr ""
|
638 |
+
|
639 |
#. Text in echo
|
640 |
#: woo-discount-rules/view/cart-rules.php:114
|
641 |
#: woo-discount-rules/view/pricing-rules.php:143
|
649 |
msgstr ""
|
650 |
|
651 |
#. Text in echo
|
652 |
+
#: woo-discount-rules/view/view-cart-rules.php:56
|
653 |
msgid "New Cart Rule"
|
654 |
msgstr ""
|
655 |
|
656 |
#. Text in echo
|
657 |
+
#: woo-discount-rules/view/view-pricing-rules.php:40
|
658 |
msgid "New Price Rule"
|
659 |
msgstr ""
|
660 |
|
661 |
#. Text in echo
|
662 |
+
#: woo-discount-rules/view/view-cart-rules.php:126
|
663 |
+
#: woo-discount-rules/view/view-cart-rules.php:512
|
664 |
+
#: woo-discount-rules/view/view-pricing-rules.php:135
|
665 |
+
#: woo-discount-rules/view/view-pricing-rules.php:533
|
666 |
msgid "Next"
|
667 |
msgstr ""
|
668 |
|
671 |
#: woo-discount-rules/view/settings.php:81
|
672 |
#: woo-discount-rules/view/settings.php:206
|
673 |
#: woo-discount-rules/view/settings.php:269
|
674 |
+
#: woo-discount-rules/view/view-cart-rules.php:492
|
675 |
+
#: woo-discount-rules/view/view-pricing-rules.php:343
|
676 |
msgid "No"
|
677 |
msgstr ""
|
678 |
|
682 |
msgstr ""
|
683 |
|
684 |
#. Text in echo
|
685 |
+
#: woo-discount-rules/view/view-cart-rules.php:466
|
686 |
+
#: woo-discount-rules/view/view-pricing-rules.php:187
|
687 |
+
#: woo-discount-rules/view/view-pricing-rules.php:203
|
688 |
+
#: woo-discount-rules/view/view-pricing-rules.php:468
|
689 |
+
#: woo-discount-rules/view/view-pricing-rules.php:669
|
690 |
+
msgid "None selected"
|
691 |
+
msgstr ""
|
692 |
+
|
693 |
+
#. Text in echo
|
694 |
+
#: woo-discount-rules/view/view-cart-rules.php:171
|
695 |
msgid "Number of line items in the cart (not quantity) at least"
|
696 |
msgstr ""
|
697 |
|
698 |
#. Text in echo
|
699 |
+
#: woo-discount-rules/view/view-cart-rules.php:175
|
700 |
msgid "Number of line items in the cart (not quantity) less than"
|
701 |
msgstr ""
|
702 |
|
703 |
#. Text in echo
|
704 |
+
#: woo-discount-rules/view/view-cart-rules.php:305
|
705 |
+
#: woo-discount-rules/view/view-cart-rules.php:307
|
706 |
+
msgid "Number of order purchased"
|
707 |
+
msgstr ""
|
708 |
+
|
709 |
+
#. Text in echo
|
710 |
+
#: woo-discount-rules/view/view-cart-rules.php:315
|
711 |
+
#: woo-discount-rules/view/view-cart-rules.php:317
|
712 |
+
msgid "Number of order purchased in products"
|
713 |
+
msgstr ""
|
714 |
+
|
715 |
+
#. Text in echo
|
716 |
+
#: woo-discount-rules/view/view-pricing-rules.php:421
|
717 |
+
msgid "Number of orders"
|
718 |
+
msgstr ""
|
719 |
+
|
720 |
+
#. Text in echo
|
721 |
+
#: woo-discount-rules/view/view-pricing-rules.php:628
|
722 |
+
msgid "Number of quantity(ies) in each selected product(s)"
|
723 |
+
msgstr ""
|
724 |
+
|
725 |
+
#. Text in echo
|
726 |
+
#: woo-discount-rules/view/view-pricing-rules.php:277
|
727 |
+
#: woo-discount-rules/view/view-pricing-rules.php:279
|
728 |
msgid "Only Given"
|
729 |
msgstr ""
|
730 |
|
735 |
msgstr ""
|
736 |
|
737 |
#. Text in echo
|
738 |
+
#: woo-discount-rules/view/view-cart-rules.php:65
|
739 |
+
#: woo-discount-rules/view/view-pricing-rules.php:49
|
740 |
msgid "Order :"
|
741 |
msgstr ""
|
742 |
|
743 |
#. Text in echo
|
744 |
+
#: woo-discount-rules/view/view-pricing-rules.php:711
|
745 |
msgid "Percent"
|
746 |
msgstr ""
|
747 |
|
748 |
#. Text in echo
|
749 |
+
#: woo-discount-rules/view/view-pricing-rules.php:689
|
750 |
+
msgid "Percentage"
|
751 |
+
msgstr ""
|
752 |
+
|
753 |
+
#. Text in echo
|
754 |
+
#: woo-discount-rules/view/view-cart-rules.php:537
|
755 |
+
#: woo-discount-rules/view/view-pricing-rules.php:582
|
756 |
msgid "Percentage Discount"
|
757 |
msgstr ""
|
758 |
|
759 |
#. Text in echo
|
760 |
+
#: woo-discount-rules/view/view-cart-rules.php:104
|
761 |
+
#: woo-discount-rules/view/view-pricing-rules.php:114
|
762 |
msgid "Period of Rule Active. Format: month/day/Year Hour:Min"
|
763 |
msgstr ""
|
764 |
|
768 |
msgstr ""
|
769 |
|
770 |
#. Text in echo
|
771 |
+
#: woo-discount-rules/view/view-cart-rules.php:511
|
772 |
+
#: woo-discount-rules/view/view-cart-rules.php:571
|
773 |
+
#: woo-discount-rules/view/view-pricing-rules.php:532
|
774 |
+
#: woo-discount-rules/view/view-pricing-rules.php:718
|
775 |
msgid "Previous"
|
776 |
msgstr ""
|
777 |
|
778 |
#. Text in echo
|
779 |
+
#: woo-discount-rules/view/view-cart-rules.php:543
|
780 |
+
#: woo-discount-rules/view/view-cart-rules.php:545
|
781 |
+
#: woo-discount-rules/view/view-pricing-rules.php:590
|
782 |
+
#: woo-discount-rules/view/view-pricing-rules.php:592
|
783 |
msgid "Price Discount"
|
784 |
msgstr ""
|
785 |
|
786 |
+
#. Text in echo
|
787 |
+
#: woo-discount-rules/view/includes/menu.php:8
|
788 |
+
msgid "Price Discount Rules"
|
789 |
+
msgstr ""
|
790 |
+
|
791 |
#. Text in echo
|
792 |
#: woo-discount-rules/view/pricing-rules.php:54
|
793 |
msgid "Price Rules"
|
799 |
msgstr ""
|
800 |
|
801 |
#. Text in echo
|
802 |
+
#: woo-discount-rules/view/view-pricing-rules.php:600
|
803 |
+
#: woo-discount-rules/view/view-pricing-rules.php:602
|
804 |
msgid "Product Discount"
|
805 |
msgstr ""
|
806 |
|
807 |
#. Text in echo
|
808 |
+
#: woo-discount-rules/view/view-pricing-rules.php:511
|
809 |
msgid "Product(s) from"
|
810 |
msgstr ""
|
811 |
|
812 |
#. Text in echo
|
813 |
+
#: woo-discount-rules/view/view-cart-rules.php:289
|
814 |
+
#: woo-discount-rules/view/view-pricing-rules.php:412
|
815 |
msgid "Purchase History"
|
816 |
msgstr ""
|
817 |
|
818 |
#. Text in echo
|
819 |
+
#: woo-discount-rules/view/view-cart-rules.php:295
|
820 |
+
#: woo-discount-rules/view/view-cart-rules.php:297
|
821 |
+
#: woo-discount-rules/view/view-pricing-rules.php:420
|
822 |
+
msgid "Purchased amount"
|
823 |
+
msgstr ""
|
824 |
+
|
825 |
+
#. Text in echo
|
826 |
+
#: woo-discount-rules/view/view-pricing-rules.php:422
|
827 |
+
msgid "Purchased product"
|
828 |
+
msgstr ""
|
829 |
+
|
830 |
+
#. Text in echo
|
831 |
+
#: woo-discount-rules/view/view-pricing-rules.php:505
|
832 |
+
#: woo-discount-rules/view/view-pricing-rules.php:508
|
833 |
+
#: woo-discount-rules/view/view-pricing-rules.php:521
|
834 |
msgid "Quantity"
|
835 |
msgstr ""
|
836 |
|
837 |
#. Text in echo
|
838 |
+
#: woo-discount-rules/view/view-cart-rules.php:178
|
839 |
msgid "Quantity Sum"
|
840 |
msgstr ""
|
841 |
|
842 |
#. Text in echo
|
843 |
+
#: woo-discount-rules/view/view-pricing-rules.php:96
|
844 |
msgid "Quantity based by product/category and BOGO deals"
|
845 |
msgstr ""
|
846 |
|
850 |
msgstr ""
|
851 |
|
852 |
#. Text in echo
|
853 |
+
#: woo-discount-rules/view/view-cart-rules.php:501
|
854 |
+
#: woo-discount-rules/view/view-pricing-rules.php:696
|
855 |
msgid "Remove"
|
856 |
msgstr ""
|
857 |
|
858 |
#. Text in echo
|
859 |
+
#: woo-discount-rules/view/view-cart-rules.php:92
|
860 |
+
#: woo-discount-rules/view/view-pricing-rules.php:77
|
861 |
msgid "Rule Description"
|
862 |
msgstr ""
|
863 |
|
864 |
#. Text in echo
|
865 |
+
#: woo-discount-rules/view/view-cart-rules.php:94
|
866 |
+
#: woo-discount-rules/view/view-pricing-rules.php:79
|
867 |
+
msgid "Rule Descriptions."
|
868 |
+
msgstr ""
|
869 |
+
|
870 |
+
#. Text in echo
|
871 |
+
#: woo-discount-rules/view/view-cart-rules.php:80
|
872 |
+
#: woo-discount-rules/view/view-pricing-rules.php:65
|
873 |
msgid "Rule Name"
|
874 |
msgstr ""
|
875 |
|
884 |
msgstr ""
|
885 |
|
886 |
#. Text in echo
|
887 |
+
#: woo-discount-rules/view/view-pricing-rules.php:620
|
888 |
+
msgid "Same product"
|
889 |
+
msgstr ""
|
890 |
+
|
891 |
+
#. Text in echo
|
892 |
+
#: woo-discount-rules/view/settings.php:19
|
893 |
+
msgid "Save"
|
894 |
+
msgstr ""
|
895 |
+
|
896 |
+
#. Text in echo
|
897 |
+
#: woo-discount-rules/view/view-cart-rules.php:52
|
898 |
+
#: woo-discount-rules/view/view-pricing-rules.php:36
|
899 |
+
msgid "Save Rule"
|
900 |
+
msgstr ""
|
901 |
+
|
902 |
+
#. Text in echo
|
903 |
+
#: woo-discount-rules/view/includes/menu.php:12
|
904 |
+
msgid "Settings"
|
905 |
+
msgstr ""
|
906 |
+
|
907 |
+
#. Text in echo
|
908 |
#: woo-discount-rules/view/view-cart-rules.php:237
|
909 |
+
#: woo-discount-rules/view/view-cart-rules.php:239
|
910 |
msgid "Shipping country in list"
|
911 |
msgstr ""
|
912 |
|
913 |
#. Text in echo
|
|
|
914 |
#: woo-discount-rules/view/view-cart-rules.php:283
|
915 |
+
#: woo-discount-rules/view/view-cart-rules.php:285
|
916 |
msgid "Shipping state"
|
917 |
msgstr ""
|
918 |
|
942 |
msgstr ""
|
943 |
|
944 |
#. Text in echo
|
945 |
+
#: woo-discount-rules/view/view-pricing-rules.php:519
|
946 |
msgid "Skip first quantity(s)"
|
947 |
msgstr ""
|
948 |
|
949 |
#. Text in echo
|
|
|
950 |
#: woo-discount-rules/view/view-pricing-rules.php:170
|
951 |
+
#: woo-discount-rules/view/view-pricing-rules.php:172
|
952 |
msgid "Specific attributes"
|
953 |
msgstr ""
|
954 |
|
955 |
#. Text in echo
|
|
|
956 |
#: woo-discount-rules/view/view-pricing-rules.php:161
|
957 |
+
#: woo-discount-rules/view/view-pricing-rules.php:163
|
958 |
msgid "Specific categories"
|
959 |
msgstr ""
|
960 |
|
961 |
#. Text in echo
|
962 |
+
#: woo-discount-rules/view/view-pricing-rules.php:155
|
963 |
msgid "Specific products"
|
964 |
msgstr ""
|
965 |
|
970 |
msgstr ""
|
971 |
|
972 |
#. Text in echo
|
973 |
+
#: woo-discount-rules/view/view-pricing-rules.php:366
|
974 |
msgid "Subtotal"
|
975 |
msgstr ""
|
976 |
|
977 |
#. Text in echo
|
978 |
+
#: woo-discount-rules/view/view-cart-rules.php:161
|
979 |
msgid "Subtotal at least"
|
980 |
msgstr ""
|
981 |
|
982 |
#. Text in echo
|
983 |
+
#: woo-discount-rules/view/view-pricing-rules.php:377
|
984 |
msgid "Subtotal atleast"
|
985 |
msgstr ""
|
986 |
|
987 |
#. Text in echo
|
988 |
+
#: woo-discount-rules/view/view-cart-rules.php:165
|
989 |
msgid "Subtotal less than"
|
990 |
msgstr ""
|
991 |
|
992 |
#. Text in echo
|
993 |
#: woo-discount-rules/view/settings.php:330
|
994 |
+
#: woo-discount-rules/view/view-pricing-rules.php:442
|
995 |
+
#: woo-discount-rules/view/view-pricing-rules.php:612
|
996 |
msgid "Supported in PRO version"
|
997 |
msgstr ""
|
998 |
|
999 |
#. Text in echo
|
1000 |
+
#: woo-discount-rules/view/view-pricing-rules.php:442
|
1001 |
msgid "Supported in WooCommerce 3.x"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
#. Text in echo
|
1005 |
+
#: woo-discount-rules/view/view-cart-rules.php:67
|
1006 |
+
#: woo-discount-rules/view/view-pricing-rules.php:51
|
1007 |
+
msgid "The Simple Ranking concept to said, which one is going to execute first and so on."
|
1008 |
msgstr ""
|
1009 |
|
1010 |
#. Text in echo
|
1011 |
+
#: woo-discount-rules/view/view-cart-rules.php:121
|
1012 |
+
msgid "To"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
#. Text in echo
|
1016 |
+
#: woo-discount-rules/view/view-pricing-rules.php:131
|
1017 |
+
msgid "To - Leave Empty if No Expiry"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
#. Text in echo
|
1021 |
+
#: woo-discount-rules/view/view-cart-rules.php:492
|
1022 |
+
#: woo-discount-rules/view/view-pricing-rules.php:343
|
1023 |
+
msgid "To get this condition work,"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
#. Text in echo
|
1027 |
+
#: woo-discount-rules/view/view-cart-rules.php:187
|
1028 |
+
msgid "Total number of quantities in the cart at least"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
#. Text in echo
|
1032 |
+
#: woo-discount-rules/view/view-cart-rules.php:199
|
1033 |
+
msgid "Total number of quantities in the cart less than"
|
1034 |
msgstr ""
|
1035 |
|
1036 |
#. Text in echo
|
1037 |
+
#: woo-discount-rules/view/view-cart-rules.php:154
|
1038 |
msgid "Type"
|
1039 |
msgstr ""
|
1040 |
|
1049 |
msgstr ""
|
1050 |
|
1051 |
#. Text in echo
|
|
|
1052 |
#: woo-discount-rules/view/view-cart-rules.php:217
|
1053 |
+
#: woo-discount-rules/view/view-cart-rules.php:219
|
1054 |
msgid "User in list"
|
1055 |
msgstr ""
|
1056 |
|
1057 |
#. Text in echo
|
|
|
1058 |
#: woo-discount-rules/view/view-cart-rules.php:227
|
1059 |
+
#: woo-discount-rules/view/view-cart-rules.php:229
|
1060 |
msgid "User role in list"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
#. Text in echo
|
1064 |
+
#: woo-discount-rules/view/view-pricing-rules.php:293
|
1065 |
msgid "User roles"
|
1066 |
msgstr ""
|
1067 |
|
1068 |
#. Text in echo
|
1069 |
+
#: woo-discount-rules/view/settings.php:37
|
1070 |
+
msgid "Validate Key"
|
1071 |
+
msgstr ""
|
1072 |
+
|
1073 |
+
#. Text in echo
|
1074 |
+
#: woo-discount-rules/view/view-cart-rules.php:103
|
1075 |
+
#: woo-discount-rules/view/view-pricing-rules.php:113
|
1076 |
msgid "Validity"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
#. Text in echo
|
1080 |
+
#: woo-discount-rules/view/view-cart-rules.php:347
|
1081 |
+
#: woo-discount-rules/view/view-pricing-rules.php:606
|
1082 |
+
#: woo-discount-rules/view/view-pricing-rules.php:713
|
1083 |
msgid "Value"
|
1084 |
msgstr ""
|
1085 |
|
1090 |
msgstr ""
|
1091 |
|
1092 |
#. Text in echo
|
1093 |
+
#: woo-discount-rules/view/view-cart-rules.php:74
|
1094 |
+
#: woo-discount-rules/view/view-pricing-rules.php:59
|
1095 |
msgid "WARNING: More than one rule should not have same priority."
|
1096 |
msgstr ""
|
1097 |
|
1098 |
+
#. Text in echo
|
1099 |
+
#: woo-discount-rules/view/includes/cart-menu.php:5
|
1100 |
+
#: woo-discount-rules/view/includes/menu.php:5
|
1101 |
+
#: woo-discount-rules/view/includes/sub-menu.php:5
|
1102 |
+
msgid "Woo Discount Rules"
|
1103 |
+
msgstr ""
|
1104 |
+
|
1105 |
#. Text in echo
|
1106 |
#: woo-discount-rules/view/settings.php:68
|
1107 |
#: woo-discount-rules/view/settings.php:80
|
1110 |
msgid "Yes"
|
1111 |
msgstr ""
|
1112 |
|
|
|
|
|
|
|
|
|
|
|
1113 |
#. Text in echo
|
1114 |
#: woo-discount-rules/view/cart-rules.php:37
|
1115 |
#: woo-discount-rules/view/pricing-rules.php:69
|
1117 |
msgstr ""
|
1118 |
|
1119 |
#. Text in echo
|
1120 |
+
#: woo-discount-rules/view/settings.php:36
|
1121 |
+
msgid "Your Unique License Key"
|
1122 |
+
msgstr ""
|
1123 |
+
|
1124 |
+
#. Text in echo
|
1125 |
+
#: woo-discount-rules/view/view-pricing-rules.php:679
|
1126 |
msgid "and"
|
1127 |
msgstr ""
|
1128 |
|
1129 |
#. Text in echo
|
1130 |
+
#: woo-discount-rules/view/view-pricing-rules.php:515
|
1131 |
msgid "and get discount in "
|
1132 |
msgstr ""
|
1133 |
|
1134 |
#. Text in echo
|
1135 |
+
#: woo-discount-rules/view/view-pricing-rules.php:691
|
1136 |
msgid "as discount"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
#. Text in echo
|
1140 |
+
#: woo-discount-rules/view/view-cart-rules.php:73
|
1141 |
+
#: woo-discount-rules/view/view-pricing-rules.php:58
|
1142 |
+
#: woo-discount-rules/view/view-pricing-rules.php:568
|
1143 |
+
#: woo-discount-rules/view/view-pricing-rules.php:657
|
1144 |
msgid "ex. 1"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
#. Text in echo
|
1148 |
+
#: woo-discount-rules/view/view-pricing-rules.php:689
|
1149 |
+
msgid "ex. 10"
|
1150 |
+
msgstr ""
|
1151 |
+
|
1152 |
+
#. Text in echo
|
1153 |
+
#: woo-discount-rules/view/view-pricing-rules.php:575
|
1154 |
+
#: woo-discount-rules/view/view-pricing-rules.php:611
|
1155 |
msgid "ex. 50"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
#. Text in echo
|
1159 |
+
#: woo-discount-rules/view/view-cart-rules.php:87
|
1160 |
+
#: woo-discount-rules/view/view-pricing-rules.php:72
|
1161 |
+
msgid "ex. Standard Rule."
|
1162 |
+
msgstr ""
|
1163 |
+
|
1164 |
+
#. Text in echo
|
1165 |
+
#: woo-discount-rules/view/view-cart-rules.php:492
|
1166 |
+
#: woo-discount-rules/view/view-pricing-rules.php:343
|
1167 |
+
msgid "in cart to"
|
1168 |
+
msgstr ""
|
1169 |
+
|
1170 |
+
#. Text in echo
|
1171 |
+
#: woo-discount-rules/view/view-cart-rules.php:492
|
1172 |
+
#: woo-discount-rules/view/view-pricing-rules.php:343
|
1173 |
+
msgid "please change the option"
|
1174 |
+
msgstr ""
|
1175 |
+
|
1176 |
+
#. Text in echo
|
1177 |
+
#: woo-discount-rules/view/view-pricing-rules.php:507
|
1178 |
msgid "to"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
#. Text in echo
|
1182 |
+
#: woo-discount-rules/view/view-cart-rules.php:563
|
1183 |
msgid "value :"
|
1184 |
msgstr ""
|
includes/discount-base.php
CHANGED
@@ -128,7 +128,7 @@ if (!class_exists('FlycartWooDiscountBase')) {
|
|
128 |
$log['price_discount'] = WC()->session->get('woo_price_discount', array());
|
129 |
$log['cart_discount'] = WC()->session->get('woo_cart_discount', array());
|
130 |
|
131 |
-
add_post_meta($order_id, 'woo_discount_log', json_encode($log));
|
132 |
|
133 |
// Reset the Coupon Status.
|
134 |
WC()->session->set('woo_coupon_removed', '');
|
@@ -693,6 +693,8 @@ if (!class_exists('FlycartWooDiscountBase')) {
|
|
693 |
|
694 |
wp_enqueue_script('woo_discount_datetimepicker_js', WOO_DISCOUNT_URI . '/assets/js/bootstrap-datetimepicker.min.js', array(), WOO_DISCOUNT_VERSION);
|
695 |
wp_enqueue_script('woo_discount_script', WOO_DISCOUNT_URI . '/assets/js/app.js', array(), WOO_DISCOUNT_VERSION);
|
|
|
|
|
696 |
|
697 |
//To load woocommerce product select
|
698 |
wp_enqueue_script( 'wc-enhanced-select' );
|
@@ -700,5 +702,93 @@ if (!class_exists('FlycartWooDiscountBase')) {
|
|
700 |
}
|
701 |
}
|
702 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
703 |
}
|
704 |
}
|
128 |
$log['price_discount'] = WC()->session->get('woo_price_discount', array());
|
129 |
$log['cart_discount'] = WC()->session->get('woo_cart_discount', array());
|
130 |
|
131 |
+
add_post_meta($order_id, 'woo_discount_log', json_encode($log), 1);
|
132 |
|
133 |
// Reset the Coupon Status.
|
134 |
WC()->session->set('woo_coupon_removed', '');
|
693 |
|
694 |
wp_enqueue_script('woo_discount_datetimepicker_js', WOO_DISCOUNT_URI . '/assets/js/bootstrap-datetimepicker.min.js', array(), WOO_DISCOUNT_VERSION);
|
695 |
wp_enqueue_script('woo_discount_script', WOO_DISCOUNT_URI . '/assets/js/app.js', array(), WOO_DISCOUNT_VERSION);
|
696 |
+
$localization_data = $this->getLocalizationData();
|
697 |
+
wp_localize_script( 'woo_discount_script', 'woo_discount_localization', $localization_data);
|
698 |
|
699 |
//To load woocommerce product select
|
700 |
wp_enqueue_script( 'wc-enhanced-select' );
|
702 |
}
|
703 |
}
|
704 |
|
705 |
+
/**
|
706 |
+
* Get localisation script
|
707 |
+
* */
|
708 |
+
protected function getLocalizationData(){
|
709 |
+
return array(
|
710 |
+
'please_fill_this_field' => esc_html__('Please fill this field', 'woo-discount-rules'),
|
711 |
+
'please_enter_the_rule_name' => esc_html__('Please Enter the Rule Name to Create / Save.', 'woo-discount-rules'),
|
712 |
+
'saving' => esc_html__('Saving...', 'woo-discount-rules'),
|
713 |
+
'save_rule' => esc_html__('Save Rule', 'woo-discount-rules'),
|
714 |
+
'please_enter_a_key' => esc_html__('Please enter a Key', 'woo-discount-rules'),
|
715 |
+
'min_quantity' => esc_html__('Min Quantity', 'woo-discount-rules'),
|
716 |
+
'max_quantity' => esc_html__('Max Quantity', 'woo-discount-rules'),
|
717 |
+
'place_holder_ex_1' => esc_html__('ex. 1', 'woo-discount-rules'),
|
718 |
+
'place_holder_ex_10' => esc_html__('ex. 10', 'woo-discount-rules'),
|
719 |
+
'place_holder_ex_50' => esc_html__('ex. 50', 'woo-discount-rules'),
|
720 |
+
'place_holder_search_for_a_user' => esc_html__('Search for a user', 'woo-discount-rules'),
|
721 |
+
'adjustment_type' => esc_html__('Adjustment Type', 'woo-discount-rules'),
|
722 |
+
'percentage_discount' => esc_html__('Percentage Discount', 'woo-discount-rules'),
|
723 |
+
'price_discount' => esc_html__('Price Discount', 'woo-discount-rules'),
|
724 |
+
'product_discount' => esc_html__('Product Discount', 'woo-discount-rules'),
|
725 |
+
'product_discount_not_work_on_subtotal_based' => esc_html__('Product Discount - Not support for subtotal based rule', 'woo-discount-rules'),
|
726 |
+
'value_text' => esc_html__('Value', 'woo-discount-rules'),
|
727 |
+
'apply_for' => esc_html__('Apply for', 'woo-discount-rules'),
|
728 |
+
'all_selected' => esc_html__('All selected', 'woo-discount-rules'),
|
729 |
+
'same_product' => esc_html__('Same product', 'woo-discount-rules'),
|
730 |
+
'any_one_cheapest_from_selected' => esc_html__('Any one cheapest from selected', 'woo-discount-rules'),
|
731 |
+
'any_one_cheapest_from_all_products' => esc_html__('Any one cheapest from all products', 'woo-discount-rules'),
|
732 |
+
'more_than_one_cheapest_from_selected_category' => esc_html__('More than one cheapest from selected category', 'woo-discount-rules'),
|
733 |
+
'more_than_one_cheapest_from_selected' => esc_html__('More than one cheapest from selected', 'woo-discount-rules'),
|
734 |
+
'more_than_one_cheapest_from_all' => esc_html__('More than one cheapest from all', 'woo-discount-rules'),
|
735 |
+
'free_quantity' => esc_html__('Free quantity', 'woo-discount-rules'),
|
736 |
+
'number_of_quantities_in_each_products' => esc_html__('Number of quantity(ies) in each selected product(s)', 'woo-discount-rules'),
|
737 |
+
'fixed_item_count' => esc_html__('Fixed item count', 'woo-discount-rules'),
|
738 |
+
'dynamic_item_count' => esc_html__('Dynamic item count', 'woo-discount-rules'),
|
739 |
+
'fixed_item_count_tooltip' => esc_html__('Fixed item count - You need to provide item count manually. Dynamic item count - System will choose dynamically based on cart', 'woo-discount-rules'),
|
740 |
+
'item_count' => esc_html__('Item count', 'woo-discount-rules'),
|
741 |
+
'discount_number_of_item_tooltip' => esc_html__('Discount for number of item(s) in cart', 'woo-discount-rules'),
|
742 |
+
'discount_number_of_each_item_tooltip' => esc_html__('Discount for number of quantity(ies) in each item', 'woo-discount-rules'),
|
743 |
+
'item_quantity' => esc_html__('Item quantity', 'woo-discount-rules'),
|
744 |
+
'place_holder_search_for_products' => esc_html__('Search for a products', 'woo-discount-rules'),
|
745 |
+
'and_text' => esc_html__('and', 'woo-discount-rules'),
|
746 |
+
'percent_100' => esc_html__('100% percent', 'woo-discount-rules'),
|
747 |
+
'limited_percent' => esc_html__('Limited percent', 'woo-discount-rules'),
|
748 |
+
'percentage_tooltip' => esc_html__('Percentage', 'woo-discount-rules'),
|
749 |
+
'as_discount' => esc_html__('as discount', 'woo-discount-rules'),
|
750 |
+
'remove_text' => esc_html__('Remove', 'woo-discount-rules'),
|
751 |
+
'none_text' => esc_html__('none', 'woo-discount-rules'),
|
752 |
+
'are_you_sure_to_remove_this' => esc_html__('Are you sure to remove this ?', 'woo-discount-rules'),
|
753 |
+
'enable_text' => esc_html__('Enable', 'woo-discount-rules'),
|
754 |
+
'disable_text' => esc_html__('Disable', 'woo-discount-rules'),
|
755 |
+
'are_you_sure_to_remove' => esc_html__('Are you sure to remove ?', 'woo-discount-rules'),
|
756 |
+
'type_text' => esc_html__('Type', 'woo-discount-rules'),
|
757 |
+
'cart_subtotal' => esc_html__('Cart Subtotal', 'woo-discount-rules'),
|
758 |
+
'subtotal_at_least' => esc_html__('Subtotal at least', 'woo-discount-rules'),
|
759 |
+
'subtotal_less_than' => esc_html__('Subtotal less than', 'woo-discount-rules'),
|
760 |
+
'cart_item_count' => esc_html__('Cart Item Count', 'woo-discount-rules'),
|
761 |
+
'number_of_line_items_in_cart_at_least' => esc_html__('Number of line items in the cart (not quantity) at least', 'woo-discount-rules'),
|
762 |
+
'number_of_line_items_in_cart_less_than' => esc_html__('Number of line items in the cart (not quantity) less than', 'woo-discount-rules'),
|
763 |
+
'quantity_sum' => esc_html__('Quantity Sum', 'woo-discount-rules'),
|
764 |
+
'total_number_of_quantities_in_cart_at_least' => esc_html__('Total number of quantities in the cart at least', 'woo-discount-rules'),
|
765 |
+
'total_number_of_quantities_in_cart_less_than' => esc_html__('Total number of quantities in the cart less than', 'woo-discount-rules'),
|
766 |
+
'categories_in_cart' => esc_html__('Categories in cart', 'woo-discount-rules'),
|
767 |
+
'customer_details_must_be_logged_in' => esc_html__('Customer Details (must be logged in)', 'woo-discount-rules'),
|
768 |
+
'user_in_list' => esc_html__('User in list', 'woo-discount-rules'),
|
769 |
+
'user_role_in_list' => esc_html__('User role in list', 'woo-discount-rules'),
|
770 |
+
'shipping_country_list' => esc_html__('Shipping country in list', 'woo-discount-rules'),
|
771 |
+
'customer_email' => esc_html__('Customer Email', 'woo-discount-rules'),
|
772 |
+
'customer_email_tld' => esc_html__('Email with TLD (Ege: edu)', 'woo-discount-rules'),
|
773 |
+
'customer_email_domain' => esc_html__('Email with Domain (Eg: gmail.com)', 'woo-discount-rules'),
|
774 |
+
'customer_billing_details' => esc_html__('Customer Billing Details', 'woo-discount-rules'),
|
775 |
+
'customer_billing_city' => esc_html__('Billing city', 'woo-discount-rules'),
|
776 |
+
'customer_shipping_details' => esc_html__('Customer Shipping Details', 'woo-discount-rules'),
|
777 |
+
'customer_shipping_state' => esc_html__('Shipping state', 'woo-discount-rules'),
|
778 |
+
'purchase_history' => esc_html__('Purchase History', 'woo-discount-rules'),
|
779 |
+
'purchased_amount' => esc_html__('Purchased amount', 'woo-discount-rules'),
|
780 |
+
'number_of_order_purchased' => esc_html__('Number of order purchased', 'woo-discount-rules'),
|
781 |
+
'number_of_order_purchased_in_product' => esc_html__('Number of order purchased in products', 'woo-discount-rules'),
|
782 |
+
'coupon_applied' => esc_html__('Coupon applied', 'woo-discount-rules'),
|
783 |
+
'atleast_any_one' => esc_html__('Atleast any one', 'woo-discount-rules'),
|
784 |
+
'greater_than_or_equal_to' => esc_html__('Greater than or equal to', 'woo-discount-rules'),
|
785 |
+
'less_than_or_equal_to' => esc_html__('Less than or equal to', 'woo-discount-rules'),
|
786 |
+
'in_order_status' => esc_html__('In Order status', 'woo-discount-rules'),
|
787 |
+
'action_text' => esc_html__('Action', 'woo-discount-rules'),
|
788 |
+
'save_text' => esc_html__('Save', 'woo-discount-rules'),
|
789 |
+
'saved_successfully' => esc_html__('Saved Successfully!', 'woo-discount-rules'),
|
790 |
+
'none_selected' => esc_html__('None selected', 'woo-discount-rules'),
|
791 |
+
);
|
792 |
+
}
|
793 |
}
|
794 |
}
|
includes/pricing-rules.php
CHANGED
@@ -49,6 +49,11 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
49 |
*/
|
50 |
public $apply_to;
|
51 |
|
|
|
|
|
|
|
|
|
|
|
52 |
/**
|
53 |
* @var string
|
54 |
*/
|
@@ -354,7 +359,13 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
354 |
$discount_log = array(
|
355 |
'line_discount' => $this->matched_sets,
|
356 |
);
|
357 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
|
360 |
/**
|
@@ -629,12 +640,21 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
629 |
$this->generateRuleSets($woocommerce);
|
630 |
// Sort cart by price ascending
|
631 |
|
632 |
-
$cart_contents =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
633 |
|
634 |
$this->matched_sets = array();
|
635 |
-
|
636 |
-
|
637 |
-
|
|
|
638 |
|
639 |
$this->makeLog();
|
640 |
}
|
@@ -1689,11 +1709,19 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
1689 |
if (!isset($product['product_id'])) return false;
|
1690 |
$product_category = FlycartWooDiscountRulesGeneralHelper::getCategoryByPost($product);
|
1691 |
$status = false;
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1697 |
}
|
1698 |
|
1699 |
return $status;
|
@@ -2078,7 +2106,13 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2078 |
}
|
2079 |
|
2080 |
if ($status) {
|
2081 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
2082 |
}
|
2083 |
} else if(isset($rule->rule_method) && $rule->rule_method == 'product_based'){
|
2084 |
$product_based_conditions = json_decode((isset($rule->product_based_condition) ? $rule->product_based_condition : '{}'), true);
|
@@ -2747,7 +2781,8 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2747 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_price_discount_on_product_page']))? $this->baseConfig['show_price_discount_on_product_page']: 'dont';
|
2748 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
2749 |
$discountPrice = $this->getDiscountPriceForTheProduct($product, FlycartWoocommerceProduct::get_price($variations));
|
2750 |
-
|
|
|
2751 |
$price_to_display = FlycartWoocommerceProduct::wc_price($discountPrice);
|
2752 |
$item_price = preg_replace('/<del>.*<\/del>/', '', $item_price);
|
2753 |
$item_price = '<del>' . $item_price . '</del> <ins>' . ($price_to_display).$product->get_price_suffix() . '</ins>';
|
@@ -2767,7 +2802,8 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2767 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_price_discount_on_product_page']))? $this->baseConfig['show_price_discount_on_product_page']: 'dont';
|
2768 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
2769 |
$discountPrice = $this->getDiscountPriceForTheProduct($product);
|
2770 |
-
|
|
|
2771 |
$price_to_display = FlycartWoocommerceProduct::wc_price($discountPrice);
|
2772 |
$show_original = 0;
|
2773 |
if(FlycartWoocommerceVersion::wcVersion('3.0'))
|
@@ -2810,7 +2846,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2810 |
if($maxProductId){
|
2811 |
$maxProduct = FlycartWoocommerceProduct::wc_get_product($maxProductId);
|
2812 |
$greatestDiscountPrice = $this->getDiscountPriceForTheProduct($maxProduct);
|
2813 |
-
if($greatestDiscountPrice > 0){
|
2814 |
$greatestDiscountPrice = FlycartWoocommerceProduct::wc_price($greatestDiscountPrice);
|
2815 |
} else {
|
2816 |
$greatestDiscountPrice = FlycartWoocommerceProduct::wc_price(FlycartWoocommerceProduct::get_price($maxProduct));
|
@@ -2818,7 +2854,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2818 |
if($minProductId){
|
2819 |
$minProduct = FlycartWoocommerceProduct::wc_get_product($minProductId);
|
2820 |
$leastDiscountPrice = $this->getDiscountPriceForTheProduct($minProduct);
|
2821 |
-
if($leastDiscountPrice > 0){
|
2822 |
$leastDiscountPrice = FlycartWoocommerceProduct::wc_price($leastDiscountPrice);
|
2823 |
} else {
|
2824 |
$leastDiscountPrice = FlycartWoocommerceProduct::wc_price(FlycartWoocommerceProduct::get_price($minProduct));
|
@@ -2839,7 +2875,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2839 |
if(isset($child_products[0])){
|
2840 |
$product_new = FlycartWoocommerceProduct::wc_get_product($child_products[0]);
|
2841 |
$discountPrice = $this->getDiscountPriceForTheProduct($product_new);
|
2842 |
-
if($discountPrice <= 0){
|
2843 |
$show_original = 1;
|
2844 |
}
|
2845 |
}
|
@@ -2860,7 +2896,14 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2860 |
$discountPrice = $this->getDiscountPriceForTheProduct($product);
|
2861 |
if($discountPrice > 0){
|
2862 |
$on_sale = true;
|
|
|
|
|
|
|
|
|
|
|
2863 |
}
|
|
|
|
|
2864 |
if(!$on_sale){
|
2865 |
if($product->is_type(array('variable', 'subscription_variation', 'variable-subscription'))){
|
2866 |
$children = array_filter( array_map( 'wc_get_product', FlycartWoocommerceProduct::get_children($product) ), 'wc_products_array_filter_visible_grouped' );
|
@@ -2870,6 +2913,12 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2870 |
if($discountPrice > 0){
|
2871 |
$on_sale = true;
|
2872 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
2873 |
}
|
2874 |
}
|
2875 |
}
|
@@ -2879,6 +2928,18 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2879 |
return $on_sale;
|
2880 |
}
|
2881 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2882 |
/**
|
2883 |
* Display Product sale tag on the product page
|
2884 |
* */
|
@@ -2956,10 +3017,10 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2956 |
{
|
2957 |
// All Sets are Collected properly, just process with that.
|
2958 |
if (!isset($cart_item)) return false;
|
2959 |
-
|
2960 |
// If Product having the rule sets then,
|
2961 |
if (!isset($this->matched_sets[$cart_item_key])) return false;
|
2962 |
|
|
|
2963 |
$adjustment_set = $this->matched_sets[$cart_item_key];
|
2964 |
if(!($price > 0)){
|
2965 |
$price = get_option('woocommerce_tax_display_shop') == 'excl' ? FlycartWoocommerceProduct::get_price_excluding_tax($cart_item) : FlycartWoocommerceProduct::get_price_including_tax($cart_item);
|
@@ -2970,6 +3031,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
2970 |
if(!empty($children) && is_array($children)){
|
2971 |
if(isset($children[0])){
|
2972 |
$product = FlycartWoocommerceProduct::wc_get_product($children[0]);
|
|
|
2973 |
$price = get_option('woocommerce_tax_display_shop') == 'excl' ? FlycartWoocommerceProduct::get_price_excluding_tax($product) : FlycartWoocommerceProduct::get_price_including_tax($product);
|
2974 |
}
|
2975 |
}
|
@@ -3001,6 +3063,7 @@ if (!class_exists('FlycartWooDiscountRulesPricingRules')) {
|
|
3001 |
}
|
3002 |
}
|
3003 |
if($discount > 0){
|
|
|
3004 |
$amount = $price - $discount;
|
3005 |
}
|
3006 |
|
49 |
*/
|
50 |
public $apply_to;
|
51 |
|
52 |
+
/**
|
53 |
+
* @var
|
54 |
+
*/
|
55 |
+
public $products_has_discount = array();
|
56 |
+
|
57 |
/**
|
58 |
* @var string
|
59 |
*/
|
359 |
$discount_log = array(
|
360 |
'line_discount' => $this->matched_sets,
|
361 |
);
|
362 |
+
if(function_exists('WC')){
|
363 |
+
if(!empty(WC()->session)){
|
364 |
+
if(method_exists(WC()->session, 'set')){
|
365 |
+
WC()->session->set('woo_price_discount', json_encode($discount_log));
|
366 |
+
}
|
367 |
+
}
|
368 |
+
}
|
369 |
}
|
370 |
|
371 |
/**
|
640 |
$this->generateRuleSets($woocommerce);
|
641 |
// Sort cart by price ascending
|
642 |
|
643 |
+
$cart_contents = array();
|
644 |
+
if(!empty($woocommerce)){
|
645 |
+
if(!empty($woocommerce->cart)){
|
646 |
+
if(!empty($woocommerce->cart->cart_contents)){
|
647 |
+
$cart_contents = $this->sortCartPrice($woocommerce->cart->cart_contents, 'asc');
|
648 |
+
}
|
649 |
+
}
|
650 |
+
}
|
651 |
+
|
652 |
|
653 |
$this->matched_sets = array();
|
654 |
+
if(!empty($cart_contents))
|
655 |
+
foreach ($cart_contents as $index => $item) {
|
656 |
+
$this->matchRules($index, $item, $product_page);
|
657 |
+
}
|
658 |
|
659 |
$this->makeLog();
|
660 |
}
|
1709 |
if (!isset($product['product_id'])) return false;
|
1710 |
$product_category = FlycartWooDiscountRulesGeneralHelper::getCategoryByPost($product);
|
1711 |
$status = false;
|
1712 |
+
if(!empty($category_list) && !empty($product_category)){
|
1713 |
+
//check any one of category matches
|
1714 |
+
if(is_array($category_list))
|
1715 |
+
$matching_cats = array_intersect($product_category, $category_list);
|
1716 |
+
else if(is_string($category_list))
|
1717 |
+
$matching_cats = in_array($category_list, $product_category)? array($category_list): array();
|
1718 |
+
else
|
1719 |
+
$matching_cats = array();
|
1720 |
+
|
1721 |
+
$result = !empty( $matching_cats );
|
1722 |
+
if($result){
|
1723 |
+
$status = true;
|
1724 |
+
}
|
1725 |
}
|
1726 |
|
1727 |
return $status;
|
2106 |
}
|
2107 |
|
2108 |
if ($status) {
|
2109 |
+
$discount_range_data = (isset($rule->discount_range) ? json_decode($rule->discount_range) : array());
|
2110 |
+
if(!empty($discount_range_data)){
|
2111 |
+
foreach ($discount_range_data as $discount_range_each){
|
2112 |
+
if(isset($discount_range_each->title)) $discount_range_each->title = $rule->rule_name;
|
2113 |
+
}
|
2114 |
+
}
|
2115 |
+
$discount_range[] = $discount_range_data;//(isset($rule->discount_range) ? json_decode($rule->discount_range) : array());
|
2116 |
}
|
2117 |
} else if(isset($rule->rule_method) && $rule->rule_method == 'product_based'){
|
2118 |
$product_based_conditions = json_decode((isset($rule->product_based_condition) ? $rule->product_based_condition : '{}'), true);
|
2781 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_price_discount_on_product_page']))? $this->baseConfig['show_price_discount_on_product_page']: 'dont';
|
2782 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
2783 |
$discountPrice = $this->getDiscountPriceForTheProduct($product, FlycartWoocommerceProduct::get_price($variations));
|
2784 |
+
$product_id = FlycartWoocommerceProduct::get_id($variations);
|
2785 |
+
if($discountPrice > 0 || ($this->hasDiscountForProductId($product_id))){
|
2786 |
$price_to_display = FlycartWoocommerceProduct::wc_price($discountPrice);
|
2787 |
$item_price = preg_replace('/<del>.*<\/del>/', '', $item_price);
|
2788 |
$item_price = '<del>' . $item_price . '</del> <ins>' . ($price_to_display).$product->get_price_suffix() . '</ins>';
|
2802 |
$show_price_discount_on_product_page = (isset($this->baseConfig['show_price_discount_on_product_page']))? $this->baseConfig['show_price_discount_on_product_page']: 'dont';
|
2803 |
if($show_price_discount_on_product_page == 'show' && $notAdmin){
|
2804 |
$discountPrice = $this->getDiscountPriceForTheProduct($product);
|
2805 |
+
$product_id = FlycartWoocommerceProduct::get_id($product);
|
2806 |
+
if($discountPrice > 0 || ($this->hasDiscountForProductId($product_id))){
|
2807 |
$price_to_display = FlycartWoocommerceProduct::wc_price($discountPrice);
|
2808 |
$show_original = 0;
|
2809 |
if(FlycartWoocommerceVersion::wcVersion('3.0'))
|
2846 |
if($maxProductId){
|
2847 |
$maxProduct = FlycartWoocommerceProduct::wc_get_product($maxProductId);
|
2848 |
$greatestDiscountPrice = $this->getDiscountPriceForTheProduct($maxProduct);
|
2849 |
+
if($greatestDiscountPrice > 0 || ($this->hasDiscountForProductId($maxProductId))){
|
2850 |
$greatestDiscountPrice = FlycartWoocommerceProduct::wc_price($greatestDiscountPrice);
|
2851 |
} else {
|
2852 |
$greatestDiscountPrice = FlycartWoocommerceProduct::wc_price(FlycartWoocommerceProduct::get_price($maxProduct));
|
2854 |
if($minProductId){
|
2855 |
$minProduct = FlycartWoocommerceProduct::wc_get_product($minProductId);
|
2856 |
$leastDiscountPrice = $this->getDiscountPriceForTheProduct($minProduct);
|
2857 |
+
if($leastDiscountPrice > 0 || ($this->hasDiscountForProductId($minProductId))){
|
2858 |
$leastDiscountPrice = FlycartWoocommerceProduct::wc_price($leastDiscountPrice);
|
2859 |
} else {
|
2860 |
$leastDiscountPrice = FlycartWoocommerceProduct::wc_price(FlycartWoocommerceProduct::get_price($minProduct));
|
2875 |
if(isset($child_products[0])){
|
2876 |
$product_new = FlycartWoocommerceProduct::wc_get_product($child_products[0]);
|
2877 |
$discountPrice = $this->getDiscountPriceForTheProduct($product_new);
|
2878 |
+
if($discountPrice <= 0 || !($this->hasDiscountForProductId($child_products[0]))){
|
2879 |
$show_original = 1;
|
2880 |
}
|
2881 |
}
|
2896 |
$discountPrice = $this->getDiscountPriceForTheProduct($product);
|
2897 |
if($discountPrice > 0){
|
2898 |
$on_sale = true;
|
2899 |
+
} else {
|
2900 |
+
$product_id = FlycartWoocommerceProduct::get_id($product);
|
2901 |
+
if($this->hasDiscountForProductId($product_id)){
|
2902 |
+
$on_sale = true;
|
2903 |
+
}
|
2904 |
}
|
2905 |
+
|
2906 |
+
|
2907 |
if(!$on_sale){
|
2908 |
if($product->is_type(array('variable', 'subscription_variation', 'variable-subscription'))){
|
2909 |
$children = array_filter( array_map( 'wc_get_product', FlycartWoocommerceProduct::get_children($product) ), 'wc_products_array_filter_visible_grouped' );
|
2913 |
if($discountPrice > 0){
|
2914 |
$on_sale = true;
|
2915 |
break;
|
2916 |
+
} else {
|
2917 |
+
$product_id = FlycartWoocommerceProduct::get_id($child);
|
2918 |
+
if($this->hasDiscountForProductId($product_id)){
|
2919 |
+
$on_sale = true;
|
2920 |
+
break;
|
2921 |
+
}
|
2922 |
}
|
2923 |
}
|
2924 |
}
|
2928 |
return $on_sale;
|
2929 |
}
|
2930 |
|
2931 |
+
/**
|
2932 |
+
* Has discount for the product Id
|
2933 |
+
* */
|
2934 |
+
protected function hasDiscountForProductId($product_id){
|
2935 |
+
$has_discount = false;
|
2936 |
+
if(isset($this->products_has_discount[$product_id]) && $this->products_has_discount[$product_id] == 1){
|
2937 |
+
$has_discount = true;
|
2938 |
+
}
|
2939 |
+
|
2940 |
+
return $has_discount;
|
2941 |
+
}
|
2942 |
+
|
2943 |
/**
|
2944 |
* Display Product sale tag on the product page
|
2945 |
* */
|
3017 |
{
|
3018 |
// All Sets are Collected properly, just process with that.
|
3019 |
if (!isset($cart_item)) return false;
|
|
|
3020 |
// If Product having the rule sets then,
|
3021 |
if (!isset($this->matched_sets[$cart_item_key])) return false;
|
3022 |
|
3023 |
+
$product_id = FlycartWoocommerceProduct::get_id($cart_item);
|
3024 |
$adjustment_set = $this->matched_sets[$cart_item_key];
|
3025 |
if(!($price > 0)){
|
3026 |
$price = get_option('woocommerce_tax_display_shop') == 'excl' ? FlycartWoocommerceProduct::get_price_excluding_tax($cart_item) : FlycartWoocommerceProduct::get_price_including_tax($cart_item);
|
3031 |
if(!empty($children) && is_array($children)){
|
3032 |
if(isset($children[0])){
|
3033 |
$product = FlycartWoocommerceProduct::wc_get_product($children[0]);
|
3034 |
+
$product_id = FlycartWoocommerceProduct::get_id($product);
|
3035 |
$price = get_option('woocommerce_tax_display_shop') == 'excl' ? FlycartWoocommerceProduct::get_price_excluding_tax($product) : FlycartWoocommerceProduct::get_price_including_tax($product);
|
3036 |
}
|
3037 |
}
|
3063 |
}
|
3064 |
}
|
3065 |
if($discount > 0){
|
3066 |
+
$this->products_has_discount[$product_id] = 1;
|
3067 |
$amount = $price - $discount;
|
3068 |
}
|
3069 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://flycart.org/
|
|
4 |
Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts, pricing deals
|
5 |
Requires at least: 4.4.1
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -308,6 +308,11 @@ Discount - Enter minimum & Maximum quantity -> Adjustment Type -> Product Discou
|
|
308 |
|
309 |
== Changelog ==
|
310 |
|
|
|
|
|
|
|
|
|
|
|
311 |
= 1.6.5 - 12/06/18 =
|
312 |
* Removed the improvement - Display sale tag, if any rule available for that product
|
313 |
|
4 |
Tags: woocommerce, discounts, dynamic pricing, Buy One Get One Free, pricing deals, price rules, bulk discounts, advanced discounts, pricing deals
|
5 |
Requires at least: 4.4.1
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.6.6
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
308 |
|
309 |
== Changelog ==
|
310 |
|
311 |
+
= 1.6.6 - 27/06/18 =
|
312 |
+
* Fix - Warning while ajax request in admin
|
313 |
+
* Improvement - Localisation improvement
|
314 |
+
* Improvement - Display sale tag and strike-out even if they have 100% discount
|
315 |
+
|
316 |
= 1.6.5 - 12/06/18 =
|
317 |
* Removed the improvement - Display sale tag, if any rule available for that product
|
318 |
|
view/cart-rules.php
CHANGED
@@ -49,7 +49,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
49 |
|
50 |
</div>
|
51 |
<div class="col-md-12">
|
52 |
-
<code><?php esc_html_e(
|
53 |
</div>
|
54 |
</div>
|
55 |
<br>
|
49 |
|
50 |
</div>
|
51 |
<div class="col-md-12">
|
52 |
+
<code><?php esc_html_e("NOTE: Order Should not be empty ('-').If it's empty('-'), then it won't be implemented.", 'woo-discount-rules'); ?></code>
|
53 |
</div>
|
54 |
</div>
|
55 |
<br>
|
view/includes/cart-menu.php
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
<?php
|
3 |
$proText = $purchase->getProText();
|
4 |
?>
|
5 |
-
<i><h2
|
6 |
<hr>
|
7 |
<h3 class="nav-tab-wrapper">
|
8 |
<a class="nav-tab" href=javascript:void(0) id="cart_general_tab">
|
9 |
-
<i class="fa fa-tags" style="font-size: 0.8em;"></i>  
|
10 |
<a class="nav-tab" href=javascript:void(0) id="cart_restriction_tab">
|
11 |
-
<i class="fa fa-shopping-cart" style="font-size: 0.8em;"></i>  
|
12 |
<a class="nav-tab" href=javascript:void(0) id="cart_discount_tab" >
|
13 |
-
<i class="fa fa-cogs" style="font-size: 0.8em;"></i>  
|
14 |
</h3>
|
2 |
<?php
|
3 |
$proText = $purchase->getProText();
|
4 |
?>
|
5 |
+
<i><h2><?php esc_html_e('Woo Discount Rules', 'woo-discount-rules'); ?> <?php echo $proText; ?> <span class="woo-discount-version">v<?php echo WOO_DISCOUNT_VERSION; ?></span></h2></i>
|
6 |
<hr>
|
7 |
<h3 class="nav-tab-wrapper">
|
8 |
<a class="nav-tab" href=javascript:void(0) id="cart_general_tab">
|
9 |
+
<i class="fa fa-tags" style="font-size: 0.8em;"></i> <?php esc_html_e('General', 'woo-discount-rules'); ?> </a>
|
10 |
<a class="nav-tab" href=javascript:void(0) id="cart_restriction_tab">
|
11 |
+
<i class="fa fa-shopping-cart" style="font-size: 0.8em;"></i> <?php esc_html_e('Conditions', 'woo-discount-rules'); ?> </a>
|
12 |
<a class="nav-tab" href=javascript:void(0) id="cart_discount_tab" >
|
13 |
+
<i class="fa fa-cogs" style="font-size: 0.8em;"></i> <?php esc_html_e('Discount', 'woo-discount-rules'); ?> </a>
|
14 |
</h3>
|
view/includes/menu.php
CHANGED
@@ -2,12 +2,12 @@
|
|
2 |
<?php
|
3 |
$proText = $purchase->getProText();
|
4 |
?>
|
5 |
-
<i><h2
|
6 |
<h3 class="nav-tab-wrapper">
|
7 |
<a class="nav-tab <?php if ($active == 'pricing-rules') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&tab=pricing-rules">
|
8 |
-
<i class="fa fa-tags" style="font-size: 0.8em;"></i>  
|
9 |
<a class="nav-tab <?php if ($active == 'cart-rules') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&tab=cart-rules">
|
10 |
-
<i class="fa fa-shopping-cart" style="font-size: 0.8em;"></i>  
|
11 |
<a class="nav-tab <?php if ($active == 'settings') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&tab=settings">
|
12 |
-
<i class="fa fa-cogs" style="font-size: 0.8em;"></i>  
|
13 |
</h3>
|
2 |
<?php
|
3 |
$proText = $purchase->getProText();
|
4 |
?>
|
5 |
+
<i><h2><?php esc_html_e('Woo Discount Rules', 'woo-discount-rules'); ?> <?php echo $proText; ?> <span class="woo-discount-version">v<?php echo WOO_DISCOUNT_VERSION; ?></span></h2></i><hr>
|
6 |
<h3 class="nav-tab-wrapper">
|
7 |
<a class="nav-tab <?php if ($active == 'pricing-rules') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&tab=pricing-rules">
|
8 |
+
<i class="fa fa-tags" style="font-size: 0.8em;"></i> <?php esc_html_e('Price Discount Rules', 'woo-discount-rules'); ?> </a>
|
9 |
<a class="nav-tab <?php if ($active == 'cart-rules') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&tab=cart-rules">
|
10 |
+
<i class="fa fa-shopping-cart" style="font-size: 0.8em;"></i> <?php esc_html_e('Cart Discount Rules', 'woo-discount-rules'); ?> </a>
|
11 |
<a class="nav-tab <?php if ($active == 'settings') { echo 'nav-tab-active'; } ?>" href="?page=woo_discount_rules&tab=settings">
|
12 |
+
<i class="fa fa-cogs" style="font-size: 0.8em;"></i> <?php esc_html_e('Settings', 'woo-discount-rules'); ?> </a>
|
13 |
</h3>
|
view/pricing-rules.php
CHANGED
@@ -78,7 +78,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
78 |
?>
|
79 |
</div>
|
80 |
<div class="col-md-12">
|
81 |
-
<code><?php esc_html_e(
|
82 |
</div>
|
83 |
</div>
|
84 |
<br>
|
78 |
?>
|
79 |
</div>
|
80 |
<div class="col-md-12">
|
81 |
+
<code><?php esc_html_e("NOTE: Order Should not be empty ('-').If it's empty('-'), then it won't be implemented.", 'woo-discount-rules'); ?></code>
|
82 |
</div>
|
83 |
</div>
|
84 |
<br>
|
view/settings.php
CHANGED
@@ -16,7 +16,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
16 |
<div class="<?php echo $isPro? 'col-md-12': 'col-md-8'; ?>">
|
17 |
<form method="post" id="discount_config">
|
18 |
<div class="col-md-12" align="right">
|
19 |
-
<input type="submit" id="saveConfig" value="Save" class="btn btn-success">
|
20 |
</div>
|
21 |
<div class="">
|
22 |
<div class="">
|
@@ -33,8 +33,8 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
33 |
<div class="col-md-6">
|
34 |
<input type="text" class="" name="license_key" id="woo-disc-license-key"
|
35 |
value="<?php if (isset($data['license_key'])) echo $data['license_key']; ?>"
|
36 |
-
placeholder="Your Unique License Key">
|
37 |
-
<input type="button" id="woo-disc-license-check" value="Validate Key" class="button button-info">
|
38 |
<?php
|
39 |
$verifiedLicense = get_option('woo_discount_rules_verified_key', 0);
|
40 |
if (isset($data['license_key']) && $data['license_key'] != '') {
|
@@ -133,7 +133,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
133 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
134 |
</option>
|
135 |
<option <?php if ($data['show_price_discount_on_product_page'] == 'dont') { ?> selected=selected <?php } ?>
|
136 |
-
value="dont"><?php esc_html_e(
|
137 |
</option>
|
138 |
</select>
|
139 |
<div class="notice notice-info"><p><?php esc_html_e('It displays only if any rule matches', 'woo-discount-rules'); ?></p></div>
|
@@ -152,7 +152,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
152 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
153 |
</option>
|
154 |
<option <?php if ($data['show_sale_tag_on_product_page'] == 'dont') { ?> selected=selected <?php } ?>
|
155 |
-
value="dont"><?php esc_html_e(
|
156 |
</option>
|
157 |
</select>
|
158 |
<div class="notice notice-info"><p><?php esc_html_e('It displays only if any rule matches', 'woo-discount-rules'); ?></p></div>
|
@@ -171,7 +171,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
171 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
172 |
</option>
|
173 |
<option <?php if ($data['show_discount_table'] == 'dont') { ?> selected=selected <?php } ?>
|
174 |
-
value="dont"><?php esc_html_e(
|
175 |
</option>
|
176 |
</select>
|
177 |
</div>
|
@@ -189,7 +189,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
189 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
190 |
</option>
|
191 |
<option <?php if ($data['show_discount_title_table'] == 'dont') { ?> selected=selected <?php } ?>
|
192 |
-
value="dont"><?php esc_html_e(
|
193 |
</option>
|
194 |
</select>
|
195 |
</div>
|
16 |
<div class="<?php echo $isPro? 'col-md-12': 'col-md-8'; ?>">
|
17 |
<form method="post" id="discount_config">
|
18 |
<div class="col-md-12" align="right">
|
19 |
+
<input type="submit" id="saveConfig" value="<?php esc_html_e('Save', 'woo-discount-rules'); ?>" class="btn btn-success">
|
20 |
</div>
|
21 |
<div class="">
|
22 |
<div class="">
|
33 |
<div class="col-md-6">
|
34 |
<input type="text" class="" name="license_key" id="woo-disc-license-key"
|
35 |
value="<?php if (isset($data['license_key'])) echo $data['license_key']; ?>"
|
36 |
+
placeholder="<?php esc_attr_e('Your Unique License Key', 'woo-discount-rules'); ?>">
|
37 |
+
<input type="button" id="woo-disc-license-check" value="<?php esc_attr_e('Validate Key', 'woo-discount-rules'); ?>" class="button button-info">
|
38 |
<?php
|
39 |
$verifiedLicense = get_option('woo_discount_rules_verified_key', 0);
|
40 |
if (isset($data['license_key']) && $data['license_key'] != '') {
|
133 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
134 |
</option>
|
135 |
<option <?php if ($data['show_price_discount_on_product_page'] == 'dont') { ?> selected=selected <?php } ?>
|
136 |
+
value="dont"><?php esc_html_e("Don't Show", 'woo-discount-rules'); ?>
|
137 |
</option>
|
138 |
</select>
|
139 |
<div class="notice notice-info"><p><?php esc_html_e('It displays only if any rule matches', 'woo-discount-rules'); ?></p></div>
|
152 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
153 |
</option>
|
154 |
<option <?php if ($data['show_sale_tag_on_product_page'] == 'dont') { ?> selected=selected <?php } ?>
|
155 |
+
value="dont"><?php esc_html_e("Don't Show", 'woo-discount-rules'); ?>
|
156 |
</option>
|
157 |
</select>
|
158 |
<div class="notice notice-info"><p><?php esc_html_e('It displays only if any rule matches', 'woo-discount-rules'); ?></p></div>
|
171 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
172 |
</option>
|
173 |
<option <?php if ($data['show_discount_table'] == 'dont') { ?> selected=selected <?php } ?>
|
174 |
+
value="dont"><?php esc_html_e("Don't Show", 'woo-discount-rules'); ?>
|
175 |
</option>
|
176 |
</select>
|
177 |
</div>
|
189 |
value="show"><?php esc_html_e('Show', 'woo-discount-rules'); ?>
|
190 |
</option>
|
191 |
<option <?php if ($data['show_discount_title_table'] == 'dont') { ?> selected=selected <?php } ?>
|
192 |
+
value="dont"><?php esc_html_e("Don't Show", 'woo-discount-rules'); ?>
|
193 |
</option>
|
194 |
</select>
|
195 |
</div>
|
view/template/sidebar.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<div class="col-md-12">
|
10 |
<div id="" align="right">
|
11 |
<div class="woo-side-button" class="hide-on-click">
|
12 |
-
<span id="sidebar_text"
|
13 |
<span id="sidebar_icon" class="dashicons dashicons-arrow-left"></span>
|
14 |
</div>
|
15 |
</div>
|
9 |
<div class="col-md-12">
|
10 |
<div id="" align="right">
|
11 |
<div class="woo-side-button" class="hide-on-click">
|
12 |
+
<span id="sidebar_text"><?php esc_html_e('Hide', 'woo-discount-rules'); ?></span>
|
13 |
<span id="sidebar_icon" class="dashicons dashicons-arrow-left"></span>
|
14 |
</div>
|
15 |
</div>
|
view/view-cart-rules.php
CHANGED
@@ -41,13 +41,15 @@ if (empty($discount_rules)) {
|
|
41 |
$type = 'subtotal_least';
|
42 |
}
|
43 |
$isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
|
|
|
44 |
?>
|
45 |
<div class="container-fluid woo_discount_loader_outer">
|
46 |
<form id="form_cart_rule">
|
47 |
<div class="row-fluid">
|
48 |
<div class="<?php echo $isPro? 'col-md-12': 'col-md-9'; ?>">
|
49 |
<div class="col-md-12 rule_buttons_con" align="right">
|
50 |
-
<input type="submit" id="saveCartRule" value="Save Rule" class="btn btn-primary">
|
51 |
<a href="?page=woo_discount_rules&tab=cart-rules" class="btn btn-warning"><?php esc_html_e('Close', 'woo-discount-rules'); ?></a>
|
52 |
</div>
|
53 |
<?php if ($rule_id == 0) { ?>
|
@@ -62,13 +64,13 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
62 |
<div class="row">
|
63 |
<div class="col-md-3"><label><?php esc_html_e('Order :', 'woo-discount-rules') ?> <i
|
64 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
65 |
-
title="The Simple Ranking concept to said, which one is going to execute first and so on."></i></label>
|
66 |
</div>
|
67 |
<div class="col-md-6"><input type="number" class="rule_order"
|
68 |
id="rule_order"
|
69 |
name="rule_order"
|
70 |
value="<?php echo(isset($data->rule_order) ? $data->rule_order : ''); ?>"
|
71 |
-
placeholder="ex. 1">
|
72 |
<code><?php esc_html_e('WARNING: More than one rule should not have same priority.', 'woo-discount-rules'); ?> </code>
|
73 |
</div>
|
74 |
</div>
|
@@ -77,19 +79,19 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
77 |
<div class="row">
|
78 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Name', 'woo-discount-rules'); ?> <i
|
79 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
80 |
-
title="Rule
|
81 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
82 |
id="rule_name"
|
83 |
name="rule_name"
|
84 |
value="<?php echo(isset($data->rule_name) ? $data->rule_name : ''); ?>"
|
85 |
-
placeholder="ex. Standard Rule."></div>
|
86 |
</div>
|
87 |
</div>
|
88 |
<div class="form-group">
|
89 |
<div class="row">
|
90 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Description', 'woo-discount-rules'); ?> <i
|
91 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
92 |
-
title="Rule
|
93 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
94 |
name="rule_descr"
|
95 |
value="<?php echo(isset($data->rule_descr) ? $data->rule_descr : ''); ?>"
|
@@ -372,6 +374,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
372 |
<select class="category_list selectpicker"
|
373 |
id="cart_category_list_<?php echo $i; ?>"
|
374 |
multiple
|
|
|
375 |
name="discount_rule[<?php echo $i; ?>][category_to_apply][]">
|
376 |
<?php foreach ($category as $index => $cat) { ?>
|
377 |
<option
|
@@ -390,6 +393,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
390 |
<div id="roles_div_<?php echo $i; ?>" <?php echo $class; ?>>
|
391 |
<select class="roles_list selectpicker"
|
392 |
id="cart_roles_list_<?php echo $i; ?>" multiple
|
|
|
393 |
name="discount_rule[<?php echo $i; ?>][user_roles_to_apply][]">
|
394 |
<?php foreach ($userRoles as $index => $user) { ?>
|
395 |
<option
|
@@ -410,6 +414,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
410 |
data-live-search="true"
|
411 |
id="cart_countries_list_<?php echo $i; ?>"
|
412 |
multiple
|
|
|
413 |
name="discount_rule[<?php echo $i; ?>][countries_to_apply][]">
|
414 |
<?php foreach ($countries as $index => $country) { ?>
|
415 |
<option
|
@@ -458,6 +463,7 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
458 |
data-live-search="true"
|
459 |
id="order_status_list_<?php echo $i; ?>"
|
460 |
multiple
|
|
|
461 |
name="discount_rule[<?php echo $i; ?>][purchase_history_order_status][]">
|
462 |
<?php foreach ($woocommerce_order_status as $index => $woocommerce_order_sts) { ?>
|
463 |
<option
|
@@ -477,6 +483,18 @@ $isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
|
477 |
value="<?php echo(isset($discount_rules[$type]) && !is_array($discount_rules[$type]) ? $discount_rules[$type] : ''); ?>"
|
478 |
name="discount_rule[<?php echo $i; ?>][option_value]">
|
479 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
</label>
|
481 |
</div>
|
482 |
<div class="col-md-1"><label> <?php esc_html_e('Action', 'woo-discount-rules'); ?> </label><br>
|
41 |
$type = 'subtotal_least';
|
42 |
}
|
43 |
$isPro = (new FlycartWooDiscountRulesPurchase())->isPro();
|
44 |
+
$woo_settings = new FlycartWooDiscountBase();
|
45 |
+
$do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not_run_while_have_third_party_coupon', 0);
|
46 |
?>
|
47 |
<div class="container-fluid woo_discount_loader_outer">
|
48 |
<form id="form_cart_rule">
|
49 |
<div class="row-fluid">
|
50 |
<div class="<?php echo $isPro? 'col-md-12': 'col-md-9'; ?>">
|
51 |
<div class="col-md-12 rule_buttons_con" align="right">
|
52 |
+
<input type="submit" id="saveCartRule" value="<?php esc_html_e('Save Rule', 'woo-discount-rules'); ?>" class="btn btn-primary">
|
53 |
<a href="?page=woo_discount_rules&tab=cart-rules" class="btn btn-warning"><?php esc_html_e('Close', 'woo-discount-rules'); ?></a>
|
54 |
</div>
|
55 |
<?php if ($rule_id == 0) { ?>
|
64 |
<div class="row">
|
65 |
<div class="col-md-3"><label><?php esc_html_e('Order :', 'woo-discount-rules') ?> <i
|
66 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
67 |
+
title="<?php esc_attr_e('The Simple Ranking concept to said, which one is going to execute first and so on.', 'woo-discount-rules'); ?>"></i></label>
|
68 |
</div>
|
69 |
<div class="col-md-6"><input type="number" class="rule_order"
|
70 |
id="rule_order"
|
71 |
name="rule_order"
|
72 |
value="<?php echo(isset($data->rule_order) ? $data->rule_order : ''); ?>"
|
73 |
+
placeholder="<?php esc_attr_e('ex. 1', 'woo-discount-rules'); ?>">
|
74 |
<code><?php esc_html_e('WARNING: More than one rule should not have same priority.', 'woo-discount-rules'); ?> </code>
|
75 |
</div>
|
76 |
</div>
|
79 |
<div class="row">
|
80 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Name', 'woo-discount-rules'); ?> <i
|
81 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
82 |
+
title="<?php esc_attr_e('Rule Descriptions.', 'woo-discount-rules'); ?>"></i></label></div>
|
83 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
84 |
id="rule_name"
|
85 |
name="rule_name"
|
86 |
value="<?php echo(isset($data->rule_name) ? $data->rule_name : ''); ?>"
|
87 |
+
placeholder="<?php esc_attr_e('ex. Standard Rule.', 'woo-discount-rules'); ?>"></div>
|
88 |
</div>
|
89 |
</div>
|
90 |
<div class="form-group">
|
91 |
<div class="row">
|
92 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Description', 'woo-discount-rules'); ?> <i
|
93 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
94 |
+
title="<?php esc_attr_e('Rule Descriptions.', 'woo-discount-rules'); ?>"></i></label></div>
|
95 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
96 |
name="rule_descr"
|
97 |
value="<?php echo(isset($data->rule_descr) ? $data->rule_descr : ''); ?>"
|
374 |
<select class="category_list selectpicker"
|
375 |
id="cart_category_list_<?php echo $i; ?>"
|
376 |
multiple
|
377 |
+
title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
378 |
name="discount_rule[<?php echo $i; ?>][category_to_apply][]">
|
379 |
<?php foreach ($category as $index => $cat) { ?>
|
380 |
<option
|
393 |
<div id="roles_div_<?php echo $i; ?>" <?php echo $class; ?>>
|
394 |
<select class="roles_list selectpicker"
|
395 |
id="cart_roles_list_<?php echo $i; ?>" multiple
|
396 |
+
title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
397 |
name="discount_rule[<?php echo $i; ?>][user_roles_to_apply][]">
|
398 |
<?php foreach ($userRoles as $index => $user) { ?>
|
399 |
<option
|
414 |
data-live-search="true"
|
415 |
id="cart_countries_list_<?php echo $i; ?>"
|
416 |
multiple
|
417 |
+
title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
418 |
name="discount_rule[<?php echo $i; ?>][countries_to_apply][]">
|
419 |
<?php foreach ($countries as $index => $country) { ?>
|
420 |
<option
|
463 |
data-live-search="true"
|
464 |
id="order_status_list_<?php echo $i; ?>"
|
465 |
multiple
|
466 |
+
title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
467 |
name="discount_rule[<?php echo $i; ?>][purchase_history_order_status][]">
|
468 |
<?php foreach ($woocommerce_order_status as $index => $woocommerce_order_sts) { ?>
|
469 |
<option
|
483 |
value="<?php echo(isset($discount_rules[$type]) && !is_array($discount_rules[$type]) ? $discount_rules[$type] : ''); ?>"
|
484 |
name="discount_rule[<?php echo $i; ?>][option_value]">
|
485 |
</div>
|
486 |
+
<?php
|
487 |
+
if (in_array($type, array('coupon_applied_any_one', 'coupon_applied_all_selected')))
|
488 |
+
if($do_not_run_while_have_third_party_coupon){
|
489 |
+
?>
|
490 |
+
<div class="notice notice-warning">
|
491 |
+
<p>
|
492 |
+
<?php esc_html_e('To get this condition work,', 'woo-discount-rules'); ?> <a target="_blank" href="?page=woo_discount_rules&tab=settings"><?php esc_html_e('please change the option', 'woo-discount-rules'); ?> <b><?php esc_html_e('Disable the rules while have coupon(Third party)', 'woo-discount-rules'); ?></b> <?php esc_html_e('in cart to', 'woo-discount-rules'); ?> <b><?php esc_html_e('No', 'woo-discount-rules'); ?></b></a>.
|
493 |
+
</p>
|
494 |
+
</div>
|
495 |
+
<?php
|
496 |
+
}
|
497 |
+
?>
|
498 |
</label>
|
499 |
</div>
|
500 |
<div class="col-md-1"><label> <?php esc_html_e('Action', 'woo-discount-rules'); ?> </label><br>
|
view/view-pricing-rules.php
CHANGED
@@ -25,13 +25,15 @@ $attributes = array();
|
|
25 |
if($isPro){
|
26 |
$attributes = FlycartWooDiscountRulesAdvancedHelper::get_all_product_attributes();
|
27 |
}
|
|
|
|
|
28 |
?>
|
29 |
<div class="container-fluid woo_discount_loader_outer">
|
30 |
<form id="form_price_rule">
|
31 |
<div class="row-fluid">
|
32 |
<div class="<?php echo $isPro? 'col-md-12': 'col-md-8'; ?>">
|
33 |
<div class="col-md-12 rule_buttons_con" align="right">
|
34 |
-
<input type="submit" id="savePriceRule" value="Save Rule" class="btn btn-primary">
|
35 |
<a href="?page=woo_discount_rules" class="btn btn-warning"><?php esc_html_e('Close', 'woo-discount-rules'); ?></a>
|
36 |
</div>
|
37 |
<?php if ($rule_id == 0) { ?>
|
@@ -46,14 +48,14 @@ if($isPro){
|
|
46 |
<div class="row">
|
47 |
<div class="col-md-3"><label> <?php esc_html_e('Order :', 'woo-discount-rules'); ?> <i
|
48 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
49 |
-
title="The Simple Ranking concept to said, which one is going to execute first and so on."></i></label>
|
50 |
</div>
|
51 |
<div class="col-md-6"><input type="number" class="rule_order"
|
52 |
id="rule_order"
|
53 |
name="rule_order"
|
54 |
min=1
|
55 |
value="<?php echo(isset($data->rule_order) ? $data->rule_order : '-'); ?>"
|
56 |
-
placeholder="ex. 1">
|
57 |
<code><?php esc_html_e('WARNING: More than one rule should not have same priority.', 'woo-discount-rules'); ?> </code>
|
58 |
</div>
|
59 |
</div>
|
@@ -62,19 +64,19 @@ if($isPro){
|
|
62 |
<div class="row">
|
63 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Name', 'woo-discount-rules'); ?> <i
|
64 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
65 |
-
title="Rule
|
66 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
67 |
id="rule_name"
|
68 |
name="rule_name"
|
69 |
value="<?php echo(isset($data->rule_name) ? $data->rule_name : ''); ?>"
|
70 |
-
placeholder="ex. Standard Rule."></div>
|
71 |
</div>
|
72 |
</div>
|
73 |
<div class="form-group">
|
74 |
<div class="row">
|
75 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Description', 'woo-discount-rules'); ?> <i
|
76 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
77 |
-
title="Rule
|
78 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
79 |
name="rule_descr"
|
80 |
value="<?php echo(isset($data->rule_descr) ? $data->rule_descr : ''); ?>"
|
@@ -85,7 +87,7 @@ if($isPro){
|
|
85 |
<div class="row">
|
86 |
<div class="col-md-3"><label> <?php esc_html_e('Method', 'woo-discount-rules'); ?> <i
|
87 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
88 |
-
title="Method to Apply."></i></label></div>
|
89 |
<?php $opt = (isset($data->rule_method) ? $data->rule_method : ''); ?>
|
90 |
<div class="col-md-6"><select class="form-control"
|
91 |
name="rule_method" id="price_rule_method">
|
@@ -182,7 +184,7 @@ if($isPro){
|
|
182 |
</div>
|
183 |
<div class="form-group" id="category_list">
|
184 |
<?php $category_list = json_decode((isset($data->category_to_apply) ? $data->category_to_apply : '{}'), true); ?>
|
185 |
-
<select class="category_list selectpicker" multiple
|
186 |
name="category_to_apply[]">
|
187 |
<?php foreach ($category as $index => $value) { ?>
|
188 |
<option
|
@@ -198,7 +200,7 @@ if($isPro){
|
|
198 |
</div>
|
199 |
<div class="form-group" id="product_attributes_list">
|
200 |
<?php $attribute_list = json_decode((isset($data->attribute_to_apply) ? $data->attribute_to_apply : '{}'), true); ?>
|
201 |
-
<select class="attribute_list selectpicker" multiple
|
202 |
name="attribute_to_apply[]">
|
203 |
<?php foreach ($attributes as $index => $value) { ?>
|
204 |
<option
|
@@ -293,7 +295,7 @@ if($isPro){
|
|
293 |
<?php
|
294 |
if($pro){
|
295 |
$roles_list = json_decode((isset($data->user_roles_to_apply) ? $data->user_roles_to_apply : '{}'), true); ?>
|
296 |
-
<select class="roles_list selectpicker" id="product_roles_list" multiple name="user_roles_to_apply[]" title="Do not use">
|
297 |
<?php foreach ($userRoles as $index => $user) { ?>
|
298 |
<option value="<?php echo $index; ?>"<?php if (in_array($index, $roles_list)) { ?> selected=selected <?php } ?>><?php echo $user; ?></option>
|
299 |
<?php } ?>
|
@@ -333,6 +335,17 @@ if($isPro){
|
|
333 |
?>
|
334 |
</span>
|
335 |
<input class="form-control coupons_to_apply" id="coupons_to_apply" name="coupons_to_apply" value="<?php echo $coupons_to_apply; ?>"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
336 |
</div>
|
337 |
<?php
|
338 |
} else {
|
@@ -452,7 +465,7 @@ if($isPro){
|
|
452 |
$purchase_history_status_list[] = 'wc-completed';
|
453 |
}
|
454 |
?>
|
455 |
-
<select class="purchase_history_status_list selectpicker" multiple name="purchase_history_status_list[]">
|
456 |
<?php foreach ($woocommerce_order_status as $index => $value) { ?>
|
457 |
<option
|
458 |
value="<?php echo $index; ?>"<?php if (in_array($index, $purchase_history_status_list)) { ?> selected=selected <?php } ?>><?php echo $value; ?></option>
|
@@ -552,14 +565,14 @@ if($isPro){
|
|
552 |
name="discount_range[<?php echo $fieldIndex; ?>][min_qty]"
|
553 |
class="form-control"
|
554 |
value="<?php echo(isset($discount->min_qty) ? $discount->min_qty : ''); ?>"
|
555 |
-
placeholder="ex. 1">
|
556 |
</label>
|
557 |
<label><?php esc_html_e('Max Quantity', 'woo-discount-rules'); ?>
|
558 |
<input type="text"
|
559 |
name="discount_range[<?php echo $fieldIndex; ?>][max_qty]"
|
560 |
class="form-control"
|
561 |
value="<?php echo(isset($discount->max_qty) ? $discount->max_qty : ''); ?>"
|
562 |
-
placeholder="ex. 50"> </label>
|
563 |
<label><?php esc_html_e('Adjustment Type', 'woo-discount-rules'); ?>
|
564 |
<select class="form-control price_discount_type"
|
565 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_type]">
|
@@ -612,7 +625,7 @@ if($isPro){
|
|
612 |
<option value="more_than_one_cheapest_from_all"<?php echo ($discount_product_option == 'more_than_one_cheapest_from_all')? ' selected="selected"': '' ?>><?php esc_html_e('More than one cheapest from all', 'woo-discount-rules') ?></option>
|
613 |
</select>
|
614 |
<div class="discount_product_option_bogo_con hide">
|
615 |
-
<label><?php esc_html_e('Free quantity', 'woo-discount-rules'); ?> <span class="woocommerce-help-tip" data-tip="Number of quantity(ies) in each selected product(s)"></span>
|
616 |
<input type="text"
|
617 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_bogo_qty]"
|
618 |
class="form-control"
|
@@ -628,20 +641,20 @@ if($isPro){
|
|
628 |
<option value="static"<?php echo ($discount_product_item_type == 'static')? ' selected="selected"': '' ?>><?php esc_html_e('Fixed item count', 'woo-discount-rules') ?></option>
|
629 |
<option value="dynamic"<?php echo ($discount_product_item_type == 'dynamic')? ' selected="selected"': '' ?>><?php esc_html_e('Dynamic item count', 'woo-discount-rules') ?></option>
|
630 |
</select>
|
631 |
-
<span class="woocommerce-help-tip" data-tip="Fixed item count - You need to provide item count manually
|
632 |
-
<label class="discount_product_items_count_field"><?php esc_html_e('Item count', 'woo-discount-rules'); ?> <span class="woocommerce-help-tip" data-tip="Discount for number of item(s) in cart"></span>
|
633 |
<input type="text"
|
634 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_items]"
|
635 |
class="form-control discount_product_items_count_field"
|
636 |
value="<?php echo(isset($discount->discount_product_items) ? $discount->discount_product_items : ''); ?>"
|
637 |
-
placeholder="ex. 1" />
|
638 |
</label>
|
639 |
-
<label><?php esc_html_e('Item quantity', 'woo-discount-rules'); ?> <span class="woocommerce-help-tip" data-tip="Discount for number of quantity(ies) in each item"></span>
|
640 |
<input type="text"
|
641 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_qty]"
|
642 |
class="form-control"
|
643 |
value="<?php echo(isset($discount->discount_product_qty) ? $discount->discount_product_qty : ''); ?>"
|
644 |
-
placeholder="ex. 1" />
|
645 |
</label>
|
646 |
</div>
|
647 |
<div class="discount_product_option_list_con hide">
|
@@ -653,7 +666,7 @@ if($isPro){
|
|
653 |
<?php
|
654 |
$discount_category_selected = (isset($discount->discount_category) ? $discount->discount_category : array());
|
655 |
?>
|
656 |
-
<select class="category_list selectpicker" multiple
|
657 |
name="<?php echo "discount_range[".$fieldIndex."][discount_category][]"; ?>">
|
658 |
<?php foreach ($category as $index => $value) { ?>
|
659 |
<option value="<?php echo $index; ?>"<?php if (in_array($index, $discount_category_selected)) { ?> selected=selected <?php } ?>><?php echo $value; ?></option>
|
@@ -673,7 +686,7 @@ if($isPro){
|
|
673 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_percent]"
|
674 |
class="discount_product_percent_field"
|
675 |
value="<?php echo(isset($discount->discount_product_percent) ? $discount->discount_product_percent : ''); ?>"
|
676 |
-
placeholder="ex. 10" /><span class="woocommerce-help-tip" data-tip="Percentage"></span>
|
677 |
</span>
|
678 |
<?php esc_html_e('as discount', 'woo-discount-rules'); ?>
|
679 |
</div>
|
25 |
if($isPro){
|
26 |
$attributes = FlycartWooDiscountRulesAdvancedHelper::get_all_product_attributes();
|
27 |
}
|
28 |
+
$woo_settings = new FlycartWooDiscountBase();
|
29 |
+
$do_not_run_while_have_third_party_coupon = $woo_settings->getConfigData('do_not_run_while_have_third_party_coupon', 0);
|
30 |
?>
|
31 |
<div class="container-fluid woo_discount_loader_outer">
|
32 |
<form id="form_price_rule">
|
33 |
<div class="row-fluid">
|
34 |
<div class="<?php echo $isPro? 'col-md-12': 'col-md-8'; ?>">
|
35 |
<div class="col-md-12 rule_buttons_con" align="right">
|
36 |
+
<input type="submit" id="savePriceRule" value="<?php esc_html_e('Save Rule', 'woo-discount-rules'); ?>" class="btn btn-primary">
|
37 |
<a href="?page=woo_discount_rules" class="btn btn-warning"><?php esc_html_e('Close', 'woo-discount-rules'); ?></a>
|
38 |
</div>
|
39 |
<?php if ($rule_id == 0) { ?>
|
48 |
<div class="row">
|
49 |
<div class="col-md-3"><label> <?php esc_html_e('Order :', 'woo-discount-rules'); ?> <i
|
50 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
51 |
+
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>
|
52 |
</div>
|
53 |
<div class="col-md-6"><input type="number" class="rule_order"
|
54 |
id="rule_order"
|
55 |
name="rule_order"
|
56 |
min=1
|
57 |
value="<?php echo(isset($data->rule_order) ? $data->rule_order : '-'); ?>"
|
58 |
+
placeholder="<?php esc_html_e('ex. 1', 'woo-discount-rules'); ?>">
|
59 |
<code><?php esc_html_e('WARNING: More than one rule should not have same priority.', 'woo-discount-rules'); ?> </code>
|
60 |
</div>
|
61 |
</div>
|
64 |
<div class="row">
|
65 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Name', 'woo-discount-rules'); ?> <i
|
66 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
67 |
+
title="<?php esc_attr_e('Rule Descriptions.', 'woo-discount-rules'); ?>"></i></label></div>
|
68 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
69 |
id="rule_name"
|
70 |
name="rule_name"
|
71 |
value="<?php echo(isset($data->rule_name) ? $data->rule_name : ''); ?>"
|
72 |
+
placeholder="<?php esc_attr_e('ex. Standard Rule.', 'woo-discount-rules'); ?>"></div>
|
73 |
</div>
|
74 |
</div>
|
75 |
<div class="form-group">
|
76 |
<div class="row">
|
77 |
<div class="col-md-3"><label> <?php esc_html_e('Rule Description', 'woo-discount-rules'); ?> <i
|
78 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
79 |
+
title="<?php esc_attr_e('Rule Descriptions.', 'woo-discount-rules'); ?>"></i></label></div>
|
80 |
<div class="col-md-6"><input type="text" class="form-control rule_descr"
|
81 |
name="rule_descr"
|
82 |
value="<?php echo(isset($data->rule_descr) ? $data->rule_descr : ''); ?>"
|
87 |
<div class="row">
|
88 |
<div class="col-md-3"><label> <?php esc_html_e('Method', 'woo-discount-rules'); ?> <i
|
89 |
class="text-muted glyphicon glyphicon-exclamation-sign"
|
90 |
+
title="<?php esc_attr_e('Method to Apply.', 'woo-discount-rules'); ?>"></i></label></div>
|
91 |
<?php $opt = (isset($data->rule_method) ? $data->rule_method : ''); ?>
|
92 |
<div class="col-md-6"><select class="form-control"
|
93 |
name="rule_method" id="price_rule_method">
|
184 |
</div>
|
185 |
<div class="form-group" id="category_list">
|
186 |
<?php $category_list = json_decode((isset($data->category_to_apply) ? $data->category_to_apply : '{}'), true); ?>
|
187 |
+
<select class="category_list selectpicker" multiple title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
188 |
name="category_to_apply[]">
|
189 |
<?php foreach ($category as $index => $value) { ?>
|
190 |
<option
|
200 |
</div>
|
201 |
<div class="form-group" id="product_attributes_list">
|
202 |
<?php $attribute_list = json_decode((isset($data->attribute_to_apply) ? $data->attribute_to_apply : '{}'), true); ?>
|
203 |
+
<select class="attribute_list selectpicker" multiple title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
204 |
name="attribute_to_apply[]">
|
205 |
<?php foreach ($attributes as $index => $value) { ?>
|
206 |
<option
|
295 |
<?php
|
296 |
if($pro){
|
297 |
$roles_list = json_decode((isset($data->user_roles_to_apply) ? $data->user_roles_to_apply : '{}'), true); ?>
|
298 |
+
<select class="roles_list selectpicker" id="product_roles_list" multiple name="user_roles_to_apply[]" title="<?php esc_html_e('Do not use', 'woo-discount-rules'); ?>">
|
299 |
<?php foreach ($userRoles as $index => $user) { ?>
|
300 |
<option value="<?php echo $index; ?>"<?php if (in_array($index, $roles_list)) { ?> selected=selected <?php } ?>><?php echo $user; ?></option>
|
301 |
<?php } ?>
|
335 |
?>
|
336 |
</span>
|
337 |
<input class="form-control coupons_to_apply" id="coupons_to_apply" name="coupons_to_apply" value="<?php echo $coupons_to_apply; ?>"/>
|
338 |
+
<?php
|
339 |
+
if($do_not_run_while_have_third_party_coupon){
|
340 |
+
?>
|
341 |
+
<div class="notice notice-warning">
|
342 |
+
<p>
|
343 |
+
<?php esc_html_e('To get this condition work,', 'woo-discount-rules'); ?> <a target="_blank" href="?page=woo_discount_rules&tab=settings"><?php esc_html_e('please change the option', 'woo-discount-rules'); ?> <b><?php esc_html_e('Disable the rules while have coupon(Third party)', 'woo-discount-rules'); ?></b> <?php esc_html_e('in cart to', 'woo-discount-rules'); ?> <b><?php esc_html_e('No', 'woo-discount-rules'); ?></b></a>.
|
344 |
+
</p>
|
345 |
+
</div>
|
346 |
+
<?php
|
347 |
+
}
|
348 |
+
?>
|
349 |
</div>
|
350 |
<?php
|
351 |
} else {
|
465 |
$purchase_history_status_list[] = 'wc-completed';
|
466 |
}
|
467 |
?>
|
468 |
+
<select class="purchase_history_status_list selectpicker" multiple title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>" name="purchase_history_status_list[]">
|
469 |
<?php foreach ($woocommerce_order_status as $index => $value) { ?>
|
470 |
<option
|
471 |
value="<?php echo $index; ?>"<?php if (in_array($index, $purchase_history_status_list)) { ?> selected=selected <?php } ?>><?php echo $value; ?></option>
|
565 |
name="discount_range[<?php echo $fieldIndex; ?>][min_qty]"
|
566 |
class="form-control"
|
567 |
value="<?php echo(isset($discount->min_qty) ? $discount->min_qty : ''); ?>"
|
568 |
+
placeholder="<?php esc_html_e('ex. 1', 'woo-discount-rules'); ?>">
|
569 |
</label>
|
570 |
<label><?php esc_html_e('Max Quantity', 'woo-discount-rules'); ?>
|
571 |
<input type="text"
|
572 |
name="discount_range[<?php echo $fieldIndex; ?>][max_qty]"
|
573 |
class="form-control"
|
574 |
value="<?php echo(isset($discount->max_qty) ? $discount->max_qty : ''); ?>"
|
575 |
+
placeholder="<?php esc_html_e('ex. 50', 'woo-discount-rules'); ?>"> </label>
|
576 |
<label><?php esc_html_e('Adjustment Type', 'woo-discount-rules'); ?>
|
577 |
<select class="form-control price_discount_type"
|
578 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_type]">
|
625 |
<option value="more_than_one_cheapest_from_all"<?php echo ($discount_product_option == 'more_than_one_cheapest_from_all')? ' selected="selected"': '' ?>><?php esc_html_e('More than one cheapest from all', 'woo-discount-rules') ?></option>
|
626 |
</select>
|
627 |
<div class="discount_product_option_bogo_con hide">
|
628 |
+
<label><?php esc_html_e('Free quantity', 'woo-discount-rules'); ?> <span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Number of quantity(ies) in each selected product(s)', 'woo-discount-rules'); ?>"></span>
|
629 |
<input type="text"
|
630 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_bogo_qty]"
|
631 |
class="form-control"
|
641 |
<option value="static"<?php echo ($discount_product_item_type == 'static')? ' selected="selected"': '' ?>><?php esc_html_e('Fixed item count', 'woo-discount-rules') ?></option>
|
642 |
<option value="dynamic"<?php echo ($discount_product_item_type == 'dynamic')? ' selected="selected"': '' ?>><?php esc_html_e('Dynamic item count', 'woo-discount-rules') ?></option>
|
643 |
</select>
|
644 |
+
<span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Fixed item count - You need to provide item count manually. Dynamic item count - System will choose dynamically based on cart', 'woo-discount-rules'); ?>"></span>
|
645 |
+
<label class="discount_product_items_count_field"><?php esc_html_e('Item count', 'woo-discount-rules'); ?> <span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Discount for number of item(s) in cart', 'woo-discount-rules'); ?>"></span>
|
646 |
<input type="text"
|
647 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_items]"
|
648 |
class="form-control discount_product_items_count_field"
|
649 |
value="<?php echo(isset($discount->discount_product_items) ? $discount->discount_product_items : ''); ?>"
|
650 |
+
placeholder="<?php esc_attr_e('ex. 1', 'woo-discount-rules'); ?>" />
|
651 |
</label>
|
652 |
+
<label><?php esc_html_e('Item quantity', 'woo-discount-rules'); ?> <span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Discount for number of quantity(ies) in each item', 'woo-discount-rules'); ?>"></span>
|
653 |
<input type="text"
|
654 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_qty]"
|
655 |
class="form-control"
|
656 |
value="<?php echo(isset($discount->discount_product_qty) ? $discount->discount_product_qty : ''); ?>"
|
657 |
+
placeholder="<?php esc_attr_e('ex. 1', 'woo-discount-rules'); ?>" />
|
658 |
</label>
|
659 |
</div>
|
660 |
<div class="discount_product_option_list_con hide">
|
666 |
<?php
|
667 |
$discount_category_selected = (isset($discount->discount_category) ? $discount->discount_category : array());
|
668 |
?>
|
669 |
+
<select class="category_list selectpicker" multiple title="<?php esc_html_e('None selected', 'woo-discount-rules'); ?>"
|
670 |
name="<?php echo "discount_range[".$fieldIndex."][discount_category][]"; ?>">
|
671 |
<?php foreach ($category as $index => $value) { ?>
|
672 |
<option value="<?php echo $index; ?>"<?php if (in_array($index, $discount_category_selected)) { ?> selected=selected <?php } ?>><?php echo $value; ?></option>
|
686 |
name="discount_range[<?php echo $fieldIndex; ?>][discount_product_percent]"
|
687 |
class="discount_product_percent_field"
|
688 |
value="<?php echo(isset($discount->discount_product_percent) ? $discount->discount_product_percent : ''); ?>"
|
689 |
+
placeholder="<?php esc_attr_e('ex. 10', 'woo-discount-rules'); ?>" /><span class="woocommerce-help-tip" data-tip="<?php esc_attr_e('Percentage', 'woo-discount-rules'); ?>"></span>
|
690 |
</span>
|
691 |
<?php esc_html_e('as discount', 'woo-discount-rules'); ?>
|
692 |
</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.6.
|
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.6.6
|
9 |
* Slug: woo-discount-rules
|
10 |
* Text Domain: woo-discount-rules
|
11 |
* Domain Path: /i18n/languages/
|