WooCommerce Checkout Field Editor (Manager) Pro - Version 1.4.3

Version Description

  • Improved shipping fields section handling when 'Force shipping to the customer billing address' option is selected.
  • WooCommerce compatible version updated.
Download this release

Release Info

Developer ThemeHigh
Plugin Icon 128x128 WooCommerce Checkout Field Editor (Manager) Pro
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

checkout-form-designer.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHigh
6
- * Version: 1.4.2
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
10
  * Domain Path: /languages
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 4.0.1
13
  */
14
 
15
  if(!defined( 'ABSPATH' )) exit;
@@ -25,7 +25,7 @@ if (!function_exists('is_woocommerce_active')){
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
- define('THWCFD_VERSION', '1.4.2');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHigh
6
+ * Version: 1.4.3
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
10
  * Domain Path: /languages
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 4.3.0
13
  */
14
 
15
  if(!defined( 'ABSPATH' )) exit;
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
+ define('THWCFD_VERSION', '1.4.3');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
classes/class-thwcfd-checkout.php CHANGED
@@ -352,14 +352,24 @@ class THWCFD_Checkout {
352
  }
353
  }
354
 
355
- private function maybe_skip_fieldset( $fieldset_key, $data ) {
356
  $ship_to_different_address = isset($data['ship_to_different_address']) ? $data['ship_to_different_address'] : false;
357
 
358
  if ( 'shipping' === $fieldset_key && ( ! $ship_to_different_address || ! WC()->cart->needs_shipping_address() ) ) {
359
  return true;
360
  }
361
  return false;
362
- }
 
 
 
 
 
 
 
 
 
 
363
 
364
  /****************************************
365
  ----- Display Field Values - START ------
352
  }
353
  }
354
 
355
+ /*private function maybe_skip_fieldset( $fieldset_key, $data ) {
356
  $ship_to_different_address = isset($data['ship_to_different_address']) ? $data['ship_to_different_address'] : false;
357
 
358
  if ( 'shipping' === $fieldset_key && ( ! $ship_to_different_address || ! WC()->cart->needs_shipping_address() ) ) {
359
  return true;
360
  }
361
  return false;
362
+ }*/
363
+
364
+ private function maybe_skip_fieldset( $fieldset_key, $data ) {
365
+ $ship_to_different_address = isset($data['ship_to_different_address']) ? $data['ship_to_different_address'] : false;
366
+ $ship_to_destination = get_option( 'woocommerce_ship_to_destination' );
367
+
368
+ if ( 'shipping' === $fieldset_key && ( ! $ship_to_different_address || ! WC()->cart->needs_shipping_address() ) ) {
369
+ return $ship_to_destination != 'billing_only' ? true : false;
370
+ }
371
+ return false;
372
+ }
373
 
374
  /****************************************
375
  ----- Display Field Values - START ------
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://themehigh.com/
4
  Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, woocommerce checkout fields, woocommerce checkout addons
5
  Requires at least: 4.9
6
  Tested up to: 5.4
7
- Stable tag: 1.4.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -178,6 +178,10 @@ Yes. There is a button 'reset to default fields' to go back to the WooCommerce d
178
  8. Newly added field
179
 
180
  == Changelog ==
 
 
 
 
181
  = 1.4.2 =
182
  * WooCommerce compatible version updated.
183
 
4
  Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, woocommerce checkout fields, woocommerce checkout addons
5
  Requires at least: 4.9
6
  Tested up to: 5.4
7
+ Stable tag: 1.4.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
178
  8. Newly added field
179
 
180
  == Changelog ==
181
+ = 1.4.3 =
182
+ * Improved shipping fields section handling when 'Force shipping to the customer billing address' option is selected.
183
+ * WooCommerce compatible version updated.
184
+
185
  = 1.4.2 =
186
  * WooCommerce compatible version updated.
187