Version Description
- Fix: bad spelling
- Fix: woocommerce checkout manager modal open
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 4.8.4 |
Comparing to | |
See all releases |
Code changes from version 4.8.3 to 4.8.4
- assets/backend/css/wooccm-admin.css +14 -0
- assets/backend/css/wooccm-admin.css.map +1 -1
- assets/backend/js/wooccm-admin-field.js +13 -22
- assets/backend/js/wooccm-admin-field.min.js +1 -1
- includes/controller/class-wooccm-email.php +29 -0
- includes/controller/class-wooccm-order.php +1 -1
- includes/view/backend/pages/modals/parts/main.php +1 -1
- readme.txt +5 -1
- templates/order/order-upload-files.php +2 -3
- woocommerce-checkout-manager.php +2 -2
assets/backend/css/wooccm-admin.css
CHANGED
@@ -60,6 +60,20 @@ table.wooccm-enhanced-options > tbody > tr > td input.check {
|
|
60 |
table.wooccm-enhanced-options > tbody > tr > td.sort .wc-item-reorder-nav {
|
61 |
width: auto;
|
62 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
#wooccm_modal select {
|
64 |
min-height: 30px;
|
65 |
}
|
60 |
table.wooccm-enhanced-options > tbody > tr > td.sort .wc-item-reorder-nav {
|
61 |
width: auto;
|
62 |
}
|
63 |
+
#wooccm_modal.processing {
|
64 |
+
pointer-events: none;
|
65 |
+
}
|
66 |
+
#wooccm_modal.processing:before {
|
67 |
+
content: '';
|
68 |
+
position: absolute;
|
69 |
+
top: 0;
|
70 |
+
bottom: 0;
|
71 |
+
left: 0;
|
72 |
+
right: 0;
|
73 |
+
background-color: #ffffff;
|
74 |
+
z-index: 99999999;
|
75 |
+
opacity: 0.8;
|
76 |
+
}
|
77 |
#wooccm_modal select {
|
78 |
min-height: 30px;
|
79 |
}
|
assets/backend/css/wooccm-admin.css.map
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"version":3,"sources":["../../less/wooccm-admin.less"],"names":[],"mappings":"AAAA;EACE,gBAAA;;AADF,kBAGE;A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;EACA,kBAAA;EACA,mBAAA;EACA,gBAAA;EACA,gBAAA","file":"wooccm-admin.css"}
|
assets/backend/js/wooccm-admin-field.js
CHANGED
@@ -2,23 +2,17 @@
|
|
2 |
|
3 |
var count = 0,
|
4 |
timer;
|
|
|
5 |
var is_blocked = function ($node) {
|
6 |
return $node.is('.processing') || $node.parents('.processing').length;
|
7 |
};
|
8 |
-
var block = function (
|
9 |
-
|
10 |
-
$node.addClass('processing').block({
|
11 |
-
message: null,
|
12 |
-
overlayCSS: {
|
13 |
-
background: '#fff',
|
14 |
-
opacity: 0.6
|
15 |
-
}
|
16 |
-
});
|
17 |
-
}
|
18 |
};
|
19 |
-
var unblock = function (
|
20 |
-
$
|
21 |
};
|
|
|
22 |
_.mixin({
|
23 |
sortOptions: function (object) {
|
24 |
return _.sortBy(object, function (o) {
|
@@ -119,10 +113,9 @@
|
|
119 |
load: function () {
|
120 |
|
121 |
var modal = this;
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
}
|
126 |
$.ajax({
|
127 |
url: wooccm_field.ajax_url,
|
128 |
data: {
|
@@ -133,11 +126,9 @@
|
|
133 |
dataType: 'json',
|
134 |
type: 'POST',
|
135 |
beforeSend: function () {
|
136 |
-
//block($tr);
|
137 |
},
|
138 |
complete: function () {
|
139 |
-
|
140 |
-
//modal.render();
|
141 |
},
|
142 |
error: function () {
|
143 |
alert('Error!');
|
@@ -312,12 +303,12 @@
|
|
312 |
beforeSend: function () {
|
313 |
$('.media-modal-submit').prop('disabled', true);
|
314 |
$details.addClass('save-waiting');
|
315 |
-
block(
|
316 |
},
|
317 |
complete: function () {
|
318 |
$details.addClass('save-complete');
|
319 |
$details.removeClass('save-waiting');
|
320 |
-
unblock(
|
321 |
},
|
322 |
error: function () {
|
323 |
alert('Error!');
|
@@ -356,7 +347,7 @@
|
|
356 |
});
|
357 |
new FieldView({
|
358 |
model: model
|
359 |
-
});
|
360 |
},
|
361 |
});
|
362 |
$('#wooccm_billing_settings_add, #wooccm_shipping_settings_add, #wooccm_additional_settings_add').on('click', function (e) {
|
2 |
|
3 |
var count = 0,
|
4 |
timer;
|
5 |
+
|
6 |
var is_blocked = function ($node) {
|
7 |
return $node.is('.processing') || $node.parents('.processing').length;
|
8 |
};
|
9 |
+
var block = function () {
|
10 |
+
$('#wooccm_modal').addClass('processing');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
};
|
12 |
+
var unblock = function () {
|
13 |
+
$('#wooccm_modal').removeClass('processing');
|
14 |
};
|
15 |
+
|
16 |
_.mixin({
|
17 |
sortOptions: function (object) {
|
18 |
return _.sortBy(object, function (o) {
|
113 |
load: function () {
|
114 |
|
115 |
var modal = this;
|
116 |
+
|
117 |
+
block();
|
118 |
+
|
|
|
119 |
$.ajax({
|
120 |
url: wooccm_field.ajax_url,
|
121 |
data: {
|
126 |
dataType: 'json',
|
127 |
type: 'POST',
|
128 |
beforeSend: function () {
|
|
|
129 |
},
|
130 |
complete: function () {
|
131 |
+
unblock();
|
|
|
132 |
},
|
133 |
error: function () {
|
134 |
alert('Error!');
|
303 |
beforeSend: function () {
|
304 |
$('.media-modal-submit').prop('disabled', true);
|
305 |
$details.addClass('save-waiting');
|
306 |
+
block();
|
307 |
},
|
308 |
complete: function () {
|
309 |
$details.addClass('save-complete');
|
310 |
$details.removeClass('save-waiting');
|
311 |
+
unblock();
|
312 |
},
|
313 |
error: function () {
|
314 |
alert('Error!');
|
347 |
});
|
348 |
new FieldView({
|
349 |
model: model
|
350 |
+
}).render();
|
351 |
},
|
352 |
});
|
353 |
$('#wooccm_billing_settings_add, #wooccm_shipping_settings_add, #wooccm_additional_settings_add').on('click', function (e) {
|
assets/backend/js/wooccm-admin-field.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(f){var h=0,b;var e=function(n){return n.is(".processing")||n.parents(".processing").length};var d=function(
|
1 |
+
(function(f){var h=0,b;var e=function(n){return n.is(".processing")||n.parents(".processing").length};var d=function(){f("#wooccm_modal").addClass("processing")};var g=function(){f("#wooccm_modal").removeClass("processing")};_.mixin({sortOptions:function(n){return _.sortBy(n,function(p){return p.order})}});var c=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("wooccm-modal-tabs")},render:function(){this.$el.html(this.templates.window(this.model.attributes));this.$el.trigger("wooccm-tab-panels")}});var l=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("wooccm-modal-datepicker-limit")},render:function(){this.$el.html(this.templates.window(this.model.attributes));this.$el.trigger("wooccm-enhanced-between-dates");this.$el.trigger("init_tooltips")}});var m=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("wooccm-modal-panels")},render:function(){this.$el.html(this.templates.window(this.model.attributes));this.$el.trigger("wooccm-enhanced-options");this.$el.trigger("wooccm-enhanced-select");this.$el.trigger("init_tooltips")}});var k=Backbone.View.extend({templates:{},initialize:function(){this.templates.window=wp.template("wooccm-modal-info")},render:function(){this.$el.html(this.templates.window(this.model.attributes));this.$el.trigger("wooccm-enhanced-select");this.$el.trigger("init_tooltips")}});var j=Backbone.View.extend({events:{"change input":"enable","change textarea":"enable","change select":"enable","click .media-modal-backdrop":"close","click .media-modal-close":"close","click .media-modal-prev":"edit","click .media-modal-next":"edit","change .media-modal-change":"change","change .media-modal-parent":"parent","change .media-modal-render-tabs":"renderTabs","change .media-modal-render-panels":"renderPanels","change .media-modal-render-info":"renderInfo","change .media-modal-render-datepicker-limit":"renderDate","submit .media-modal-form":"submit",},templates:{},initialize:function(){_.bindAll(this,"open","edit","parent","change","load","render","close","submit");this.init();this.open()},init:function(){this.templates.window=wp.template("wooccm-modal-main")},assign:function(o,n){o.setElement(this.$(n)).render()},render:function(){var n=this;n.$el.html(n.templates.window(n.model.attributes));this.tabs=new c({model:n.model});this.panels=new m({model:n.model});this.datepickerLimit=new l({model:n.model});this.info=new k({model:n.model});this.assign(this.tabs,"#wooccm-modal-tabs");this.assign(this.panels,"#wooccm-modal-panels");this.assign(this.datepickerLimit,"#wooccm-modal-datepicker-limit");this.assign(this.info,"#wooccm-modal-info")},load:function(){var n=this;d();f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_load_field",nonce:wooccm_field.nonce,field_id:this.model.attributes.id},dataType:"json",type:"POST",beforeSend:function(){},complete:function(){g()},error:function(){alert("Error!")},success:function(o){if(o.success){n.model.set(o.data);n.render()}else{alert(o.data)}}})},edit:function(r){r.preventDefault();var p=this,q=f(r.target),o=parseInt(f(".wc_gateways tr[data-field_id]").length),n=parseInt(p.model.get("order"));h++;if(b){clearTimeout(b)}b=setTimeout(function(){if(q.hasClass("media-modal-next")){n=Math.min(n+h,o)}else{n=Math.max(n-h,1)}p.model.set({id:parseInt(f(".wc_gateways tr[data-field_order="+n+"]").data("field_id"))});h=0;p.load()},300)},open:function(n){this.load();f("body").addClass("modal-open").append(this.$el)},update:function(q){q.preventDefault();var o=f(q.target),n=o.attr("name"),p=o.val();if(q.target.type==="checkbox"){p=o.prop("checked")===true?1:0}this.model.attributes[n]=p;this.model.changed[n]=p},change:function(n){n.preventDefault();this.update(n);this.enable()},renderTabs:function(){this.tabs.render()},renderPanels:function(){this.panels.render()},renderInfo:function(){this.info.render()},renderDate:function(){this.assign(this.datepickerLimit,"#wooccm-modal-datepicker-limit");this.datepickerLimit.render()},close:function(n){n.preventDefault();this.undelegateEvents();f(document).off("focusin");f("body").removeClass("modal-open");this.remove()},parent:function(q){q.preventDefault();var p=this,o=p.$el.find("#wooccm_modal"),n=o.find(".attachment-details");this.update(q);f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_load_parent",nonce:wooccm_field.nonce,conditional_parent_key:p.model.attributes.conditional_parent_key},dataType:"json",type:"POST",beforeSend:function(){f(".media-modal-submit").attr("disabled",true);n.addClass("save-waiting")},complete:function(){n.addClass("save-complete");n.removeClass("save-waiting")},error:function(){alert("Error!")},success:function(r){if(r.success){p.model.attributes.parent=r.data;p.model.changed.parent=r.data;p.renderInfo()}else{alert(r.data)}}});return false},reload:function(n){if(this.$el.find("#wooccm_modal").hasClass("reload")){location.reload();return}this.remove();return},close:function(n){n.preventDefault();this.undelegateEvents();f(document).off("focusin");f("body").removeClass("modal-open");this.reload(n);return},enable:function(n){f(".media-modal-submit").removeProp("disabled")},submit:function(q){q.preventDefault();var p=this,o=p.$el.find("#wooccm_modal"),n=o.find(".attachment-details");f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_save_field",nonce:wooccm_field.nonce,field_id:p.model.attributes.id,field_data:f("form",this.$el).serialize()},dataType:"json",type:"POST",beforeSend:function(){f(".media-modal-submit").prop("disabled",true);n.addClass("save-waiting");d()},complete:function(){n.addClass("save-complete");n.removeClass("save-waiting");g()},error:function(){alert("Error!")},success:function(r){if(r.success){if(p.model.attributes.id==undefined){o.addClass("reload");p.close(q)}p.model.set(r.data)}else{alert(r.data)}}});return false}});var i=Backbone.Model.extend({defaults:wooccm_field.args});var a=Backbone.View.extend({initialize:function(q){var p=f(q.target),o=p.closest("[data-field_id]").data("field_id");var n=new i();n.set({id:o});new j({model:n}).render()},});f("#wooccm_billing_settings_add, #wooccm_shipping_settings_add, #wooccm_additional_settings_add").on("click",function(n){n.preventDefault();new a(n)});f("#wooccm_billing_settings_reset, #wooccm_shipping_settings_reset, #wooccm_additional_settings_reset").on("click",function(o){o.preventDefault();var n=f(o.target);var p=confirm(wooccm_field.message.reset);if(!p){return false}f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_reset_fields",nonce:wooccm_field.nonce},dataType:"json",type:"POST",beforeSend:function(){},complete:function(){},error:function(){alert("Error!")},success:function(q){if(q.success){location.reload()}else{alert(q.data)}}});return false});f(".wooccm_billing_settings_edit, .wooccm_shipping_settings_edit, .wooccm_additional_settings_edit").on("click",function(n){n.preventDefault();new a(n)});f(".wooccm_billing_settings_delete, .wooccm_shipping_settings_delete, .wooccm_additional_settings_delete").on("click",function(q){q.preventDefault();var p=f(q.target),o=p.closest("[data-field_id]"),n=o.data("field_id");var r=confirm(wooccm_field.message.remove);if(!r){return false}f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_delete_field",nonce:wooccm_field.nonce,field_id:n,},dataType:"json",type:"POST",beforeSend:function(){},complete:function(){},error:function(){alert("Error!")},success:function(s){if(s.success){o.remove()}else{alert(s.data)}}});return false});f(document).on("click",".wooccm-field-toggle-attribute",function(q){q.preventDefault();var n=f(this),p=n.closest("tr"),o=n.find(".woocommerce-input-toggle");f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_toggle_field_attribute",nonce:wooccm_field.nonce,field_attr:f(this).data("field_attr"),field_id:p.data("field_id")},dataType:"json",type:"POST",beforeSend:function(r){o.addClass("woocommerce-input-toggle--loading")},success:function(r){if(true===r.data){o.removeClass("woocommerce-input-toggle--enabled, woocommerce-input-toggle--disabled");o.addClass("woocommerce-input-toggle--enabled");o.removeClass("woocommerce-input-toggle--loading")}else{if(true!==r.data){o.removeClass("woocommerce-input-toggle--enabled, woocommerce-input-toggle--disabled");o.addClass("woocommerce-input-toggle--disabled");o.removeClass("woocommerce-input-toggle--loading")}}}});return false});f(document).on("change",".wooccm-field-change-attribute",function(p){p.preventDefault();var n=f(this),o=n.closest("tr");f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_change_field_attribute",nonce:wooccm_field.nonce,field_attr:n.data("field_attr"),field_value:n.val(),field_id:o.data("field_id"),},dataType:"json",type:"POST",beforeSend:function(q){n.prop("disabled",true)},success:function(q){console.log(q.data)},complete:function(q){n.prop("disabled",false)},});return false})})(jQuery);
|
includes/controller/class-wooccm-email.php
CHANGED
@@ -24,6 +24,35 @@ class WOOCCM_Order_Email_Controller {
|
|
24 |
'type' => 'title',
|
25 |
'id' => 'section_title'
|
26 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
array(
|
28 |
'name' => esc_html__('Add custom fields', 'woocommerce-checkout-manager-pro'),
|
29 |
'desc_tip' => esc_html__('Show the selected fields in the order.', 'woocommerce-checkout-manager-pro'),
|
24 |
'type' => 'title',
|
25 |
'id' => 'section_title'
|
26 |
),
|
27 |
+
array(
|
28 |
+
'name' => esc_html__('Add upload files', 'woocommerce-checkout-manager'),
|
29 |
+
'desc_tip' => esc_html__('Allow customers to upload files in the order.', 'woocommerce-checkout-manager'),
|
30 |
+
'id' => 'wooccm_email_upload_files',
|
31 |
+
'type' => 'select',
|
32 |
+
'class' => 'chosen_select wooccm-premium-field',
|
33 |
+
'options' => array(
|
34 |
+
'yes' => esc_html__('Yes', 'woocommerce-checkout-manager'),
|
35 |
+
'no' => esc_html__('No', 'woocommerce-checkout-manager'),
|
36 |
+
),
|
37 |
+
'default' => 'no',
|
38 |
+
),
|
39 |
+
array(
|
40 |
+
'name' => esc_html__('Add for this order status', 'woocommerce-checkout-manager'),
|
41 |
+
'desc_tip' => esc_html__('Allow customers to upload files in the order.', 'woocommerce-checkout-manager'),
|
42 |
+
'id' => 'wooccm_email_upload_files_order_status',
|
43 |
+
'type' => 'multiselect',
|
44 |
+
'class' => 'chosen_select wooccm-premium-field',
|
45 |
+
'options' => wc_get_order_statuses(),
|
46 |
+
'default' => array_keys(wc_get_order_statuses()),
|
47 |
+
),
|
48 |
+
array(
|
49 |
+
'name' => esc_html__('Add upload files title', 'woocommerce-checkout-manager'),
|
50 |
+
'desc_tip' => esc_html__('Add custom title for the uploads files table.', 'woocommerce-checkout-manager'),
|
51 |
+
'id' => 'wooccm_email_upload_files_title',
|
52 |
+
'class' => 'wooccm-premium-field',
|
53 |
+
'type' => 'text',
|
54 |
+
'placeholder' => esc_html__('Uploaded files', 'woocommerce-checkout-manager')
|
55 |
+
),
|
56 |
array(
|
57 |
'name' => esc_html__('Add custom fields', 'woocommerce-checkout-manager-pro'),
|
58 |
'desc_tip' => esc_html__('Show the selected fields in the order.', 'woocommerce-checkout-manager-pro'),
|
includes/controller/class-wooccm-order.php
CHANGED
@@ -197,7 +197,7 @@ class WOOCCM_Order_Controller extends WOOCCM_Upload {
|
|
197 |
'desc_tip' => esc_html__('Add custom title for the uploads files table.', 'woocommerce-checkout-manager'),
|
198 |
'id' => 'wooccm_order_upload_files_title',
|
199 |
'type' => 'text',
|
200 |
-
'placeholder' => esc_html__('
|
201 |
),
|
202 |
array(
|
203 |
'name' => esc_html__('Add custom fields', 'woocommerce-checkout-manager'),
|
197 |
'desc_tip' => esc_html__('Add custom title for the uploads files table.', 'woocommerce-checkout-manager'),
|
198 |
'id' => 'wooccm_order_upload_files_title',
|
199 |
'type' => 'text',
|
200 |
+
'placeholder' => esc_html__('Uploaded files', 'woocommerce-checkout-manager')
|
201 |
),
|
202 |
array(
|
203 |
'name' => esc_html__('Add custom fields', 'woocommerce-checkout-manager'),
|
includes/view/backend/pages/modals/parts/main.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="media-modal-backdrop"> </div>
|
2 |
-
<div tabindex="0" id="<?php echo esc_attr(WOOCCM_PREFIX . '_modal'); ?>" class="media-modal wp-core-ui upload-php" role="dialog" aria-modal="true" aria-labelledby="media-frame-title">
|
3 |
<div class="media-modal-content" role="document">
|
4 |
<form class="media-modal-form" method="POST">
|
5 |
<# if ( data.id != undefined ) { #>
|
1 |
<div class="media-modal-backdrop"> </div>
|
2 |
+
<div tabindex="0" id="<?php echo esc_attr(WOOCCM_PREFIX . '_modal'); ?>" class="media-modal wp-core-ui upload-php processing" role="dialog" aria-modal="true" aria-labelledby="media-frame-title">
|
3 |
<div class="media-modal-content" role="document">
|
4 |
<form class="media-modal-form" method="POST">
|
5 |
<# if ( data.id != undefined ) { #>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/
|
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 5.3.0
|
7 |
-
Stable tag: 4.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -99,6 +99,10 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 4.8.3 =
|
103 |
* Fix: woocommerce checkout manager conditional fields
|
104 |
* Fix: woocommerce checkout manager modal prev and next button
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 4.6
|
6 |
Tested up to: 5.3.0
|
7 |
+
Stable tag: 4.8.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 4.8.4 =
|
103 |
+
* Fix: bad spelling
|
104 |
+
* Fix: woocommerce checkout manager modal open
|
105 |
+
|
106 |
= 4.8.3 =
|
107 |
* Fix: woocommerce checkout manager conditional fields
|
108 |
* Fix: woocommerce checkout manager modal prev and next button
|
templates/order/order-upload-files.php
CHANGED
@@ -1,10 +1,9 @@
|
|
1 |
<div class="wooccm_order_attachments_wrapper">
|
2 |
-
<h2 class="woocommerce-order-details__title"><?php echo ($title = get_option('wooccm_order_upload_files_title', false)) ? esc_html($title) : esc_html__('
|
3 |
<table class="woocommerce_order_items shop_table">
|
4 |
<thead>
|
5 |
<tr>
|
6 |
-
|
7 |
-
<th><?php _e('Image', 'woocommerce-checkout-manager'); ?></th>
|
8 |
<th><?php _e('Filename', 'woocommerce-checkout-manager'); ?></th>
|
9 |
<th><?php _e('Dimensions', 'woocommerce-checkout-manager'); ?></th>
|
10 |
<th><?php _e('Extension', ' woocommerce-checkout-manager'); ?></th>
|
1 |
<div class="wooccm_order_attachments_wrapper">
|
2 |
+
<h2 class="woocommerce-order-details__title"><?php echo ($title = get_option('wooccm_order_upload_files_title', false)) ? esc_html($title) : esc_html__('Uploaded files', 'woocommerce-checkout-manager'); ?></h2>
|
3 |
<table class="woocommerce_order_items shop_table">
|
4 |
<thead>
|
5 |
<tr>
|
6 |
+
<th><?php _e('File', 'woocommerce-checkout-manager'); ?></th>
|
|
|
7 |
<th><?php _e('Filename', 'woocommerce-checkout-manager'); ?></th>
|
8 |
<th><?php _e('Dimensions', 'woocommerce-checkout-manager'); ?></th>
|
9 |
<th><?php _e('Extension', ' woocommerce-checkout-manager'); ?></th>
|
woocommerce-checkout-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Checkout Manager
|
5 |
* Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
-
* Version: 4.8.
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
@@ -17,7 +17,7 @@ if (!defined('WOOCCM_PLUGIN_NAME')) {
|
|
17 |
define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
|
18 |
}
|
19 |
if (!defined('WOOCCM_PLUGIN_VERSION')) {
|
20 |
-
define('WOOCCM_PLUGIN_VERSION', '4.8.
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Checkout Manager
|
5 |
* Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
+
* Version: 4.8.4
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
17 |
define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
|
18 |
}
|
19 |
if (!defined('WOOCCM_PLUGIN_VERSION')) {
|
20 |
+
define('WOOCCM_PLUGIN_VERSION', '4.8.4');
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|