Version Description
Download this release
Release Info
Developer | quadlayers |
Plugin | ![]() |
Version | 6.0.9 |
Comparing to | |
See all releases |
Code changes from version 6.0.8 to 6.0.9
includes/controller/class-wooccm-field.php
CHANGED
@@ -323,12 +323,15 @@ class WOOCCM_Field_Controller extends WOOCCM_Controller
|
|
323 |
if (isset(WOOCCM()->$section)) {
|
324 |
|
325 |
$field_data = wp_parse_args($field_data, WOOCCM()->$section->get_args());
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
332 |
|
333 |
return WOOCCM()->$section->update_field($field_data);
|
334 |
}
|
323 |
if (isset(WOOCCM()->$section)) {
|
324 |
|
325 |
$field_data = wp_parse_args($field_data, WOOCCM()->$section->get_args());
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Don't override this fields, they are handled trough the interface toggles.
|
329 |
+
*/
|
330 |
+
unset($field_data['order']);
|
331 |
+
unset($field_data['required']);
|
332 |
+
// unset($field_data['position']);
|
333 |
+
unset($field_data['clear']);
|
334 |
+
unset($field_data['disabled']);
|
335 |
|
336 |
return WOOCCM()->$section->update_field($field_data);
|
337 |
}
|
includes/model/class-wooccm-field.php
CHANGED
@@ -321,7 +321,7 @@ class WOOCCM_Field extends WOOCCM_Model {
|
|
321 |
}
|
322 |
|
323 |
public function delete_field( $field_id ) {
|
324 |
-
|
325 |
}
|
326 |
|
327 |
// Sanitize
|
321 |
}
|
322 |
|
323 |
public function delete_field( $field_id ) {
|
324 |
+
return $this->delete_item( $field_id );
|
325 |
}
|
326 |
|
327 |
// Sanitize
|
includes/model/class-wooccm-model.php
CHANGED
@@ -52,9 +52,11 @@ class WOOCCM_Model {
|
|
52 |
return false;
|
53 |
}
|
54 |
|
55 |
-
$
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
|
59 |
return $this->save_items( $items );
|
60 |
}
|
52 |
return false;
|
53 |
}
|
54 |
|
55 |
+
$current_data = $items[ $item_data['id'] ];
|
56 |
+
/**
|
57 |
+
* Get saved data to prevent missing fields [required, order, clear, disabled]
|
58 |
+
*/
|
59 |
+
$items[ $item_data['id'] ] = array_replace_recursive( (array) $current_data, $item_data );
|
60 |
|
61 |
return $this->save_items( $items );
|
62 |
}
|
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.
|
9 |
WC requires at least: 3.1.0
|
10 |
WC tested up to: 6.7
|
11 |
License: GPLv3
|
@@ -149,6 +149,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
152 |
= 6.0.8
|
153 |
* Fix. WooCommerce Checkout force shipping address checkbox
|
154 |
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 6.0.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 6.0.9
|
9 |
WC requires at least: 3.1.0
|
10 |
WC tested up to: 6.7
|
11 |
License: GPLv3
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 6.0.9
|
153 |
+
* Fix. WooCommerce Checkout required fields save
|
154 |
+
|
155 |
= 6.0.8
|
156 |
* Fix. WooCommerce Checkout force shipping address checkbox
|
157 |
|
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.
|
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.
|
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.9
|
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.9' );
|
24 |
}
|
25 |
if ( ! defined( 'WOOCCM_PLUGIN_FILE' ) ) {
|
26 |
define( 'WOOCCM_PLUGIN_FILE', __FILE__ );
|