Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager - Version 2.5.3

Version Description

  • 2020-09-01 =
  • Fixed copying shipping details from billing details for same fields
Download this release

Release Info

Developer wpdesk
Plugin Icon wp plugin Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.3

classes/plugin.php CHANGED
@@ -102,7 +102,7 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
102
  add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ), 100 );
103
 
104
  add_action( 'woocommerce_checkout_fields', array( $this, 'changeCheckoutFields' ), 9999 );
105
- add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'updateCheckoutFields' ), 9 );
106
 
107
  add_action( 'woocommerce_admin_order_data_after_billing_address', array(
108
  $this,
@@ -912,9 +912,10 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
912
  /**
913
  * Update fields on checkout.
914
  *
915
- * @param $order_id
 
916
  */
917
- function updateCheckoutFields( $order_id ) {
918
  $settings = $this->get_settings();
919
  if ( ! empty( $settings ) ) {
920
  $fields = array_merge(
@@ -923,7 +924,7 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
923
  isset( $settings['order'] ) ? $settings['order'] : array()
924
  );
925
 
926
- foreach ( $_POST as $key => $value ) {
927
  if ( isset( $fields[ $key ] ) ) {
928
  $fcf_field = new Flexible_Checkout_Fields_Field( $fields[ $key ], $this );
929
  if ( $fcf_field->is_custom_field() ) {
@@ -933,7 +934,7 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
933
  }
934
  }
935
 
936
- do_action( 'flexible_checkout_fields_checkout_update_order_meta', $order_id );
937
  }
938
 
939
  public static function flexible_checkout_fields_section_settings( $key, $settings ) {
102
  add_action( 'plugins_loaded', array( $this, 'plugins_loaded' ), 100 );
103
 
104
  add_action( 'woocommerce_checkout_fields', array( $this, 'changeCheckoutFields' ), 9999 );
105
+ add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'updateCheckoutFields' ), 9, 2 );
106
 
107
  add_action( 'woocommerce_admin_order_data_after_billing_address', array(
108
  $this,
912
  /**
913
  * Update fields on checkout.
914
  *
915
+ * @param int $order_id Order id.
916
+ * @param array $data Posted data.
917
  */
918
+ function updateCheckoutFields( $order_id, $data ) {
919
  $settings = $this->get_settings();
920
  if ( ! empty( $settings ) ) {
921
  $fields = array_merge(
924
  isset( $settings['order'] ) ? $settings['order'] : array()
925
  );
926
 
927
+ foreach ( $data as $key => $value ) {
928
  if ( isset( $fields[ $key ] ) ) {
929
  $fcf_field = new Flexible_Checkout_Fields_Field( $fields[ $key ], $this );
930
  if ( $fcf_field->is_custom_field() ) {
934
  }
935
  }
936
 
937
+ do_action( 'flexible_checkout_fields_checkout_update_order_meta', $order_id, $data );
938
  }
939
 
940
  public static function flexible_checkout_fields_section_settings( $key, $settings ) {
flexible-checkout-fields.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Flexible Checkout Fields
4
  Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
5
  Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
6
- Version: 2.5.2
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
@@ -39,7 +39,7 @@ if ( ! defined( 'ABSPATH' ) ) {
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
- $plugin_version = '2.5.2';
43
 
44
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
45
 
3
  Plugin Name: Flexible Checkout Fields
4
  Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
5
  Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
6
+ Version: 2.5.3
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
+ $plugin_version = '2.5.3';
43
 
44
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
45
 
lang/flexible-checkout-fields.pot CHANGED
@@ -7,8 +7,8 @@ msgstr ""
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
- "POT-Creation-Date: 2020-08-25T14:01:56+00:00\n"
11
- "PO-Revision-Date: 2020-08-25T14:01:56+00:00\n"
12
  "Language: \n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
@@ -182,48 +182,48 @@ msgstr ""
182
  msgid "File Upload"
183
  msgstr ""
184
 
185
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:946
186
  msgid "Advanced"
187
  msgstr ""
188
 
189
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1022
190
  msgid "Uploading file..."
191
  msgstr ""
192
 
193
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1069
194
  msgid "Close"
195
  msgstr ""
196
 
197
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1070
198
  msgid "Today"
199
  msgstr ""
200
 
201
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1073
202
  msgid "Next"
203
  msgstr ""
204
 
205
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1074
206
  msgid "Previous"
207
  msgstr ""
208
 
209
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1102
210
  #: /builds/wpdesk/flexible-checkout-fields/classes/settings.php:165
211
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:198
212
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php:46
213
  msgid "Settings"
214
  msgstr ""
215
 
216
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1104
217
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:194
218
  msgid "Docs"
219
  msgstr ""
220
 
221
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1105
222
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:191
223
  msgid "Support"
224
  msgstr ""
225
 
226
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1111
227
  msgid "Upgrade"
228
  msgstr ""
229
 
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
10
+ "POT-Creation-Date: 2020-09-01T08:42:38+00:00\n"
11
+ "PO-Revision-Date: 2020-09-01T08:42:38+00:00\n"
12
  "Language: \n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
182
  msgid "File Upload"
183
  msgstr ""
184
 
185
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:947
186
  msgid "Advanced"
187
  msgstr ""
188
 
189
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1023
190
  msgid "Uploading file..."
191
  msgstr ""
192
 
193
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1070
194
  msgid "Close"
195
  msgstr ""
196
 
197
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1071
198
  msgid "Today"
199
  msgstr ""
200
 
201
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1074
202
  msgid "Next"
203
  msgstr ""
204
 
205
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1075
206
  msgid "Previous"
207
  msgstr ""
208
 
209
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1103
210
  #: /builds/wpdesk/flexible-checkout-fields/classes/settings.php:165
211
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:198
212
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php:46
213
  msgid "Settings"
214
  msgstr ""
215
 
216
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1105
217
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:194
218
  msgid "Docs"
219
  msgstr ""
220
 
221
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1106
222
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:191
223
  msgid "Support"
224
  msgstr ""
225
 
226
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1112
227
  msgid "Upgrade"
228
  msgstr ""
229
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
5
  Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
- Stable tag: 2.5.2
9
  Requires PHP: 5.6
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -187,6 +187,9 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = 2.5.2 - 2020-08-25 =
191
  * Fixed overwriting of field classes by WooCommerce locale
192
 
5
  Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
6
  Requires at least: 4.5
7
  Tested up to: 5.5
8
+ Stable tag: 2.5.3
9
  Requires PHP: 5.6
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
187
 
188
  == Changelog ==
189
 
190
+ = 2.5.3 - 2020-09-01 =
191
+ * Fixed copying shipping details from billing details for same fields
192
+
193
  = 2.5.2 - 2020-08-25 =
194
  * Fixed overwriting of field classes by WooCommerce locale
195
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInita1c66f99ecd1caf2aacec6fdc3fccfee::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
- call_user_func(\Composer\Autoload\ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInita1c66f99ecd1caf2aacec6fdc3fccfee
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInita1c66f99ecd1caf2aacec6fdc3fccfee', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInita1c66f99ecd1caf2aacec6fdc3fccfee', 'loadClassLoader'));
25
 
26
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27
  if ($useStaticLoader) {
28
  require_once __DIR__ . '/autoload_static.php';
29
 
30
+ call_user_func(\Composer\Autoload\ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
@@ -279,9 +279,9 @@ class ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6
279
  public static function getInitializer(ClassLoader $loader)
280
  {
281
  return \Closure::bind(function () use ($loader) {
282
- $loader->prefixLengthsPsr4 = ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::$prefixLengthsPsr4;
283
- $loader->prefixDirsPsr4 = ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::$prefixDirsPsr4;
284
- $loader->classMap = ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::$classMap;
285
 
286
  }, null, ClassLoader::class);
287
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
279
  public static function getInitializer(ClassLoader $loader)
280
  {
281
  return \Closure::bind(function () use ($loader) {
282
+ $loader->prefixLengthsPsr4 = ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee::$prefixLengthsPsr4;
283
+ $loader->prefixDirsPsr4 = ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee::$prefixDirsPsr4;
284
+ $loader->classMap = ComposerStaticInita1c66f99ecd1caf2aacec6fdc3fccfee::$classMap;
285
 
286
  }, null, ClassLoader::class);
287
  }