WooCommerce Checkout Manager - Version 6.0.2

Version Description

  • Fix: Values changed to keys in select, multiselect, checkbox, multicheckbox, radio,
Download this release

Release Info

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

Code changes from version 6.0.1 to 6.0.2

includes/view/frontend/class-wooccm-fields-filters.php CHANGED
@@ -87,8 +87,9 @@ class WOOCCM_Fields_Filter
87
 
88
  $field .= ' <span class="woocommerce-radio-wrapper" ' . implode(' ', $custom_attributes) . '>';
89
 
90
- foreach ($args['options'] as $option_key => $option_text) {
91
- $field .= '<input type="radio" class="input-checkbox" value="' . esc_attr($option_text) . '" name="' . esc_attr($key) . '" id="' . esc_attr($key) . '_' . esc_attr($option_key) . '"' . checked($value, $option_text, false) . ' />';
 
92
  $field .= '<label for="' . esc_attr($key) . '_' . esc_attr($option_key) . '" class="checkbox ' . implode(' ', $args['label_class']) . '">' . $option_text . '</label><br>';
93
  }
94
 
@@ -107,7 +108,8 @@ class WOOCCM_Fields_Filter
107
  $field .= '<option value="" disabled="disabled" selected="selected">' . esc_attr($args['placeholder']) . '</option>';
108
  }
109
  foreach ($args['options'] as $option_key => $option_text) {
110
- $field .= '<option value="' . esc_attr($option_text) . '" ' . selected($value, $option_text, false) . '>' . esc_attr($option_text) . '</option>';
 
111
  }
112
  $field .= '</select>';
113
  }
@@ -123,7 +125,8 @@ class WOOCCM_Fields_Filter
123
  if (!empty($args['options'])) {
124
  $field .= '<select name="' . esc_attr($key) . '[]" id="' . esc_attr($key) . '" class="select ' . esc_attr(implode(' ', $args['input_class'])) . '" multiple="multiple" ' . implode(' ', $custom_attributes) . '>';
125
  foreach ($args['options'] as $option_key => $option_text) {
126
- $field .= '<option value="' . esc_attr($option_text) . '" ' . selected(in_array($option_text, $value), 1, false) . '>' . esc_attr($option_text) . '</option>';
 
127
  }
128
  $field .= ' </select>';
129
  }
@@ -140,9 +143,9 @@ class WOOCCM_Fields_Filter
140
 
141
  $field .= ' <span class="woocommerce-multicheckbox-wrapper" ' . implode(' ', $custom_attributes) . '>';
142
 
143
- foreach ($args['options'] as $option_key => $option_text) {
144
- //$field .='<label><input type="checkbox" name="' . esc_attr($key) . '[]" value="1"' . checked(in_array($option_key, $value), 1, false) . ' /> ' . esc_attr($option_text) . '</label>';
145
- $field .= '<label><input type="checkbox" name="' . esc_attr($key) . '[]" value="' . esc_attr($option_text) . '"' . checked(in_array($option_text, $value), 1, false) . ' /> ' . esc_attr($option_text) . '</label>';
146
  }
147
 
148
  $field .= '</span>';
87
 
88
  $field .= ' <span class="woocommerce-radio-wrapper" ' . implode(' ', $custom_attributes) . '>';
89
 
90
+ foreach ($args['options'] as $option_key => $option_text) {
91
+ $option_key = is_numeric($option_key) ? $option_text : $option_key;
92
+ $field .= '<input type="radio" class="input-checkbox" value="' . esc_attr($option_key) . '" name="' . esc_attr($key) . '" id="' . esc_attr($key) . '_' . esc_attr($option_key) . '"' . checked($value, $option_text, false) . ' />';
93
  $field .= '<label for="' . esc_attr($key) . '_' . esc_attr($option_key) . '" class="checkbox ' . implode(' ', $args['label_class']) . '">' . $option_text . '</label><br>';
94
  }
95
 
108
  $field .= '<option value="" disabled="disabled" selected="selected">' . esc_attr($args['placeholder']) . '</option>';
109
  }
110
  foreach ($args['options'] as $option_key => $option_text) {
111
+ $option_key = is_numeric($option_key) ? $option_text : $option_key;
112
+ $field .= '<option value="' . esc_attr($option_key) . '" ' . selected($value, $option_text, false) . '>' . esc_attr($option_text) . '</option>';
113
  }
114
  $field .= '</select>';
115
  }
125
  if (!empty($args['options'])) {
126
  $field .= '<select name="' . esc_attr($key) . '[]" id="' . esc_attr($key) . '" class="select ' . esc_attr(implode(' ', $args['input_class'])) . '" multiple="multiple" ' . implode(' ', $custom_attributes) . '>';
127
  foreach ($args['options'] as $option_key => $option_text) {
128
+ $option_key = is_numeric($option_key) ? $option_text : $option_key;
129
+ $field .= '<option value="' . esc_attr($option_key) . '" ' . selected(in_array($option_text, $value), 1, false) . '>' . esc_attr($option_text) . '</option>';
130
  }
131
  $field .= ' </select>';
132
  }
143
 
144
  $field .= ' <span class="woocommerce-multicheckbox-wrapper" ' . implode(' ', $custom_attributes) . '>';
145
 
146
+ foreach ($args['options'] as $option_key => $option_text) {
147
+ $option_key = is_numeric($option_key) ? $option_text : $option_key;
148
+ $field .= '<label><input type="checkbox" name="' . esc_attr($key) . '[]" value="' . esc_attr($option_key) . '"' . checked(in_array($option_text, $value), 1, false) . ' /> ' . esc_attr($option_text) . '</label>';
149
  }
150
 
151
  $field .= '</span>';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: checkout field editor, woocommerce checkout field editor, checkout manager
5
  Requires at least: 4.9
6
  Tested up to: 6.0.1
7
  Requires PHP: 5.6
8
- Stable tag: 6.0.1
9
  WC requires at least: 3.1.0
10
  WC tested up to: 6.6
11
  License: GPLv3
@@ -147,6 +147,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
147
 
148
  == Changelog ==
149
 
 
 
 
150
  = 6.0.1 =
151
  * Fix: Default show aditional checkout fields in order
152
 
5
  Requires at least: 4.9
6
  Tested up to: 6.0.1
7
  Requires PHP: 5.6
8
+ Stable tag: 6.0.2
9
  WC requires at least: 3.1.0
10
  WC tested up to: 6.6
11
  License: GPLv3
147
 
148
  == Changelog ==
149
 
150
+ = 6.0.2 =
151
+ * Fix: Values changed to keys in select, multiselect, checkbox, multicheckbox, radio,
152
+
153
  = 6.0.1 =
154
  * Fix: Default show aditional checkout fields in order
155
 
woocommerce-checkout-manager.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Checkout Fields Manager for WooCommerce
5
  * Plugin URI: https://quadlayers.com/portfolio/woocommerce-checkout-manager/
6
  * Description: Manage and customize WooCommerce Checkout fields (Add, Edit, Delete or re-order fields).
7
- * Version: 6.0.1
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * License: GPLv3
@@ -20,7 +20,7 @@ if ( ! defined( 'WOOCCM_PLUGIN_NAME' ) ) {
20
  define( 'WOOCCM_PLUGIN_NAME', 'Checkout Fields Manager for WooCommerce' );
21
  }
22
  if ( ! defined( 'WOOCCM_PLUGIN_VERSION' ) ) {
23
- define( 'WOOCCM_PLUGIN_VERSION', '6.0.1' );
24
  }
25
  if ( ! defined( 'WOOCCM_PLUGIN_FILE' ) ) {
26
  define( 'WOOCCM_PLUGIN_FILE', __FILE__ );
4
  * Plugin Name: Checkout Fields Manager for WooCommerce
5
  * Plugin URI: https://quadlayers.com/portfolio/woocommerce-checkout-manager/
6
  * Description: Manage and customize WooCommerce Checkout fields (Add, Edit, Delete or re-order fields).
7
+ * Version: 6.0.2
8
  * Author: QuadLayers
9
  * Author URI: https://quadlayers.com
10
  * License: GPLv3
20
  define( 'WOOCCM_PLUGIN_NAME', 'Checkout Fields Manager for WooCommerce' );
21
  }
22
  if ( ! defined( 'WOOCCM_PLUGIN_VERSION' ) ) {
23
+ define( 'WOOCCM_PLUGIN_VERSION', '6.0.2' );
24
  }
25
  if ( ! defined( 'WOOCCM_PLUGIN_FILE' ) ) {
26
  define( 'WOOCCM_PLUGIN_FILE', __FILE__ );