WooCommerce Checkout Manager - Version 5.0.2

Version Description

  • Improvement: woocommerce checkout manager time field
  • Fix: woocommerce checkout manager date field
Download this release

Release Info

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

Code changes from version 5.0.1 to 5.0.2

assets/frontend/js/wooccm-checkout.js CHANGED
@@ -68,11 +68,11 @@
68
  '">*</abbr>'
69
  );
70
  }
71
-
72
  //fix state hidden
73
  field.show();
74
  field.find('input[type=hidden]').prop('type', 'text');
75
-
76
  } else {
77
  field.find('label .required').remove();
78
  field.removeClass('validate-required woocommerce-invalid woocommerce-invalid-required-field');
@@ -175,7 +175,17 @@
175
  // Add class on place order reload if upload field exists
176
  // ---------------------------------------------------------------------------
177
 
178
- $('#order_review').on('ajaxSuccess wooccm_upload', function (e) {
 
 
 
 
 
 
 
 
 
 
179
 
180
  var $order_review = $(e.target),
181
  $place_order = $order_review.find('#place_order'),
@@ -357,11 +367,13 @@
357
  var $input = $(this),
358
  disable = $input.data('disable') || false;
359
 
 
 
360
  if ($.isFunction($.fn.datepicker)) {
361
  $input.datepicker({
362
  dateFormat: $input.data('formatdate') || 'dd-mm-yy',
363
- minDate: $input.data('mindate') || undefined,
364
- maxDate: $input.data('maxdate') || undefined,
365
  beforeShowDay: function (date) {
366
  var day = date.getDay().toString();
367
  if (disable) {
68
  '">*</abbr>'
69
  );
70
  }
71
+
72
  //fix state hidden
73
  field.show();
74
  field.find('input[type=hidden]').prop('type', 'text');
75
+
76
  } else {
77
  field.find('label .required').remove();
78
  field.removeClass('validate-required woocommerce-invalid woocommerce-invalid-required-field');
175
  // Add class on place order reload if upload field exists
176
  // ---------------------------------------------------------------------------
177
 
178
+ // $(document).on('checkout_place_order_success', function (e) {
179
+ // alert('submit!');
180
+ // });
181
+ // $('form.checkout').on('checkout_place_order_success', function (e) {
182
+ // alert('submit!');
183
+ // });
184
+ $('#order_review').on('ajaxSuccess wooccm_upload', function (e, xhr, settings) {
185
+
186
+ // console.log('e', e);
187
+ // console.log('xhr', xhr);
188
+ // console.log('settings', settings);
189
 
190
  var $order_review = $(e.target),
191
  $place_order = $order_review.find('#place_order'),
367
  var $input = $(this),
368
  disable = $input.data('disable') || false;
369
 
370
+ console.log('mindate', $input.data('mindate'));
371
+
372
  if ($.isFunction($.fn.datepicker)) {
373
  $input.datepicker({
374
  dateFormat: $input.data('formatdate') || 'dd-mm-yy',
375
+ minDate: $input.data('mindate'),
376
+ maxDate: $input.data('maxdate'),
377
  beforeShowDay: function (date) {
378
  var day = date.getDay().toString();
379
  if (disable) {
includes/view/backend/pages/modals/parts/panel-timepicker.php CHANGED
@@ -11,12 +11,12 @@
11
  <div class="options_group wooccm-premium">
12
  <p class="form-field">
13
  <label><?php esc_html_e('Hour start', 'woocommerce-checkout-manager'); ?></label>
14
- <input <# if ( !data.select2 ) { #>disabled="disabled"<# } #> class="short" type="number" min="0" max="24" placeholder="6" name="time_limit_start" value="{{data.time_limit_start}}">
15
  <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
16
  </p>
17
  <p class="form-field">
18
  <label><?php esc_html_e('Hour end', 'woocommerce-checkout-manager'); ?></label>
19
- <input <# if ( !data.select2 ) { #>disabled="disabled"<# } #> class="short" type="number" min="0" max="24" placeholder="9" name="time_limit_end" value="{{data.time_limit_end}}">
20
  <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
21
  </p>
22
  <p class="form-field">
11
  <div class="options_group wooccm-premium">
12
  <p class="form-field">
13
  <label><?php esc_html_e('Hour start', 'woocommerce-checkout-manager'); ?></label>
14
+ <input <# if ( !data.select2 ) { #>disabled="disabled"<# } #> class="short" type="time" placeholder="6" name="time_limit_start" value="{{data.time_limit_start}}">
15
  <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
16
  </p>
17
  <p class="form-field">
18
  <label><?php esc_html_e('Hour end', 'woocommerce-checkout-manager'); ?></label>
19
+ <input <# if ( !data.select2 ) { #>disabled="disabled"<# } #> class="short" type="time" placeholder="9" name="time_limit_end" value="{{data.time_limit_end}}">
20
  <span class="description premium">(<?php esc_html_e('This is a premium feature', 'woocommerce-checkout-manager'); ?>)</span>
21
  </p>
22
  <p class="form-field">
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: 3.4
6
  Tested up to: 5.4.0
7
- Stable tag: 5.0.1
8
  WC requires at least: 3.0
9
  WC tested up to: 4.0
10
  License: GPLv2 or later
@@ -107,6 +107,10 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
107
 
108
  == Changelog ==
109
 
 
 
 
 
110
  = 5.0.1 =
111
  * Fix: woocommerce checkout manager suggestions
112
 
4
  Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
5
  Requires at least: 3.4
6
  Tested up to: 5.4.0
7
+ Stable tag: 5.0.2
8
  WC requires at least: 3.0
9
  WC tested up to: 4.0
10
  License: GPLv2 or later
107
 
108
  == Changelog ==
109
 
110
+ = 5.0.2 =
111
+ * Improvement: woocommerce checkout manager time field
112
+ * Fix: woocommerce checkout manager date field
113
+
114
  = 5.0.1 =
115
  * Fix: woocommerce checkout manager suggestions
116
 
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: 5.0.1
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', '5.0.1');
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: 5.0.2
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', '5.0.2');
21
  }
22
  if (!defined('WOOCCM_PLUGIN_FILE')) {
23
  define('WOOCCM_PLUGIN_FILE', __FILE__);