Version Description
- Fixed: PHP 7.3 warning for incorrect use of continue (thanks @ceyar)
- Changed: Adjusted some Admin styling to the WordPress Admin default
Download this release
Release Info
Developer | visser |
Plugin | WooCommerce Checkout Manager |
Version | 4.2.6 |
Comparing to | |
See all releases |
Code changes from version 4.2.5 to 4.2.6
- includes/checkout-additional.php +2 -2
- includes/classes/main.php +1 -1
- includes/pickers/css/backend_css.css +62 -29
- includes/template.php +24 -9
- includes/templates/admin/woocheckout-additional-clone.php +2 -1
- includes/templates/admin/woocheckout-billing-clone.php +2 -1
- includes/templates/admin/woocheckout-shipping-clone.php +3 -2
- includes/templates/functions/add_functions.php +3 -3
- includes/templates/functions/billing_functions.php +3 -3
- includes/templates/functions/shipping_functions.php +3 -3
- readme.txt +6 -2
- woocommerce-checkout-manager.php +2 -2
includes/checkout-additional.php
CHANGED
@@ -135,9 +135,9 @@ function wooccm_checkout_additional_fields( $checkout ) {
|
|
135 |
|
136 |
// Mulitple checkbox field
|
137 |
case 'multicheckbox':
|
138 |
-
|
139 |
if( empty( $btn['option_array'] ) )
|
140 |
-
continue;
|
141 |
woocommerce_form_field( $btn['cow'], array(
|
142 |
'type' => 'multicheckbox',
|
143 |
'class' => array( $btn['position'].' '.$btn['conditional_tie'].' '.$btn['extra_class'] ),
|
135 |
|
136 |
// Mulitple checkbox field
|
137 |
case 'multicheckbox':
|
138 |
+
// Check if Multi-checkbox has options assigned to it
|
139 |
if( empty( $btn['option_array'] ) )
|
140 |
+
continue 2;
|
141 |
woocommerce_form_field( $btn['cow'], array(
|
142 |
'type' => 'multicheckbox',
|
143 |
'class' => array( $btn['position'].' '.$btn['conditional_tie'].' '.$btn['extra_class'] ),
|
includes/classes/main.php
CHANGED
@@ -719,7 +719,7 @@ function wooccm_order_notes( $fields = array() ) {
|
|
719 |
$fields['order']['order_comments']['placeholder'] = $options['checkness']['notesplaceholder'];
|
720 |
}
|
721 |
if( !empty( $options['checkness']['notesenable'] ) ) {
|
722 |
-
unset($fields['order']['order_comments']);
|
723 |
}
|
724 |
|
725 |
return $fields;
|
719 |
$fields['order']['order_comments']['placeholder'] = $options['checkness']['notesplaceholder'];
|
720 |
}
|
721 |
if( !empty( $options['checkness']['notesenable'] ) ) {
|
722 |
+
unset( $fields['order']['order_comments'] );
|
723 |
}
|
724 |
|
725 |
return $fields;
|
includes/pickers/css/backend_css.css
CHANGED
@@ -7,9 +7,6 @@
|
|
7 |
.button.button-hero {
|
8 |
padding: 0px 16px;
|
9 |
}
|
10 |
-
input[type=text] {
|
11 |
-
border: 1px solid #555;
|
12 |
-
}
|
13 |
td.wccs-remove {
|
14 |
text-align: center;
|
15 |
}
|
@@ -20,7 +17,9 @@ select[readonly] {
|
|
20 |
background-color: #eee;
|
21 |
color: #333;
|
22 |
}
|
23 |
-
a.billing-wccs-remove-button,
|
|
|
|
|
24 |
font-size: 22px;
|
25 |
text-align: center;
|
26 |
vertical-align: middle;
|
@@ -46,7 +45,9 @@ a.billing-wccs-remove-button, a.shipping-wccs-remove-button, a.wccs-remove-butto
|
|
46 |
#main-nav-left li.current {
|
47 |
margin-right: 0;
|
48 |
}
|
49 |
-
#main-nav-left li a,
|
|
|
|
|
50 |
display: block;
|
51 |
padding: 10px 10px 10px 10px;
|
52 |
background-repeat: no-repeat;
|
@@ -69,15 +70,19 @@ a.billing-wccs-remove-button, a.shipping-wccs-remove-button, a.wccs-remove-butto
|
|
69 |
#content-nav-right .option.allow {
|
70 |
border-bottom: 0;
|
71 |
}
|
72 |
-
#content-nav-right .option input,
|
|
|
|
|
73 |
margin-bottom: 9px;
|
|
|
74 |
background-color: #f1f1f1;
|
75 |
border: 1px solid;
|
76 |
border-color: #ccc #e6e6e6 #e6e6e6 #ccc;
|
77 |
-
width: 340px;
|
78 |
padding: 4px;
|
|
|
|
|
79 |
font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
|
80 |
-
font-size:
|
81 |
}
|
82 |
#content-nav-right .option .full-width {
|
83 |
width: 100%;
|
@@ -104,8 +109,9 @@ a.billing-wccs-remove-button, a.shipping-wccs-remove-button, a.wccs-remove-butto
|
|
104 |
margin-right: 14px;
|
105 |
}
|
106 |
.info-of {
|
107 |
-
color: #
|
108 |
-
font-size:
|
|
|
109 |
margin-top: -5px;
|
110 |
}
|
111 |
#content-nav-right.general-vibe {
|
@@ -143,11 +149,15 @@ th.wccm_title {
|
|
143 |
table.widefat.general-semi thead:first-child {
|
144 |
border-left: 5px solid #278ab7;
|
145 |
}
|
146 |
-
th.hide_stuff_color.daoo,
|
|
|
|
|
147 |
background: #38B3E4;
|
148 |
cursor: pointer;
|
149 |
}
|
150 |
-
.hide_stuff_color.daoo.current_opener,
|
|
|
|
|
151 |
background: #FF2876;
|
152 |
color: #fff;
|
153 |
}
|
@@ -204,21 +214,29 @@ span.heading_smalla {
|
|
204 |
display:block;
|
205 |
}
|
206 |
|
207 |
-
td.shipping-wccs-order.ui-sortable-handle,
|
|
|
|
|
208 |
width: 3%;
|
209 |
color: #aaa;
|
210 |
text-align: center;
|
211 |
vertical-align: middle;
|
212 |
}
|
213 |
|
214 |
-
td.wccs-remove a:hover,
|
|
|
|
|
215 |
color:red;
|
216 |
}
|
217 |
-
td.wccs-remove a,
|
|
|
|
|
218 |
font-size: 20px;
|
219 |
font-weight: 700;
|
220 |
}
|
221 |
-
.wccs-clone,
|
|
|
|
|
222 |
display:none;
|
223 |
}
|
224 |
#floatright_set .widefat input {
|
@@ -227,10 +245,14 @@ td.wccs-remove a, td.billing-wccs-remove a. td.shipping-wccs-remove a {
|
|
227 |
.wccs_replace {
|
228 |
width: 20%;
|
229 |
}
|
230 |
-
td.wccs-order,
|
|
|
|
|
231 |
cursor:move;
|
232 |
}
|
233 |
-
.wccs-table > tbody > tr > td,
|
|
|
|
|
234 |
background: #fff;
|
235 |
border: none;
|
236 |
padding: 8px;
|
@@ -243,17 +265,25 @@ table.widefat {
|
|
243 |
background: #FCFCFC;
|
244 |
}
|
245 |
|
246 |
-
.wccs-table > tbody > tr:last-child td,
|
|
|
|
|
247 |
border-bottom: 0 none;
|
248 |
}
|
249 |
-
.wccs-table > tbody > tr td:last-child,
|
|
|
|
|
250 |
border-right: 0 none;
|
251 |
}
|
252 |
-
.wccs-table > thead > tr > th,
|
|
|
|
|
253 |
border: none;
|
254 |
text-align: center;
|
255 |
}
|
256 |
-
.wccs-table > thead > tr > th:last-child,
|
|
|
|
|
257 |
border-right: 0 none;
|
258 |
}
|
259 |
|
@@ -269,14 +299,20 @@ table.widefat {
|
|
269 |
text-shadow: #fff 0 1px 0;
|
270 |
}
|
271 |
|
272 |
-
.wccs-table .wccs-remove,
|
|
|
|
|
273 |
width: 16px;
|
274 |
vertical-align: middle;
|
275 |
}
|
276 |
-
.wccs-table input[type="text"],
|
|
|
|
|
277 |
width: 100%;
|
278 |
}
|
279 |
-
.wccs-table tr td.more_toggler1c,
|
|
|
|
|
280 |
cursor: pointer;
|
281 |
}
|
282 |
|
@@ -314,7 +350,6 @@ div#star-five img {
|
|
314 |
}
|
315 |
|
316 |
@media screen and (max-width: 680px) {
|
317 |
-
|
318 |
#main-nav-left {
|
319 |
width: 24%;
|
320 |
min-width:135px;
|
@@ -322,10 +357,9 @@ div#star-five img {
|
|
322 |
#content-nav-right {
|
323 |
width: 70%;
|
324 |
}
|
325 |
-
|
326 |
}
|
327 |
-
@media screen and (min-width: 681px) {
|
328 |
|
|
|
329 |
#main-nav-left {
|
330 |
width: 16%;
|
331 |
min-width:135px;
|
@@ -333,5 +367,4 @@ div#star-five img {
|
|
333 |
#content-nav-right {
|
334 |
width: 76%;
|
335 |
}
|
336 |
-
|
337 |
}
|
7 |
.button.button-hero {
|
8 |
padding: 0px 16px;
|
9 |
}
|
|
|
|
|
|
|
10 |
td.wccs-remove {
|
11 |
text-align: center;
|
12 |
}
|
17 |
background-color: #eee;
|
18 |
color: #333;
|
19 |
}
|
20 |
+
a.billing-wccs-remove-button,
|
21 |
+
a.shipping-wccs-remove-button,
|
22 |
+
a.wccs-remove-button {
|
23 |
font-size: 22px;
|
24 |
text-align: center;
|
25 |
vertical-align: middle;
|
45 |
#main-nav-left li.current {
|
46 |
margin-right: 0;
|
47 |
}
|
48 |
+
#main-nav-left li a,
|
49 |
+
#main-nav-left ul li a:link,
|
50 |
+
#main-nav-left ul li a:visited {
|
51 |
display: block;
|
52 |
padding: 10px 10px 10px 10px;
|
53 |
background-repeat: no-repeat;
|
70 |
#content-nav-right .option.allow {
|
71 |
border-bottom: 0;
|
72 |
}
|
73 |
+
#content-nav-right .option input,
|
74 |
+
#content-nav-right .option select,
|
75 |
+
#content-nav-right .option textarea {
|
76 |
margin-bottom: 9px;
|
77 |
+
/*
|
78 |
background-color: #f1f1f1;
|
79 |
border: 1px solid;
|
80 |
border-color: #ccc #e6e6e6 #e6e6e6 #ccc;
|
|
|
81 |
padding: 4px;
|
82 |
+
*/
|
83 |
+
width: 340px;
|
84 |
font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, sans-serif;
|
85 |
+
font-size: inherit;
|
86 |
}
|
87 |
#content-nav-right .option .full-width {
|
88 |
width: 100%;
|
109 |
margin-right: 14px;
|
110 |
}
|
111 |
.info-of {
|
112 |
+
color: #666;
|
113 |
+
font-size: 12px;
|
114 |
+
font-weight: 600;
|
115 |
margin-top: -5px;
|
116 |
}
|
117 |
#content-nav-right.general-vibe {
|
149 |
table.widefat.general-semi thead:first-child {
|
150 |
border-left: 5px solid #278ab7;
|
151 |
}
|
152 |
+
th.hide_stuff_color.daoo,
|
153 |
+
th.add_amount,
|
154 |
+
th.apply_tick {
|
155 |
background: #38B3E4;
|
156 |
cursor: pointer;
|
157 |
}
|
158 |
+
.hide_stuff_color.daoo.current_opener,
|
159 |
+
th.add_amount.current_opener,
|
160 |
+
th.apply_tick.current_opener {
|
161 |
background: #FF2876;
|
162 |
color: #fff;
|
163 |
}
|
214 |
display:block;
|
215 |
}
|
216 |
|
217 |
+
td.shipping-wccs-order.ui-sortable-handle,
|
218 |
+
td.billing-wccs-order.ui-sortable-handle,
|
219 |
+
td.wccs-order.ui-sortable-handle {
|
220 |
width: 3%;
|
221 |
color: #aaa;
|
222 |
text-align: center;
|
223 |
vertical-align: middle;
|
224 |
}
|
225 |
|
226 |
+
td.wccs-remove a:hover,
|
227 |
+
td.billing-wccs-remove a:hover,
|
228 |
+
td.shipping-wccs-remove a:hover {
|
229 |
color:red;
|
230 |
}
|
231 |
+
td.wccs-remove a,
|
232 |
+
td.billing-wccs-remove a,
|
233 |
+
td.shipping-wccs-remove a {
|
234 |
font-size: 20px;
|
235 |
font-weight: 700;
|
236 |
}
|
237 |
+
.wccs-clone,
|
238 |
+
.billing-wccs-clone,
|
239 |
+
.shipping-wccs-clone {
|
240 |
display:none;
|
241 |
}
|
242 |
#floatright_set .widefat input {
|
245 |
.wccs_replace {
|
246 |
width: 20%;
|
247 |
}
|
248 |
+
td.wccs-order,
|
249 |
+
td.billing-wccs-order,
|
250 |
+
td.shipping-wccs-order {
|
251 |
cursor:move;
|
252 |
}
|
253 |
+
.wccs-table > tbody > tr > td,
|
254 |
+
.billing-wccs-table > tbody > tr > td,
|
255 |
+
.shipping-wccs-table > tbody > tr > td {
|
256 |
background: #fff;
|
257 |
border: none;
|
258 |
padding: 8px;
|
265 |
background: #FCFCFC;
|
266 |
}
|
267 |
|
268 |
+
.wccs-table > tbody > tr:last-child td,
|
269 |
+
.billing-wccs-table > tbody > tr:last-child td,
|
270 |
+
.shipping-wccs-table > tbody > tr:last-child td {
|
271 |
border-bottom: 0 none;
|
272 |
}
|
273 |
+
.wccs-table > tbody > tr td:last-child,
|
274 |
+
.billing-wccs-table > tbody > tr td:last-child,
|
275 |
+
.shipping-wccs-table > tbody > tr td:last-child {
|
276 |
border-right: 0 none;
|
277 |
}
|
278 |
+
.wccs-table > thead > tr > th,
|
279 |
+
.billing-wccs-table > thead > tr > th,
|
280 |
+
.shipping-wccs-table > thead > tr > th {
|
281 |
border: none;
|
282 |
text-align: center;
|
283 |
}
|
284 |
+
.wccs-table > thead > tr > th:last-child,
|
285 |
+
.billing-wccs-table > thead > tr > th:last-child ,
|
286 |
+
.shipping-wccs-table > thead > tr > th:last-child {
|
287 |
border-right: 0 none;
|
288 |
}
|
289 |
|
299 |
text-shadow: #fff 0 1px 0;
|
300 |
}
|
301 |
|
302 |
+
.wccs-table .wccs-remove,
|
303 |
+
.billing-wccs-table .wccs-remove,
|
304 |
+
.shipping-wccs-table .wccs-remove {
|
305 |
width: 16px;
|
306 |
vertical-align: middle;
|
307 |
}
|
308 |
+
.wccs-table input[type="text"],
|
309 |
+
.billing-wccs-table input[type="text"],
|
310 |
+
.shipping-wccs-table input[type="text"] {
|
311 |
width: 100%;
|
312 |
}
|
313 |
+
.wccs-table tr td.more_toggler1c,
|
314 |
+
.billing-wccs-table tr td.more_toggler1c,
|
315 |
+
.shipping-wccs-table tr td.more_toggler1c {
|
316 |
cursor: pointer;
|
317 |
}
|
318 |
|
350 |
}
|
351 |
|
352 |
@media screen and (max-width: 680px) {
|
|
|
353 |
#main-nav-left {
|
354 |
width: 24%;
|
355 |
min-width:135px;
|
357 |
#content-nav-right {
|
358 |
width: 70%;
|
359 |
}
|
|
|
360 |
}
|
|
|
361 |
|
362 |
+
@media screen and (min-width: 681px) {
|
363 |
#main-nav-left {
|
364 |
width: 16%;
|
365 |
min-width:135px;
|
367 |
#content-nav-right {
|
368 |
width: 76%;
|
369 |
}
|
|
|
370 |
}
|
includes/template.php
CHANGED
@@ -280,8 +280,15 @@ function wooccm_order_received_checkout_details( $order ) {
|
|
280 |
);
|
281 |
$inc = 3;
|
282 |
|
|
|
|
|
|
|
283 |
// Check if above WooCommerce 2.3+
|
284 |
-
if(
|
|
|
|
|
|
|
|
|
285 |
|
286 |
foreach( $names as $name ) {
|
287 |
|
@@ -331,8 +338,8 @@ function wooccm_order_received_checkout_details( $order ) {
|
|
331 |
$strings = maybe_unserialize( $value );
|
332 |
echo '
|
333 |
<tr>
|
334 |
-
<th>'.wooccm_wpml_string($btn['label']).':</th>
|
335 |
-
<td data-title="' .wooccm_wpml_string($btn['label']). '">';
|
336 |
if( !empty( $strings ) ) {
|
337 |
if( is_array( $strings ) ) {
|
338 |
foreach( $strings as $key ) {
|
@@ -385,8 +392,8 @@ function wooccm_order_received_checkout_details( $order ) {
|
|
385 |
$value = __( 'No', 'woocommerce-checkout-manager' );
|
386 |
echo '
|
387 |
<tr>
|
388 |
-
<th>'.wooccm_wpml_string($btn['label']).':</th>
|
389 |
-
<td data-title="' .wooccm_wpml_string($btn['label']). '">'.nl2br( $value ).'</td>
|
390 |
</tr>';
|
391 |
} elseif(
|
392 |
!empty( $btn['label'] ) &&
|
@@ -414,12 +421,12 @@ function wooccm_order_received_checkout_details( $order ) {
|
|
414 |
$strings = maybe_unserialize( $value );
|
415 |
echo '
|
416 |
<tr>
|
417 |
-
<th>'.wooccm_wpml_string($btn['label']).':</th>
|
418 |
-
<td data-title="' .wooccm_wpml_string($btn['label']). '">';
|
419 |
if( !empty( $strings ) ) {
|
420 |
if( is_array( $strings ) ) {
|
421 |
foreach( $strings as $key ) {
|
422 |
-
echo wooccm_wpml_string($key) . ', ';
|
423 |
}
|
424 |
} else {
|
425 |
echo $strings;
|
@@ -436,16 +443,22 @@ function wooccm_order_received_checkout_details( $order ) {
|
|
436 |
echo '
|
437 |
<tr>
|
438 |
<th>'.wooccm_wpml_string( trim( $btn['label'] ) ).':</th>
|
439 |
-
<td data-title="' .wooccm_wpml_string( trim( $btn['label'] ) ). '">'.$info[0].'</td>
|
440 |
</tr>';
|
441 |
}
|
442 |
|
443 |
}
|
444 |
}
|
445 |
|
|
|
|
|
|
|
|
|
|
|
446 |
} else {
|
447 |
|
448 |
// @mod - Legacy support below WooCommerce 2.3
|
|
|
449 |
|
450 |
foreach( $names as $name ) {
|
451 |
|
@@ -585,6 +598,8 @@ function wooccm_order_received_checkout_details( $order ) {
|
|
585 |
|
586 |
}
|
587 |
}
|
|
|
|
|
588 |
|
589 |
}
|
590 |
|
280 |
);
|
281 |
$inc = 3;
|
282 |
|
283 |
+
$show_table = apply_filters( 'wooccm_order_received_checkout_show_table', ( defined( 'WOOCOMMERCE_VERSION' ) && version_compare( WOOCOMMERCE_VERSION, '2.3', '>=' ) ) );
|
284 |
+
$print_table = apply_filters( 'wooccm_order_received_checkout_print_table', true );
|
285 |
+
|
286 |
// Check if above WooCommerce 2.3+
|
287 |
+
if( $show_table ) {
|
288 |
+
|
289 |
+
if( $print_table ) {
|
290 |
+
echo '<table class="wccs_custom_fields shop_table">';
|
291 |
+
}
|
292 |
|
293 |
foreach( $names as $name ) {
|
294 |
|
338 |
$strings = maybe_unserialize( $value );
|
339 |
echo '
|
340 |
<tr>
|
341 |
+
<th>'.wooccm_wpml_string( $btn['label'] ).':</th>
|
342 |
+
<td data-title="' . wooccm_wpml_string( $btn['label'] ) . '">';
|
343 |
if( !empty( $strings ) ) {
|
344 |
if( is_array( $strings ) ) {
|
345 |
foreach( $strings as $key ) {
|
392 |
$value = __( 'No', 'woocommerce-checkout-manager' );
|
393 |
echo '
|
394 |
<tr>
|
395 |
+
<th>'.wooccm_wpml_string( $btn['label'] ).':</th>
|
396 |
+
<td data-title="' . wooccm_wpml_string( $btn['label'] ) . '">'.nl2br( $value ).'</td>
|
397 |
</tr>';
|
398 |
} elseif(
|
399 |
!empty( $btn['label'] ) &&
|
421 |
$strings = maybe_unserialize( $value );
|
422 |
echo '
|
423 |
<tr>
|
424 |
+
<th>'.wooccm_wpml_string( $btn['label'] ).':</th>
|
425 |
+
<td data-title="' . wooccm_wpml_string( $btn['label'] ) . '">';
|
426 |
if( !empty( $strings ) ) {
|
427 |
if( is_array( $strings ) ) {
|
428 |
foreach( $strings as $key ) {
|
429 |
+
echo wooccm_wpml_string( $key ) . ', ';
|
430 |
}
|
431 |
} else {
|
432 |
echo $strings;
|
443 |
echo '
|
444 |
<tr>
|
445 |
<th>'.wooccm_wpml_string( trim( $btn['label'] ) ).':</th>
|
446 |
+
<td data-title="' . wooccm_wpml_string( trim( $btn['label'] ) ) . '">'.$info[0].'</td>
|
447 |
</tr>';
|
448 |
}
|
449 |
|
450 |
}
|
451 |
}
|
452 |
|
453 |
+
if( $print_table ) {
|
454 |
+
echo '</table>';
|
455 |
+
echo '<!-- .wccs_custom_fields -->';
|
456 |
+
}
|
457 |
+
|
458 |
} else {
|
459 |
|
460 |
// @mod - Legacy support below WooCommerce 2.3
|
461 |
+
echo '<div class="wccs_custom_fields">';
|
462 |
|
463 |
foreach( $names as $name ) {
|
464 |
|
598 |
|
599 |
}
|
600 |
}
|
601 |
+
echo '</div>';
|
602 |
+
echo '<!-- .wccs_custom_fields -->';
|
603 |
|
604 |
}
|
605 |
|
includes/templates/admin/woocheckout-additional-clone.php
CHANGED
@@ -5,7 +5,8 @@
|
|
5 |
*/
|
6 |
|
7 |
// Exit if accessed directly
|
8 |
-
if ( !defined( 'ABSPATH' ) )
|
|
|
9 |
?>
|
10 |
|
11 |
<td style="display:none;text-align:center;" class="more_toggler1c"><input type="checkbox" name="wccs_settings[buttons][<?php echo $i; ?>][more_content]" title="<?php esc_attr_e( 'More than two content', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
|
5 |
*/
|
6 |
|
7 |
// Exit if accessed directly
|
8 |
+
if ( !defined( 'ABSPATH' ) )
|
9 |
+
exit;
|
10 |
?>
|
11 |
|
12 |
<td style="display:none;text-align:center;" class="more_toggler1c"><input type="checkbox" name="wccs_settings[buttons][<?php echo $i; ?>][more_content]" title="<?php esc_attr_e( 'More than two content', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
|
includes/templates/admin/woocheckout-billing-clone.php
CHANGED
@@ -5,7 +5,8 @@
|
|
5 |
*/
|
6 |
|
7 |
// Exit if accessed directly
|
8 |
-
if ( !defined( 'ABSPATH' ) )
|
|
|
9 |
?>
|
10 |
|
11 |
<td style="display:none;text-align:center;" class="more_toggler1c"><input type="checkbox" name="wccs_settings3[billing_buttons][<?php echo $i; ?>][more_content]" title="<?php esc_attr_e( 'More than two content', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
|
5 |
*/
|
6 |
|
7 |
// Exit if accessed directly
|
8 |
+
if ( !defined( 'ABSPATH' ) )
|
9 |
+
exit;
|
10 |
?>
|
11 |
|
12 |
<td style="display:none;text-align:center;" class="more_toggler1c"><input type="checkbox" name="wccs_settings3[billing_buttons][<?php echo $i; ?>][more_content]" title="<?php esc_attr_e( 'More than two content', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
|
includes/templates/admin/woocheckout-shipping-clone.php
CHANGED
@@ -5,7 +5,8 @@
|
|
5 |
*/
|
6 |
|
7 |
// Exit if accessed directly
|
8 |
-
if ( !defined( 'ABSPATH' ) )
|
|
|
9 |
?>
|
10 |
|
11 |
<td style="display:none;text-align:center;" class="more_toggler1c"><input type="checkbox" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][more_content]" title="<?php esc_attr_e( 'More than two content', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
|
@@ -26,7 +27,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
|
|
26 |
|
27 |
<td style="display:none;" class="hide_stuff_time"><input type="text" placeholder="0, 10, 20, 30, 40" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][manual_min]" value="" /></td>
|
28 |
|
29 |
-
<td style="display:none;" class="hide_stuff_color hide_stuff_days"><input type="text" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][format_date]" placeholder="
|
30 |
|
31 |
<td style="display:none;" class="hide_stuff_color hide_stuff_days"><input type="text" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][min_before]" placeholder="+3" title="Days Before" value="" /></td>
|
32 |
|
5 |
*/
|
6 |
|
7 |
// Exit if accessed directly
|
8 |
+
if ( !defined( 'ABSPATH' ) )
|
9 |
+
exit;
|
10 |
?>
|
11 |
|
12 |
<td style="display:none;text-align:center;" class="more_toggler1c"><input type="checkbox" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][more_content]" title="<?php esc_attr_e( 'More than two content', 'woocommerce-checkout-manager' ); ?>" value="" /></td>
|
27 |
|
28 |
<td style="display:none;" class="hide_stuff_time"><input type="text" placeholder="0, 10, 20, 30, 40" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][manual_min]" value="" /></td>
|
29 |
|
30 |
+
<td style="display:none;" class="hide_stuff_color hide_stuff_days"><input type="text" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][format_date]" placeholder="" title="dd-mm-yy" value="" /></td>
|
31 |
|
32 |
<td style="display:none;" class="hide_stuff_color hide_stuff_days"><input type="text" name="wccs_settings2[shipping_buttons][<?php echo $i; ?>][min_before]" placeholder="+3" title="Days Before" value="" /></td>
|
33 |
|
includes/templates/functions/add_functions.php
CHANGED
@@ -29,9 +29,9 @@ jQuery(document).ready(function() {
|
|
29 |
if( jQuery.isFunction(jQuery.fn.datepicker) ) {
|
30 |
jQuery("input#'.$btn['cow'].'").datepicker({
|
31 |
';
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
if( !empty($btn['format_date']) ) {
|
36 |
echo 'dateFormat : "'.str_replace( ' ', '', $btn['format_date'] ).'",';
|
37 |
}
|
29 |
if( jQuery.isFunction(jQuery.fn.datepicker) ) {
|
30 |
jQuery("input#'.$btn['cow'].'").datepicker({
|
31 |
';
|
32 |
+
// Default date format
|
33 |
+
if( empty($btn['format_date']) )
|
34 |
+
$btn['format_date'] = apply_filters( 'wooccm_datepicker_default_date_format', 'dd-mm-yy' );
|
35 |
if( !empty($btn['format_date']) ) {
|
36 |
echo 'dateFormat : "'.str_replace( ' ', '', $btn['format_date'] ).'",';
|
37 |
}
|
includes/templates/functions/billing_functions.php
CHANGED
@@ -60,9 +60,9 @@ jQuery(document).ready(function() {
|
|
60 |
if( jQuery.isFunction(jQuery.fn.datepicker) ) {
|
61 |
jQuery("input#billing_'.$btn['cow'].'").datepicker({
|
62 |
';
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
if( !empty($btn['format_date']) ) {
|
67 |
echo 'dateFormat : "'.str_replace( ' ', '', $btn['format_date'] ).'",';
|
68 |
}
|
60 |
if( jQuery.isFunction(jQuery.fn.datepicker) ) {
|
61 |
jQuery("input#billing_'.$btn['cow'].'").datepicker({
|
62 |
';
|
63 |
+
// Default date format
|
64 |
+
if( empty($btn['format_date']) )
|
65 |
+
$btn['format_date'] = apply_filters( 'wooccm_datepicker_default_date_format', 'dd-mm-yy' );
|
66 |
if( !empty($btn['format_date']) ) {
|
67 |
echo 'dateFormat : "'.str_replace( ' ', '', $btn['format_date'] ).'",';
|
68 |
}
|
includes/templates/functions/shipping_functions.php
CHANGED
@@ -63,9 +63,9 @@ jQuery(document).ready(function() {
|
|
63 |
if( jQuery.isFunction(jQuery.fn.datepicker) ) {
|
64 |
jQuery("input#shipping_'.$btn['cow'].'").datepicker({
|
65 |
';
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
if( !empty($btn['format_date']) ) {
|
70 |
echo 'dateFormat : "'.str_replace( ' ', '', $btn['format_date'] ).'",';
|
71 |
}
|
63 |
if( jQuery.isFunction(jQuery.fn.datepicker) ) {
|
64 |
jQuery("input#shipping_'.$btn['cow'].'").datepicker({
|
65 |
';
|
66 |
+
// Default date format
|
67 |
+
if( empty($btn['format_date']) )
|
68 |
+
$btn['format_date'] = apply_filters( 'wooccm_datepicker_default_date_format', 'dd-mm-yy' );
|
69 |
if( !empty($btn['format_date']) ) {
|
70 |
echo 'dateFormat : "'.str_replace( ' ', '', $btn['format_date'] ).'",';
|
71 |
}
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Contributors: visser, visser.labs, Emark
|
|
4 |
Donate link: https://www.visser.com.au/donations/
|
5 |
Tags: woocommerce, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
6 |
Requires at least: 3.0
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 4.2.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Manages WooCommerce Checkout, the advanced way.
|
@@ -135,6 +135,10 @@ Example:
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
|
|
138 |
= 4.2.5 =
|
139 |
* Fixed: Updated required field to match WooCommerce 3.5+ (thanks @sirachote)
|
140 |
|
4 |
Donate link: https://www.visser.com.au/donations/
|
5 |
Tags: woocommerce, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
6 |
Requires at least: 3.0
|
7 |
+
Tested up to: 5.1.1
|
8 |
+
Stable tag: 4.2.6
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Manages WooCommerce Checkout, the advanced way.
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 4.2.6 =
|
139 |
+
* Fixed: PHP 7.3 warning for incorrect use of continue (thanks @ceyar)
|
140 |
+
* Changed: Adjusted some Admin styling to the WordPress Admin default
|
141 |
+
|
142 |
= 4.2.5 =
|
143 |
* Fixed: Updated required field to match WooCommerce 3.5+ (thanks @sirachote)
|
144 |
|
woocommerce-checkout-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WooCommerce Checkout Manager
|
4 |
Plugin URI: https://wordpress.org/plugins/woocommerce-checkout-manager/
|
5 |
Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
-
Version: 4.2.
|
7 |
Author: Visser Labs
|
8 |
Author URI: http://www.visser.com.au
|
9 |
Contributors: visser, Emark
|
@@ -13,7 +13,7 @@ Text Domain: woocommerce-checkout-manager
|
|
13 |
Domain Path: /languages/
|
14 |
|
15 |
WC requires at least: 2.3
|
16 |
-
WC tested up to: 3.
|
17 |
*/
|
18 |
|
19 |
/*
|
3 |
Plugin Name: WooCommerce Checkout Manager
|
4 |
Plugin URI: https://wordpress.org/plugins/woocommerce-checkout-manager/
|
5 |
Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
+
Version: 4.2.6
|
7 |
Author: Visser Labs
|
8 |
Author URI: http://www.visser.com.au
|
9 |
Contributors: visser, Emark
|
13 |
Domain Path: /languages/
|
14 |
|
15 |
WC requires at least: 2.3
|
16 |
+
WC tested up to: 3.6.1
|
17 |
*/
|
18 |
|
19 |
/*
|