WooCommerce Checkout Manager - Version 4.7.8

Version Description

  • Fix: small CSS issues
Download this release

Release Info

Developer quadlayers
Plugin Icon 128x128 WooCommerce Checkout Manager
Version 4.7.8
Comparing to
See all releases

Code changes from version 4.7.7 to 4.7.8

assets/backend/css/wooccm-admin.css CHANGED
@@ -1,9 +1,24 @@
1
  .select2-container {
2
  z-index: 9999999;
3
  }
 
 
 
 
 
 
4
  .wooccm-premium {
5
  opacity: 0.5;
6
  pointer-events: none;
 
 
 
 
 
 
 
 
 
7
  }
8
  .button.fileinput-button {
9
  position: relative;
@@ -20,6 +35,9 @@
20
  direction: ltr;
21
  cursor: pointer;
22
  }
 
 
 
23
  table.wc_gateways > tbody > tr > td.label {
24
  font-weight: 600;
25
  }
@@ -42,64 +60,70 @@ table.wooccm-enhanced-options > tbody > tr > td input.check {
42
  table.wooccm-enhanced-options > tbody > tr > td.sort .wc-item-reorder-nav {
43
  width: auto;
44
  }
45
- .attachment-info .details,
46
- .attachment-info .settings {
 
 
 
47
  width: 100%;
48
  }
49
- .attachment-info .woocommerce_options_panel label,
50
- .attachment-info .woocommerce_options_panel legend {
51
  width: 75px;
52
  margin: 0 0 0 -90px;
53
  font-weight: 600;
54
  }
55
- .attachment-info .woocommerce_options_panel fieldset.form-field,
56
- .attachment-info .woocommerce_options_panel p.form-field {
57
  padding: 0 20px 0 92px!important;
58
  }
59
- .attachment-info .woocommerce_options_panel input[type=email],
60
- .attachment-info .woocommerce_options_panel input[type=number],
61
- .attachment-info .woocommerce_options_panel input[type=password],
62
- .attachment-info .woocommerce_options_panel input[type=text],
63
- .attachment-info .woocommerce_options_panel select,
64
- .attachment-info .woocommerce_options_panel .select2-container {
65
  width: 100%!important;
66
  }
67
- .woocommerce_options_panel .premium {
 
 
 
 
 
 
 
 
68
  display: block;
69
  clear: both;
70
  }
71
- .woocommerce_options_panel input,
72
- .woocommerce_options_panel select,
73
- .woocommerce_options_panel textarea {
74
- margin: 0;
75
- }
76
- .woocommerce_options_panel .woocommerce-help-tip {
77
  margin: 0 0 0 0.5em;
78
  }
79
- .woocommerce_options_panel .select2-container {
80
  width: 50%!important;
81
  line-height: 16px;
82
- }
83
- .woocommerce_options_panel .select2-container span {
84
- width: auto;
85
- float: none;
86
- margin: auto;
87
- padding: auto;
88
- }
89
- .woocommerce_options_panel .select2-container .select2-selection--multiple {
90
  line-height: 16px;
91
  min-height: 30px;
92
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
93
  }
94
  @media only screen and (max-width: 1280px) {
95
- .woocommerce_options_panel .select2-container {
96
  width: 80%!important;
97
  }
98
  }
99
- .woocommerce_options_panel .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
100
  margin: 3px 3px 0 0;
101
  }
102
- .woocommerce_options_panel .select2-container--default.select2-container--focus .select2-selection--multiple {
103
  border-color: #5b9dd9!important;
104
  box-shadow: 0 0 2px rgba(30, 140, 190, 0.8) !important;
105
  outline: 2px solid transparent!important;
@@ -184,95 +208,4 @@ table.wooccm-enhanced-options > tbody > tr > td.sort .wc-item-reorder-nav {
184
  line-height: 2em;
185
  text-align: left;
186
  }
187
- .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context=product-edit-meta-tab-body] .marketplace-suggestion-container,
188
- .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context=product-edit-meta-tab-footer] .marketplace-suggestion-container,
189
- .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context=product-edit-meta-tab-header] .marketplace-suggestion-container {
190
- padding: 1em 1.5em;
191
- }
192
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container img.marketplace-suggestion-icon {
193
- height: 40px;
194
- margin: 0;
195
- margin-right: 1.5em;
196
- -webkit-box-flex: 0;
197
- -webkit-flex: 0 0 40px;
198
- flex: 0 0 40px;
199
- }
200
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-cta {
201
- -webkit-box-flex: 1;
202
- -webkit-flex: 1 1 30%;
203
- flex: 1 1 30%;
204
- min-width: 160px;
205
- text-align: right;
206
- }
207
- a.suggestion-dismiss::before {
208
- font-family: Dashicons;
209
- speak: none;
210
- font-weight: 400;
211
- font-variant: normal;
212
- text-transform: none;
213
- line-height: 1;
214
- -webkit-font-smoothing: antialiased;
215
- content: "";
216
- text-decoration: none;
217
- font-size: 1.5em;
218
- }
219
- .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context=product-edit-meta-tab-body] .marketplace-suggestion-container .marketplace-suggestion-container-cta a.button {
220
- display: inline-block;
221
- min-width: 120px;
222
- text-align: center;
223
- margin: 0;
224
- }
225
- .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context=product-edit-meta-tab-body] {
226
- border: none;
227
- border-top: 1px solid #eee;
228
- border-bottom: 1px solid #eee;
229
- }
230
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-cta .suggestion-dismiss {
231
- text-decoration: none;
232
- position: relative;
233
- top: 5px;
234
- right: auto;
235
- margin-left: 1em;
236
- }
237
- a.suggestion-dismiss {
238
- border: none;
239
- box-shadow: none;
240
- color: #ddd;
241
- }
242
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container {
243
- -webkit-box-align: start;
244
- -webkit-align-items: flex-start;
245
- align-items: flex-start;
246
- display: -webkit-box;
247
- display: -webkit-flex;
248
- display: flex;
249
- -webkit-box-orient: vertical;
250
- -webkit-box-direction: normal;
251
- -webkit-flex-direction: column;
252
- flex-direction: column;
253
- position: relative;
254
- }
255
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-content h4 {
256
- margin: 0;
257
- }
258
- .marketplace-suggestions-container.showing-suggestion[data-marketplace-suggestions-context=product-edit-meta-tab-body] .marketplace-suggestion-container .marketplace-suggestion-container-content p {
259
- padding: 0;
260
- line-height: 1.5;
261
- }
262
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container .marketplace-suggestion-container-content p {
263
- margin: 0;
264
- margin-top: 4px;
265
- color: #444;
266
- }
267
- @media screen and (min-width: 600px) {
268
- .marketplace-suggestions-container.showing-suggestion .marketplace-suggestion-container {
269
- -webkit-box-align: center;
270
- -webkit-align-items: center;
271
- align-items: center;
272
- -webkit-box-orient: horizontal;
273
- -webkit-box-direction: normal;
274
- -webkit-flex-direction: row;
275
- flex-direction: row;
276
- }
277
- }
278
  /*# sourceMappingURL=wooccm-admin.css.map */
1
  .select2-container {
2
  z-index: 9999999;
3
  }
4
+ .select2-container .select2-selection--single,
5
+ .select2-container .select2-selection--single .select2-selection__rendered,
6
+ .select2-container .select2-selection--single .select2-selection__arrow {
7
+ height: 30px!important;
8
+ line-height: 30px!important;
9
+ }
10
  .wooccm-premium {
11
  opacity: 0.5;
12
  pointer-events: none;
13
+ /* .description {
14
+ &.premium {
15
+ //display: none;
16
+ }
17
+
18
+ &.hidden {
19
+ //display: none;
20
+ }
21
+ }*/
22
  }
23
  .button.fileinput-button {
24
  position: relative;
35
  direction: ltr;
36
  cursor: pointer;
37
  }
38
+ table.wc_gateways > tbody > tr > td select {
39
+ line-height: 1!important;
40
+ }
41
  table.wc_gateways > tbody > tr > td.label {
42
  font-weight: 600;
43
  }
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
+ }
66
+ #wooccm_modal .attachment-info .details,
67
+ #wooccm_modal .attachment-info .settings {
68
  width: 100%;
69
  }
70
+ #wooccm_modal .attachment-info .woocommerce_options_panel label,
71
+ #wooccm_modal .attachment-info .woocommerce_options_panel legend {
72
  width: 75px;
73
  margin: 0 0 0 -90px;
74
  font-weight: 600;
75
  }
76
+ #wooccm_modal .attachment-info .woocommerce_options_panel fieldset.form-field,
77
+ #wooccm_modal .attachment-info .woocommerce_options_panel p.form-field {
78
  padding: 0 20px 0 92px!important;
79
  }
80
+ #wooccm_modal .attachment-info .woocommerce_options_panel input[type=email],
81
+ #wooccm_modal .attachment-info .woocommerce_options_panel input[type=number],
82
+ #wooccm_modal .attachment-info .woocommerce_options_panel input[type=password],
83
+ #wooccm_modal .attachment-info .woocommerce_options_panel input[type=text],
84
+ #wooccm_modal .attachment-info .woocommerce_options_panel select,
85
+ #wooccm_modal .attachment-info .woocommerce_options_panel .select2-container {
86
  width: 100%!important;
87
  }
88
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel {
89
+ width: 100%;
90
+ /* input,
91
+ select,
92
+ textarea {
93
+ margin: 0;
94
+ }*/
95
+ }
96
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .premium {
97
  display: block;
98
  clear: both;
99
  }
100
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .woocommerce-help-tip {
 
 
 
 
 
101
  margin: 0 0 0 0.5em;
102
  }
103
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .select2-container {
104
  width: 50%!important;
105
  line-height: 16px;
106
+ /* span {
107
+ width: auto;
108
+ float: none;
109
+ margin: auto;
110
+ padding: auto;
111
+ }*/
112
+ }
113
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .select2-container .select2-selection--multiple {
114
  line-height: 16px;
115
  min-height: 30px;
116
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
117
  }
118
  @media only screen and (max-width: 1280px) {
119
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .select2-container {
120
  width: 80%!important;
121
  }
122
  }
123
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
124
  margin: 3px 3px 0 0;
125
  }
126
+ #wooccm_modal #woocommerce-product-data .woocommerce_options_panel .select2-container--default.select2-container--focus .select2-selection--multiple {
127
  border-color: #5b9dd9!important;
128
  box-shadow: 0 0 2px rgba(30, 140, 190, 0.8) !important;
129
  outline: 2px solid transparent!important;
208
  line-height: 2em;
209
  text-align: left;
210
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  /*# sourceMappingURL=wooccm-admin.css.map */
assets/backend/css/wooccm-admin.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../less/wooccm-admin.less"],"names":[],"mappings":"AAAA;EACE,gBAAA;;AAGF;EACE,YAAA;EACA,oBAAA;;AAeA,OAAC;EACC,kBAAA;EACA,0BAAA;;AAFF,OAAC,iBAIC;EACE,kBAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;EACA,YAAW,kBAAX;EACA,gBAAA;EACA,cAAA;EACA,eAAA;;AAeI,KAPP,YAEC,QAEE,KACE,KAEG;EACC,gBAAA;;AAQV,KAAC;EACC,YAAA;EACA,gBAAA;;AAFF,KAAC,wBAIC,QACE,KACE;EACE,uBAAA;;AAPR,KAAC,wBAYC,QACE,KACE,KACE,MAAK;EACH,WAAA;;AAhBV,KAAC,wBAYC,QACE,KACE,KAIE,OAAM;EACJ,kBAAA;;AAnBV,KAAC,wBAYC,QACE,KACE,KAOE,MAAK;EACH,aAAA;;AAGF,KAzBP,wBAYC,QACE,KACE,KAWG,KAAM;EACL,WAAA;;AAQZ,gBACE;AADF,gBAEE;EACE,WAAA;;AAHJ,gBAME,2BAA2B;AAN7B,gBAOE,2BAA2B;EACzB,WAAA;EACA,mBAAA;EACA,gBAAA;;AAVJ,gBAaE,2BAA2B,SAAQ;AAbrC,gBAcE,2BAA2B,EAAC;EAC1B,gCAAA;;AAfJ,gBAkBE,2BAA2B,MAAK;AAlBlC,gBAmBE,2BAA2B,MAAK;AAnBlC,gBAoBE,2BAA2B,MAAK;AApBlC,gBAqBE,2BAA2B,MAAK;AArBlC,gBAsBE,2BAA2B;AAtB7B,gBAuBE,2BAA2B;EACz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AAA;EACA,uBAAA;EACA,oBAAA;EACA,qBAAA;EACA,aAAA;EACA,4BAAA;EACA,6BAAA;EACA,8BAAA;EACA,sBAAA;EACA,kBAAA;;AAGF,kCAAkC,mBAAoB,kCAAkC,0CAA0C;EAChI,SAAA;;AAGF,kCAAkC,mBAAmB,iEAAkE,kCAAkC,0CAA0C;EACjM,UAAA;EACA,gBAAA;;AAGF,kCAAkC,mBAAoB,kCAAkC,0CAA0C;EAChI,SAAA;EACA,eAAA;EACA,WAAA;;AAGF,mBAAqC;EAEnC,kCAAkC,mBAAoB;IACpD,yBAAA;IACA,2BAAA;IACA,mBAAA;IACA,8BAAA;IACA,6BAAA;IACA,2BAAA;IACA,mBAAA","file":"wooccm-admin.css"}
1
+ {"version":3,"sources":["../../less/wooccm-admin.less"],"names":[],"mappings":"AAAA;EACE,gBAAA;;AADF,kBAGE;AAHF,kBAIE,2BAA2B;AAJ7B,kBAKE,2BAA2B;EACzB,sBAAA;EACA,2BAAA;;AAIJ;EACE,YAAA;EACA,oBAAA;;;;;;;;;;;AAeA,OAAC;EACC,kBAAA;EACA,0BAAA;;AAFF,OAAC,iBAIC;EACE,kBAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,UAAA;EACA,YAAW,kBAAX;EACA,gBAAA;EACA,cAAA;EACA,eAAA;;AAOJ,KAAC,YAEC,QAEE,KACE,KAEE;EACE,wBAAA;;AAGF,KAXP,YAEC,QAEE,KACE,KAMG;EACC,gBAAA;;AAQV,KAAC;EACC,YAAA;EACA,gBAAA;;AAFF,KAAC,wBAIC,QACE,KACE;EACE,uBAAA;;AAPR,KAAC,wBAYC,QACE,KACE,KACE,MAAK;EACH,WAAA;;AAhBV,KAAC,wBAYC,QACE,KACE,KAIE,OAAM;EACJ,kBAAA;;AAnBV,KAAC,wBAYC,QACE,KACE,KAOE,MAAK;EACH,aAAA;;AAGF,KAzBP,wBAYC,QACE,KACE,KAWG,KAAM;EACL,WAAA;;AAQZ,aAEE;EACE,gBAAA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G,yBAQC,MAAM,GAAE;EACN,eAAA;;AATJ,mBALJ,kCAIE,MACG,yBAYC;EACE,gBAAA;;AAbJ,mBALJ,kCAIE,MACG,yBAgBC,MAAM;EACJ,gBAAA;EACA,YAAA;EACA,gBAAA;EACA,WAAA;EACA,mBAAA;EACA,iBAAA;;AAtBJ,mBALJ,kCAIE,MACG,yBAyBC,MAAK,iBAAkB,GAAE,YAAa;EACpC,gBAAA;;AA1BJ,mBALJ,kCAIE,MACG,yBA6BC,MAAM,GAAE,WAAY;EAClB,gCAAA;;AA9BJ,mBALJ,kCAIE,MACG,yBAiCC,GAAE;EACA,gBAAA;EACA,WAAA;EACA,qBAAA;;AApCJ,mBALJ,kCAIE,MACG,yBAiCC,GAAE,MAKA;EACE,WAAA;EACA,YAAA;EACA,yBAAA;EACA,mBAAA;EACA,WAAA;EACA,kBAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;;AA/CN,mBALJ,kCAIE,MACG,yBAmDC,MAAM,GAAE;AAnDV,mBALJ,kCAIE,MACG,yBAoDG,GAAE;EACF,iBAAA;;AArDJ,mBALJ,kCAIE,MACG,yBAuDC,MAAM;AAvDR,mBALJ,kCAIE,MACG,yBAwDC;EACE,sBAAA;EACA,gBAAA;EACA,kBAAA;EACA,mBAAA;EACA,gCAAA;;AArFV,mBA4FE;EACE,gCAAA;EACA,kBAAA;EACA,mBAAA;EACA,gBAAA;EACA,gBAAA","file":"wooccm-admin.css"}
assets/backend/js/wooccm-admin-field.js CHANGED
@@ -23,8 +23,42 @@
23
  $node.removeClass('processing').unblock();
24
  };
25
 
26
- var Field = Backbone.Model.extend({
27
- defaults: wooccm_field.args
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  });
29
 
30
  var FieldView = Backbone.View.extend({
@@ -38,6 +72,9 @@
38
  'click .media-modal-next': 'edit',
39
  'change .media-modal-change': 'change',
40
  'change .media-modal-parent': 'parent',
 
 
 
41
  'submit .media-modal-form': 'submit',
42
  },
43
  templates: {},
@@ -47,25 +84,28 @@
47
  this.open();
48
  },
49
  init: function () {
50
- this.templates.window = wp.template('wooccm-modal-window');
 
 
 
51
  },
52
  render: function () {
53
 
54
  var modal = this;
55
 
56
- // get active tab from the previous modal
57
- var tab = this.$el.find('ul.wc-tabs li.active a').attr('href');
58
-
59
  modal.$el.html(modal.templates.window(modal.model.attributes));
60
 
61
- _.delay(function () {
 
 
62
 
63
- modal.$el.trigger('wooccm-enhanced-between-dates');
64
- modal.$el.trigger('wooccm-enhanced-options');
65
- modal.$el.trigger('wooccm-enhanced-select');
66
- modal.$el.trigger('wooccm-tab-panels', tab);
67
- modal.$el.trigger('init_tooltips');
68
- }, 100);
 
69
 
70
  },
71
  load: function () {
@@ -137,24 +177,6 @@
137
 
138
  $('body').addClass('modal-open').append(this.$el);
139
  },
140
- /*tab: function (e) {
141
- e.preventDefault();
142
-
143
- var $modal = this.$el,
144
- $tab = $(e.target),
145
- $tabs = $modal.find('ul.wc-tabs'),
146
- $wrap = $modal.find('div.panel-wrap'),
147
- $panel = $wrap.find($tab.attr('href'));
148
-
149
- $tabs.find('li').removeClass('active');
150
-
151
- $tab.parent().addClass('active');
152
-
153
- $wrap.find('div.panel').hide();
154
-
155
- $panel.show();
156
-
157
- },*/
158
  update: function (e) {
159
 
160
  e.preventDefault();
@@ -173,12 +195,20 @@
173
  },
174
  change: function (e) {
175
  e.preventDefault();
176
-
177
  this.update(e);
178
- this.render();
179
  this.enable();
180
 
181
  },
 
 
 
 
 
 
 
 
 
 
182
  // table: function (e) {
183
  // e.preventDefault();
184
  //
@@ -235,7 +265,7 @@
235
  if (response.success) {
236
  modal.model.attributes['parent'] = response.data;
237
  modal.model.changed['parent'] = response.data;
238
- modal.render();
239
  } else {
240
  alert(response.data);
241
  }
@@ -315,13 +345,17 @@
315
  }
316
  });
317
 
 
 
 
 
318
  var FieldModal = Backbone.View.extend({
319
  initialize: function (e) {
320
 
321
  var $button = $(e.target),
322
  field_id = $button.closest('[data-field_id]').data('field_id');
323
 
324
- var model = new Field();
325
 
326
  model.set({
327
  id: field_id
@@ -362,7 +396,6 @@
362
  beforeSend: function () {
363
  },
364
  complete: function () {
365
- //$('table.form-table').trigger('wooccm-panel-reload');
366
  },
367
  error: function () {
368
  alert('Error!');
@@ -412,7 +445,6 @@
412
  beforeSend: function () {
413
  },
414
  complete: function () {
415
- //$('table.form-table').trigger('wooccm-panel-reload');
416
  },
417
  error: function () {
418
  alert('Error!');
23
  $node.removeClass('processing').unblock();
24
  };
25
 
26
+ var FieldViewTabs = Backbone.View.extend({
27
+ templates: {},
28
+ initialize: function () {
29
+ this.templates.window = wp.template('wooccm-modal-tabs');
30
+ },
31
+ render: function () {
32
+ this.$el.html(this.templates.window(this.model.attributes));
33
+ this.$el.trigger('wooccm-tab-panels');
34
+ }
35
+ });
36
+
37
+ var FieldViewPanels = Backbone.View.extend({
38
+ templates: {},
39
+ initialize: function () {
40
+ this.templates.window = wp.template('wooccm-modal-panels');
41
+ },
42
+ render: function () {
43
+ this.$el.html(this.templates.window(this.model.attributes));
44
+ this.$el.trigger('wooccm-enhanced-between-dates');
45
+ this.$el.trigger('wooccm-enhanced-options');
46
+ this.$el.trigger('wooccm-enhanced-select');
47
+ this.$el.trigger('init_tooltips');
48
+
49
+ }
50
+ });
51
+
52
+ var FieldViewInfo = Backbone.View.extend({
53
+ templates: {},
54
+ initialize: function () {
55
+ this.templates.window = wp.template('wooccm-modal-info');
56
+ },
57
+ render: function () {
58
+ this.$el.html(this.templates.window(this.model.attributes));
59
+ this.$el.trigger('wooccm-enhanced-select');
60
+ this.$el.trigger('init_tooltips');
61
+ }
62
  });
63
 
64
  var FieldView = Backbone.View.extend({
72
  'click .media-modal-next': 'edit',
73
  'change .media-modal-change': 'change',
74
  'change .media-modal-parent': 'parent',
75
+ 'change .media-modal-render-tabs': 'renderTabs',
76
+ 'change .media-modal-render-panels': 'renderPanels',
77
+ 'change .media-modal-render-info': 'renderInfo',
78
  'submit .media-modal-form': 'submit',
79
  },
80
  templates: {},
84
  this.open();
85
  },
86
  init: function () {
87
+ this.templates.window = wp.template('wooccm-modal-main');
88
+ },
89
+ assign: function (view, selector) {
90
+ view.setElement(this.$(selector)).render();
91
  },
92
  render: function () {
93
 
94
  var modal = this;
95
 
 
 
 
96
  modal.$el.html(modal.templates.window(modal.model.attributes));
97
 
98
+ this.tabs = new FieldViewTabs({model: modal.model});
99
+ this.panels = new FieldViewPanels({model: modal.model});
100
+ this.info = new FieldViewInfo({model: modal.model});
101
 
102
+ this.assign(this.tabs, '#wooccm-modal-tabs');
103
+ this.assign(this.panels, '#wooccm-modal-panels');
104
+ this.assign(this.info, '#wooccm-modal-info');
105
+
106
+ // _.delay(function () {
107
+ // modal.$el.trigger('wooccm-tab-panels');
108
+ // }, 100);
109
 
110
  },
111
  load: function () {
177
 
178
  $('body').addClass('modal-open').append(this.$el);
179
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  update: function (e) {
181
 
182
  e.preventDefault();
195
  },
196
  change: function (e) {
197
  e.preventDefault();
 
198
  this.update(e);
 
199
  this.enable();
200
 
201
  },
202
+ renderTabs: function () {
203
+ this.tabs.render();
204
+ },
205
+ renderPanels: function () {
206
+ this.panels.render();
207
+ },
208
+ renderInfo: function () {
209
+ this.info.render();
210
+ },
211
+
212
  // table: function (e) {
213
  // e.preventDefault();
214
  //
265
  if (response.success) {
266
  modal.model.attributes['parent'] = response.data;
267
  modal.model.changed['parent'] = response.data;
268
+ modal.renderInfo();
269
  } else {
270
  alert(response.data);
271
  }
345
  }
346
  });
347
 
348
+ var FieldModel = Backbone.Model.extend({
349
+ defaults: wooccm_field.args
350
+ });
351
+
352
  var FieldModal = Backbone.View.extend({
353
  initialize: function (e) {
354
 
355
  var $button = $(e.target),
356
  field_id = $button.closest('[data-field_id]').data('field_id');
357
 
358
+ var model = new FieldModel();
359
 
360
  model.set({
361
  id: field_id
396
  beforeSend: function () {
397
  },
398
  complete: function () {
 
399
  },
400
  error: function () {
401
  alert('Error!');
445
  beforeSend: function () {
446
  },
447
  complete: function () {
 
448
  },
449
  error: function () {
450
  alert('Error!');
assets/backend/js/wooccm-admin-field.min.js CHANGED
@@ -1 +1 @@
1
- (function(e){var g=0,b;var d=function(j){return j.is(".processing")||j.parents(".processing").length};var c=function(j){if(!d(j)){j.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:0.6}})}};var f=function(j){j.removeClass("processing").unblock()};var h=Backbone.Model.extend({defaults:wooccm_field.args});var i=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","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-window")},render:function(){var k=this;var j=this.$el.find("ul.wc-tabs li.active a").attr("href");k.$el.html(k.templates.window(k.model.attributes));_.delay(function(){k.$el.trigger("wooccm-enhanced-between-dates");k.$el.trigger("wooccm-enhanced-options");k.$el.trigger("wooccm-enhanced-select");k.$el.trigger("wooccm-tab-panels",j);k.$el.trigger("init_tooltips")},100)},load:function(){var j=this;if(j.model.attributes.id==undefined){j.render();return}e.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(){},error:function(){alert("Error!")},success:function(k){if(k.success){j.model.set(k.data);j.render()}else{alert(k.data)}}})},edit:function(n){n.preventDefault();var l=this,m=e(n.target),k=parseInt(e(".wc_gateways tr[data-field_id]").length),j=parseInt(l.model.get("order"));g++;if(b){clearTimeout(b)}b=setTimeout(function(){if(m.hasClass("media-modal-next")){j=Math.min(j+g,k)}else{j=Math.max(j-g,1)}l.model.set({id:parseInt(e(".wc_gateways tr[data-field_order="+j+"]").data("field_id"))});g=0;l.load()},300)},open:function(j){this.load();e("body").addClass("modal-open").append(this.$el)},update:function(m){m.preventDefault();var k=e(m.target),j=k.attr("name"),l=k.val();if(m.target.type==="checkbox"){l=k.prop("checked")===true?1:0}this.model.attributes[j]=l;this.model.changed[j]=l},change:function(j){j.preventDefault();this.update(j);this.render();this.enable()},close:function(j){j.preventDefault();this.undelegateEvents();e(document).off("focusin");e("body").removeClass("modal-open");this.remove()},parent:function(m){m.preventDefault();var l=this,k=l.$el.find("#wooccm_modal"),j=k.find(".attachment-details");this.update(m);e.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_load_parent",nonce:wooccm_field.nonce,conditional_parent_key:l.model.attributes.conditional_parent_key},dataType:"json",type:"POST",beforeSend:function(){e(".media-modal-submit").attr("disabled",true);j.addClass("save-waiting")},complete:function(){j.addClass("save-complete");j.removeClass("save-waiting")},error:function(){alert("Error!")},success:function(n){if(n.success){l.model.attributes.parent=n.data;l.model.changed.parent=n.data;l.render()}else{alert(n.data)}}});return false},reload:function(j){if(this.$el.find("#wooccm_modal").hasClass("reload")){location.reload();return}this.remove();return},close:function(j){j.preventDefault();this.undelegateEvents();e(document).off("focusin");e("body").removeClass("modal-open");this.reload(j);return},enable:function(j){e(".media-modal-submit").removeProp("disabled")},submit:function(m){m.preventDefault();var l=this,k=l.$el.find("#wooccm_modal"),j=k.find(".attachment-details");e.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_save_field",nonce:wooccm_field.nonce,field_id:l.model.attributes.id,field_data:e("form",this.$el).serialize()},dataType:"json",type:"POST",beforeSend:function(){e(".media-modal-submit").prop("disabled",true);j.addClass("save-waiting");c(k)},complete:function(){j.addClass("save-complete");j.removeClass("save-waiting");f(k)},error:function(){alert("Error!")},success:function(n){if(n.success){if(l.model.attributes.id==undefined){k.addClass("reload");l.close(m)}l.model.set(n.data)}else{alert(n.data)}}});return false}});var a=Backbone.View.extend({initialize:function(m){var l=e(m.target),k=l.closest("[data-field_id]").data("field_id");var j=new h();j.set({id:k});new i({model:j})},});e("#wooccm_billing_settings_add, #wooccm_shipping_settings_add, #wooccm_additional_settings_add").on("click",function(j){j.preventDefault();new a(j)});e("#wooccm_billing_settings_reset, #wooccm_shipping_settings_reset, #wooccm_additional_settings_reset").on("click",function(k){k.preventDefault();var j=e(k.target);var l=confirm(wooccm_field.message.reset);if(!l){return false}e.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(m){if(m.success){location.reload()}else{alert(m.data)}}});return false});e(".wooccm_billing_settings_edit, .wooccm_shipping_settings_edit, .wooccm_additional_settings_edit").on("click",function(j){j.preventDefault();new a(j)});e(".wooccm_billing_settings_delete, .wooccm_shipping_settings_delete, .wooccm_additional_settings_delete").on("click",function(m){m.preventDefault();var l=e(m.target),k=l.closest("[data-field_id]"),j=k.data("field_id");var n=confirm(wooccm_field.message.remove);if(!n){return false}e.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_delete_field",nonce:wooccm_field.nonce,field_id:j,},dataType:"json",type:"POST",beforeSend:function(){},complete:function(){},error:function(){alert("Error!")},success:function(o){if(o.success){k.remove()}else{alert(o.data)}}});return false});e(document).on("click",".wooccm-field-toggle-attribute",function(m){m.preventDefault();var j=e(this),l=j.closest("tr"),k=j.find(".woocommerce-input-toggle");e.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_toggle_field_attribute",nonce:wooccm_field.nonce,field_attr:e(this).data("field_attr"),field_id:l.data("field_id")},dataType:"json",type:"POST",beforeSend:function(n){k.addClass("woocommerce-input-toggle--loading")},success:function(n){if(true===n.data){k.removeClass("woocommerce-input-toggle--enabled, woocommerce-input-toggle--disabled");k.addClass("woocommerce-input-toggle--enabled");k.removeClass("woocommerce-input-toggle--loading")}else{if(true!==n.data){k.removeClass("woocommerce-input-toggle--enabled, woocommerce-input-toggle--disabled");k.addClass("woocommerce-input-toggle--disabled");k.removeClass("woocommerce-input-toggle--loading")}}}});return false});e(document).on("change",".wooccm-field-change-attribute",function(l){l.preventDefault();var j=e(this),k=j.closest("tr");e.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_change_field_attribute",nonce:wooccm_field.nonce,field_attr:j.data("field_attr"),field_value:j.val(),field_id:k.data("field_id"),},dataType:"json",type:"POST",beforeSend:function(m){j.prop("disabled",true)},success:function(m){console.log(m.data)},complete:function(m){j.prop("disabled",false)},});return false})})(jQuery);
1
+ (function(f){var h=0,b;var e=function(m){return m.is(".processing")||m.parents(".processing").length};var d=function(m){if(!e(m)){m.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:0.6}})}};var g=function(m){m.removeClass("processing").unblock()};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-panels")},render:function(){this.$el.html(this.templates.window(this.model.attributes));this.$el.trigger("wooccm-enhanced-between-dates");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","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(n,m){n.setElement(this.$(m)).render()},render:function(){var m=this;m.$el.html(m.templates.window(m.model.attributes));this.tabs=new c({model:m.model});this.panels=new l({model:m.model});this.info=new k({model:m.model});this.assign(this.tabs,"#wooccm-modal-tabs");this.assign(this.panels,"#wooccm-modal-panels");this.assign(this.info,"#wooccm-modal-info")},load:function(){var m=this;if(m.model.attributes.id==undefined){m.render();return}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(){},error:function(){alert("Error!")},success:function(n){if(n.success){m.model.set(n.data);m.render()}else{alert(n.data)}}})},edit:function(q){q.preventDefault();var o=this,p=f(q.target),n=parseInt(f(".wc_gateways tr[data-field_id]").length),m=parseInt(o.model.get("order"));h++;if(b){clearTimeout(b)}b=setTimeout(function(){if(p.hasClass("media-modal-next")){m=Math.min(m+h,n)}else{m=Math.max(m-h,1)}o.model.set({id:parseInt(f(".wc_gateways tr[data-field_order="+m+"]").data("field_id"))});h=0;o.load()},300)},open:function(m){this.load();f("body").addClass("modal-open").append(this.$el)},update:function(p){p.preventDefault();var n=f(p.target),m=n.attr("name"),o=n.val();if(p.target.type==="checkbox"){o=n.prop("checked")===true?1:0}this.model.attributes[m]=o;this.model.changed[m]=o},change:function(m){m.preventDefault();this.update(m);this.enable()},renderTabs:function(){this.tabs.render()},renderPanels:function(){this.panels.render()},renderInfo:function(){this.info.render()},close:function(m){m.preventDefault();this.undelegateEvents();f(document).off("focusin");f("body").removeClass("modal-open");this.remove()},parent:function(p){p.preventDefault();var o=this,n=o.$el.find("#wooccm_modal"),m=n.find(".attachment-details");this.update(p);f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_load_parent",nonce:wooccm_field.nonce,conditional_parent_key:o.model.attributes.conditional_parent_key},dataType:"json",type:"POST",beforeSend:function(){f(".media-modal-submit").attr("disabled",true);m.addClass("save-waiting")},complete:function(){m.addClass("save-complete");m.removeClass("save-waiting")},error:function(){alert("Error!")},success:function(q){if(q.success){o.model.attributes.parent=q.data;o.model.changed.parent=q.data;o.renderInfo()}else{alert(q.data)}}});return false},reload:function(m){if(this.$el.find("#wooccm_modal").hasClass("reload")){location.reload();return}this.remove();return},close:function(m){m.preventDefault();this.undelegateEvents();f(document).off("focusin");f("body").removeClass("modal-open");this.reload(m);return},enable:function(m){f(".media-modal-submit").removeProp("disabled")},submit:function(p){p.preventDefault();var o=this,n=o.$el.find("#wooccm_modal"),m=n.find(".attachment-details");f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_save_field",nonce:wooccm_field.nonce,field_id:o.model.attributes.id,field_data:f("form",this.$el).serialize()},dataType:"json",type:"POST",beforeSend:function(){f(".media-modal-submit").prop("disabled",true);m.addClass("save-waiting");d(n)},complete:function(){m.addClass("save-complete");m.removeClass("save-waiting");g(n)},error:function(){alert("Error!")},success:function(q){if(q.success){if(o.model.attributes.id==undefined){n.addClass("reload");o.close(p)}o.model.set(q.data)}else{alert(q.data)}}});return false}});var i=Backbone.Model.extend({defaults:wooccm_field.args});var a=Backbone.View.extend({initialize:function(p){var o=f(p.target),n=o.closest("[data-field_id]").data("field_id");var m=new i();m.set({id:n});new j({model:m})},});f("#wooccm_billing_settings_add, #wooccm_shipping_settings_add, #wooccm_additional_settings_add").on("click",function(m){m.preventDefault();new a(m)});f("#wooccm_billing_settings_reset, #wooccm_shipping_settings_reset, #wooccm_additional_settings_reset").on("click",function(n){n.preventDefault();var m=f(n.target);var o=confirm(wooccm_field.message.reset);if(!o){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(p){if(p.success){location.reload()}else{alert(p.data)}}});return false});f(".wooccm_billing_settings_edit, .wooccm_shipping_settings_edit, .wooccm_additional_settings_edit").on("click",function(m){m.preventDefault();new a(m)});f(".wooccm_billing_settings_delete, .wooccm_shipping_settings_delete, .wooccm_additional_settings_delete").on("click",function(p){p.preventDefault();var o=f(p.target),n=o.closest("[data-field_id]"),m=n.data("field_id");var q=confirm(wooccm_field.message.remove);if(!q){return false}f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_delete_field",nonce:wooccm_field.nonce,field_id:m,},dataType:"json",type:"POST",beforeSend:function(){},complete:function(){},error:function(){alert("Error!")},success:function(r){if(r.success){n.remove()}else{alert(r.data)}}});return false});f(document).on("click",".wooccm-field-toggle-attribute",function(p){p.preventDefault();var m=f(this),o=m.closest("tr"),n=m.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:o.data("field_id")},dataType:"json",type:"POST",beforeSend:function(q){n.addClass("woocommerce-input-toggle--loading")},success:function(q){if(true===q.data){n.removeClass("woocommerce-input-toggle--enabled, woocommerce-input-toggle--disabled");n.addClass("woocommerce-input-toggle--enabled");n.removeClass("woocommerce-input-toggle--loading")}else{if(true!==q.data){n.removeClass("woocommerce-input-toggle--enabled, woocommerce-input-toggle--disabled");n.addClass("woocommerce-input-toggle--disabled");n.removeClass("woocommerce-input-toggle--loading")}}}});return false});f(document).on("change",".wooccm-field-change-attribute",function(o){o.preventDefault();var m=f(this),n=m.closest("tr");f.ajax({url:wooccm_field.ajax_url,data:{action:"wooccm_change_field_attribute",nonce:wooccm_field.nonce,field_attr:m.data("field_attr"),field_value:m.val(),field_id:n.data("field_id"),},dataType:"json",type:"POST",beforeSend:function(p){m.prop("disabled",true)},success:function(p){console.log(p.data)},complete:function(p){m.prop("disabled",false)},});return false})})(jQuery);
includes/view/backend/pages/billing.php CHANGED
@@ -6,6 +6,4 @@
6
  </div>
7
  <?php include_once( 'parts/actions.php' ); ?>
8
  <?php include_once( 'parts/loop.php' ); ?>
9
- <script type="text/html" id='tmpl-wooccm-modal-window'>
10
- <?php include_once( 'modals/modal-field.php' ); ?>
11
- </script>
6
  </div>
7
  <?php include_once( 'parts/actions.php' ); ?>
8
  <?php include_once( 'parts/loop.php' ); ?>
9
+ <?php include_once( 'modals/field.php' ); ?>
 
 
includes/view/backend/pages/modals/field.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <script type="text/html" id='tmpl-wooccm-modal-main'>
2
+ <?php include_once( 'parts/main.php' ); ?>
3
+ </script>
4
+ <script type="text/html" id='tmpl-wooccm-modal-tabs'>
5
+ <?php include_once( 'parts/tabs.php' ); ?>
6
+ </script>
7
+ <script type="text/html" id='tmpl-wooccm-modal-panels'>
8
+ <?php include_once( 'parts/panel-general.php' ); ?>
9
+ <# if ( _.contains(<?php echo json_encode(array('select', 'multiselect')); ?>, data.type)) { #>
10
+ <?php include_once( 'parts/panel-select2.php' ); ?>
11
+ <# } #>
12
+ <# if ( _.contains(<?php echo json_encode($option); ?>, data.type)) { #>
13
+ <?php include_once( 'parts/panel-options.php' ); ?>
14
+ <# } #>
15
+ <?php include_once( 'parts/panel-display.php' ); ?>
16
+ <# if ( !_.contains(<?php echo json_encode(array_merge($option, $template)); ?>, data.type)) { #>
17
+ <?php include_once( 'parts/panel-price.php' ); ?>
18
+ <# } #>
19
+ <# if (data.type == 'date') { #>
20
+ <?php include_once( 'parts/panel-datepicker.php' ); ?>
21
+ <# } #>
22
+ <# if (data.type == 'time') { #>
23
+ <?php include_once( 'parts/panel-timepicker.php' ); ?>
24
+ <# } #>
25
+ <?php include_once( 'parts/panel-admin.php' ); ?>
26
+ </script>
27
+ <script type="text/html" id='tmpl-wooccm-modal-info'>
28
+ <?php include_once( 'parts/info.php' ); ?>
29
+ </script>
includes/view/backend/pages/modals/parts/{field-info.php → info.php} RENAMED
@@ -22,7 +22,7 @@
22
  <div class="settings">
23
  <p class="form-field">
24
  <label><?php esc_html_e('Parent', 'woocommerce-checkout-manager'); ?></label>
25
- <select class="media-modal-parent wooccm-enhanced-select" name="conditional_parent_key" data-placeholder="<?php esc_attr_e('Select parent field&hellip;', 'woocommerce-checkout-manager'); ?>" data-allow_clear="true">
26
  <option <# if (data.conditional_parent_key == '') { #>selected="selected"<# } #> value=""></option>
27
  <?php foreach ($fields as $field_id => $field) : ?>
28
  <?php if (in_array($field['type'], $conditionals)): ?>
@@ -37,7 +37,11 @@
37
  </div>
38
  <div class="settings">
39
  <p class="form-field">
 
 
 
40
  <label><?php esc_html_e('Value', 'woocommerce-checkout-manager'); ?></label>
 
41
  <# if ( data.parent != undefined && _.contains(<?php echo json_encode($option); ?>, data.parent.type) && _.isObject(data.parent.options)) { #>
42
  <select class="wooccm-enhanced-select" name="conditional_parent_value">
43
  <# _.each(data.parent.options, function (option, index) { #>
22
  <div class="settings">
23
  <p class="form-field">
24
  <label><?php esc_html_e('Parent', 'woocommerce-checkout-manager'); ?></label>
25
+ <select class="media-modal-parent media-modal-render-info wooccm-enhanced-select" name="conditional_parent_key" data-placeholder="<?php esc_attr_e('Select parent field&hellip;', 'woocommerce-checkout-manager'); ?>" data-allow_clear="false">
26
  <option <# if (data.conditional_parent_key == '') { #>selected="selected"<# } #> value=""></option>
27
  <?php foreach ($fields as $field_id => $field) : ?>
28
  <?php if (in_array($field['type'], $conditionals)): ?>
37
  </div>
38
  <div class="settings">
39
  <p class="form-field">
40
+ <# if( data.parent != undefined && data.parent.label != '' ) { #>
41
+ <label>{{data.parent.label}}</label>
42
+ <# } else { #>
43
  <label><?php esc_html_e('Value', 'woocommerce-checkout-manager'); ?></label>
44
+ <# } #>
45
  <# if ( data.parent != undefined && _.contains(<?php echo json_encode($option); ?>, data.parent.type) && _.isObject(data.parent.options)) { #>
46
  <select class="wooccm-enhanced-select" name="conditional_parent_value">
47
  <# _.each(data.parent.options, function (option, index) { #>
includes/view/backend/pages/modals/{modal-field.php → parts/main.php} RENAMED
@@ -18,34 +18,17 @@
18
  </div>
19
  <div class="media-frame-content" style="bottom:61px;">
20
  <div class="attachment-details">
21
- <div class="attachment-media-view landscape" style="overflow: hidden;">
22
- <div id="woocommerce-product-data">
23
- <div class="panel-wrap product_data" style="overflow:visible;">
24
- <?php include_once( 'parts/field-tabs.php' ); ?>
25
- <?php include_once( 'parts/panel-general.php' ); ?>
26
- <# if ( _.contains(<?php echo json_encode(array('select', 'multiselect')); ?>, data.type)) { #>
27
- <?php include_once( 'parts/panel-select2.php' ); ?>
28
- <# } #>
29
- <# if ( _.contains(<?php echo json_encode($option); ?>, data.type)) { #>
30
- <?php include_once( 'parts/panel-options.php' ); ?>
31
- <# } #>
32
- <?php include_once( 'parts/panel-display.php' ); ?>
33
- <# if ( !_.contains(<?php echo json_encode(array_merge($option, $template)); ?>, data.type)) { #>
34
- <?php include_once( 'parts/panel-price.php' ); ?>
35
- <# } #>
36
- <# if (data.type == 'date') { #>
37
- <?php include_once( 'parts/panel-datepicker.php' ); ?>
38
- <# } #>
39
- <# if (data.type == 'time') { #>
40
- <?php include_once( 'parts/panel-timepicker.php' ); ?>
41
- <# } #>
42
- <?php include_once('parts/panel-admin.php' ); ?>
43
- <div class="clear"></div>
44
  </div>
45
  </div>
46
  </div>
47
- <div class="attachment-info">
48
- <?php include_once('parts/field-info.php'); ?>
49
  </div>
50
  </div>
51
  </div>
18
  </div>
19
  <div class="media-frame-content" style="bottom:61px;">
20
  <div class="attachment-details">
21
+ <div class="attachment-media-view landscape">
22
+ <div id="woocommerce-product-data" style="height:100%;">
23
+ <div class="panel-wrap product_data" style="height:100%;">
24
+ <div id="wooccm-modal-tabs">
25
+ </div>
26
+ <div id="wooccm-modal-panels" style="height: 100%;overflow-x: hidden;">
27
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  </div>
29
  </div>
30
  </div>
31
+ <div id="wooccm-modal-info" class="attachment-info">
 
32
  </div>
33
  </div>
34
  </div>
includes/view/backend/pages/modals/parts/panel-general.php CHANGED
@@ -1,4 +1,4 @@
1
- <div id="tab_panel_general" class="panel woocommerce_options_panel" style="display: none;">
2
  <div class="options_group">
3
  <p class="form-field">
4
  <label><?php esc_html_e('Name', 'woocommerce-checkout-manager'); ?></label>
@@ -17,7 +17,7 @@
17
  <# if ( _.contains(<?php echo json_encode($defaults); ?>, data.name)) { #>
18
  <input class="short" type="text" name="type" value="{{data.type}}" readonly="readonly">
19
  <# } else { #>
20
- <select class="media-modal-change wooccm-enhanced-select" name="type">
21
  <?php if ($types): ?>
22
  <?php foreach ($types as $type => $name) : ?>
23
  <option <# if ( data.type == '<?php echo esc_attr($type); ?>' ) { #>selected="selected"<# } #> value="<?php echo esc_attr($type); ?>"><?php echo esc_html($name); ?></option>
1
+ <div id="tab_panel_general" class="panel woocommerce_options_panel">
2
  <div class="options_group">
3
  <p class="form-field">
4
  <label><?php esc_html_e('Name', 'woocommerce-checkout-manager'); ?></label>
17
  <# if ( _.contains(<?php echo json_encode($defaults); ?>, data.name)) { #>
18
  <input class="short" type="text" name="type" value="{{data.type}}" readonly="readonly">
19
  <# } else { #>
20
+ <select class="media-modal-change media-modal-render-panels media-modal-render-tabs wooccm-enhanced-select" name="type">
21
  <?php if ($types): ?>
22
  <?php foreach ($types as $type => $name) : ?>
23
  <option <# if ( data.type == '<?php echo esc_attr($type); ?>' ) { #>selected="selected"<# } #> value="<?php echo esc_attr($type); ?>"><?php echo esc_html($name); ?></option>
includes/view/backend/pages/modals/parts/{field-tabs.php → tabs.php} RENAMED
@@ -2,16 +2,16 @@
2
  <li class="general_options active">
3
  <a href="#tab_panel_general"><span><?php esc_html_e('General', 'woocommerce-checkout-manager'); ?></span></a>
4
  </li>
 
 
 
 
 
5
  <# if ( _.contains(<?php echo json_encode(array('select', 'multiselect')); ?>, data.type)) { #>
6
  <li class="price_options">
7
  <a href="#tab_panel_select2"><span><?php esc_html_e('Select2', 'woocommerce-checkout-manager'); ?></span></a>
8
  </li>
9
  <# } #>
10
- <# if ( _.contains(<?php echo json_encode($option); ?>, data.type)) { #>
11
- <li class="options_options active">
12
- <a href="#tab_panel_options"><span><?php esc_html_e('Options', 'woocommerce-checkout-manager'); ?></span></a>
13
- </li>
14
- <# } #>
15
  <li class="display_options">
16
  <a href="#tab_panel_display"><span><?php esc_html_e('Display', 'woocommerce-checkout-manager'); ?></span></a>
17
  </li>
2
  <li class="general_options active">
3
  <a href="#tab_panel_general"><span><?php esc_html_e('General', 'woocommerce-checkout-manager'); ?></span></a>
4
  </li>
5
+ <# if ( _.contains(<?php echo json_encode($option); ?>, data.type)) { #>
6
+ <li class="options_options">
7
+ <a href="#tab_panel_options"><span><?php esc_html_e('Options', 'woocommerce-checkout-manager'); ?></span></a>
8
+ </li>
9
+ <# } #>
10
  <# if ( _.contains(<?php echo json_encode(array('select', 'multiselect')); ?>, data.type)) { #>
11
  <li class="price_options">
12
  <a href="#tab_panel_select2"><span><?php esc_html_e('Select2', 'woocommerce-checkout-manager'); ?></span></a>
13
  </li>
14
  <# } #>
 
 
 
 
 
15
  <li class="display_options">
16
  <a href="#tab_panel_display"><span><?php esc_html_e('Display', 'woocommerce-checkout-manager'); ?></span></a>
17
  </li>
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.7.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -99,6 +99,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
99
 
100
  == Changelog ==
101
 
 
 
 
102
  = 4.7.7 =
103
  * Fix: datepicker
104
 
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.7.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
99
 
100
  == Changelog ==
101
 
102
+ = 4.7.8 =
103
+ * Fix: small CSS issues
104
+
105
  = 4.7.7 =
106
  * Fix: datepicker
107
 
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.7.7
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.7.7');
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.7.8
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.7.8');
21
  }
22
  if (!defined('WOOCCM_PLUGIN_FILE')) {
23
  define('WOOCCM_PLUGIN_FILE', __FILE__);