WooCommerce Checkout Manager - Version 4.8.3

Version Description

  • Fix: woocommerce checkout manager conditional fields
  • Fix: woocommerce checkout manager modal prev and next button
Download this release

Release Info

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

Code changes from version 4.8.2 to 4.8.3

includes/view/backend/pages/modals/parts/main.php CHANGED
@@ -9,8 +9,9 @@
9
  <div class="edit-attachment-frame mode-select hide-menu hide-router">
10
  <div class="edit-media-header">
11
  <# if ( data.id != undefined ) { #>
12
- <button type="button" class="media-modal-prev left dashicons <# if ( data.order == 1 ) { #>disabled<# } #>"><span class="screen-reader-text"><?php esc_html_e('Edit previous media item'); ?></span></button>
13
- <button type="button" class="media-modal-next right dashicons <# if ( data.order == <?php echo esc_attr(count($fields)); ?> ) { #>disabled<# } #>"><span class="screen-reader-text"><?php esc_html_e('Edit next media item'); ?></span></button> <# } #>
 
14
  <button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php esc_html_e('Close dialog'); ?></span></span></button>
15
  </div>
16
  <div class="media-frame-title">
9
  <div class="edit-attachment-frame mode-select hide-menu hide-router">
10
  <div class="edit-media-header">
11
  <# if ( data.id != undefined ) { #>
12
+ <button type="button" class="media-modal-prev left dashicons" <# if ( data.order == 1 ) { #>disabled="disabled"<# } #>><span class="screen-reader-text"><?php esc_html_e('Edit previous media item'); ?></span></button>
13
+ <button type="button" class="media-modal-next right dashicons" <# if ( data.order == <?php echo esc_attr(count($fields)); ?> ) { #>disabled="disabled"<# } #>><span class="screen-reader-text"><?php esc_html_e('Edit next media item'); ?></span></button>
14
+ <# } #>
15
  <button type="button" class="media-modal-close"><span class="media-modal-icon"><span class="screen-reader-text"><?php esc_html_e('Close dialog'); ?></span></span></button>
16
  </div>
17
  <div class="media-frame-title">
includes/view/frontend/class-wooccm-fields-conditional.php CHANGED
@@ -21,19 +21,21 @@ class WOOCCM_Fields_Conditional {
21
 
22
  if (!empty($field['conditional']) && !empty($field['conditional_parent_key']) && ($field['conditional_parent_key'] != $field['key'])) {
23
 
24
-
25
  // Unset if parent is disabled
26
  // -----------------------------------------------------------------
27
  if (empty($fields[$field['conditional_parent_key']])) {
28
  unset($fields[$field['key']]);
29
  continue;
30
  }
31
-
32
  // Remove required
33
  // -----------------------------------------------------------------
34
  if (isset($_REQUEST['woocommerce-process-checkout-nonce']) && (!isset($_POST[$field['conditional_parent_key']]) || !isset($field['conditional_parent_value']) || !array_intersect((array) $field['conditional_parent_value'], (array) $_POST[$field['conditional_parent_key']]))) {
 
35
  $field['required'] = false;
 
36
  unset($fields[$field['key']]);
 
37
  }
38
  }
39
  }
21
 
22
  if (!empty($field['conditional']) && !empty($field['conditional_parent_key']) && ($field['conditional_parent_key'] != $field['key'])) {
23
 
 
24
  // Unset if parent is disabled
25
  // -----------------------------------------------------------------
26
  if (empty($fields[$field['conditional_parent_key']])) {
27
  unset($fields[$field['key']]);
28
  continue;
29
  }
30
+
31
  // Remove required
32
  // -----------------------------------------------------------------
33
  if (isset($_REQUEST['woocommerce-process-checkout-nonce']) && (!isset($_POST[$field['conditional_parent_key']]) || !isset($field['conditional_parent_value']) || !array_intersect((array) $field['conditional_parent_value'], (array) $_POST[$field['conditional_parent_key']]))) {
34
+ // Remove required attribute for hidden child fields
35
  $field['required'] = false;
36
+ // Don't save hidden child fields in order
37
  unset($fields[$field['key']]);
38
+ unset($_POST[$field['key']]);
39
  }
40
  }
41
  }
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.2
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.2 =
103
  * Fix: woocommerce checkout manager i18n
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.8.3
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.3 =
103
+ * Fix: woocommerce checkout manager conditional fields
104
+ * Fix: woocommerce checkout manager modal prev and next button
105
+
106
  = 4.8.2 =
107
  * Fix: woocommerce checkout manager i18n
108
 
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.2
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.2');
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.3
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.3');
21
  }
22
  if (!defined('WOOCCM_PLUGIN_FILE')) {
23
  define('WOOCCM_PLUGIN_FILE', __FILE__);