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

Version Description

  • 2020-10-15 =
  • Changed required PHP version to 7.0
  • Fixed integration with Flexible Invoices (VAT Number field)
  • Fixed display of HTML code in Additional Information section on Thank You Page
  • Added support for WooCommerce 4.6
Download this release

Release Info

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

Code changes from version 2.5.7 to 2.6.0

classes/display-options.php CHANGED
@@ -91,7 +91,7 @@ class Flexible_Checkout_Fields_Disaplay_Options {
91
  }
92
  $value = apply_filters( 'flexible_checkout_fields_print_value', $value, $field );
93
  if ( '' !== $value ) {
94
- $return[] = esc_html( wpdesk__( $field['label'], 'flexible-checkout-fields' ) ) . ': ' . esc_html( $value );
95
  }
96
  }
97
  }
@@ -361,6 +361,10 @@ class Flexible_Checkout_Fields_Disaplay_Options {
361
 
362
  foreach ( $cf_fields as $field_key => $field ) {
363
  $val = wpdesk_get_order_meta( $order, '_' . $field_key, true );
 
 
 
 
364
  $fcf_field = new Flexible_Checkout_Fields_Field( $field, $this->plugin );
365
  if ( (isset( $field['custom_field'] ) && $field['custom_field'] == '1')) {
366
  $val = '';
@@ -379,8 +383,9 @@ class Flexible_Checkout_Fields_Disaplay_Options {
379
  }
380
 
381
  $val = $this->flexible_invoices_ask_field_integration($val, $field, $field_key, $fields);
 
382
 
383
- $fields[$field['name']] = esc_html($val);
384
  $fields[$this->replace_only_first( $address_type . '_', '', $field['name'] )] = $val;
385
  }
386
 
91
  }
92
  $value = apply_filters( 'flexible_checkout_fields_print_value', $value, $field );
93
  if ( '' !== $value ) {
94
+ $return[] = strip_tags( wpdesk__( $field['label'], 'flexible-checkout-fields' ) ) . ': ' . esc_html( $value );
95
  }
96
  }
97
  }
361
 
362
  foreach ( $cf_fields as $field_key => $field ) {
363
  $val = wpdesk_get_order_meta( $order, '_' . $field_key, true );
364
+ if ( empty( $val ) && isset( $fields[ $field_key ] ) ) {
365
+ $val = $fields[ $field_key ];
366
+ }
367
+
368
  $fcf_field = new Flexible_Checkout_Fields_Field( $field, $this->plugin );
369
  if ( (isset( $field['custom_field'] ) && $field['custom_field'] == '1')) {
370
  $val = '';
383
  }
384
 
385
  $val = $this->flexible_invoices_ask_field_integration($val, $field, $field_key, $fields);
386
+ $val = esc_html( $val );
387
 
388
+ $fields[$field['name']] = $val;
389
  $fields[$this->replace_only_first( $address_type . '_', '', $field['name'] )] = $val;
390
  }
391
 
composer.lock CHANGED
@@ -4,7 +4,7 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "0751c67bd24acaa1b4e7eb1aeeb776c9",
8
  "packages": [
9
  {
10
  "name": "psr/log",
@@ -8098,16 +8098,16 @@
8098
  },
8099
  {
8100
  "name": "wpdesk/wp-wpdesk-composer",
8101
- "version": "2.8.10",
8102
  "source": {
8103
  "type": "git",
8104
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
8105
- "reference": "1f2655673bcf2cf24ba579fddd4cf300cfb51e2d"
8106
  },
8107
  "dist": {
8108
  "type": "zip",
8109
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=1f2655673bcf2cf24ba579fddd4cf300cfb51e2d",
8110
- "reference": "1f2655673bcf2cf24ba579fddd4cf300cfb51e2d",
8111
  "shasum": ""
8112
  },
8113
  "require": {
@@ -8137,7 +8137,7 @@
8137
  "email": "krzysiek@wpdesk.pl"
8138
  }
8139
  ],
8140
- "time": "2020-09-16T10:36:46+00:00"
8141
  },
8142
  {
8143
  "name": "wpdesk/wp-wpdesk-helper",
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "ab0f0bd621335854c1ffa720e06892c6",
8
  "packages": [
9
  {
10
  "name": "psr/log",
8098
  },
8099
  {
8100
  "name": "wpdesk/wp-wpdesk-composer",
8101
+ "version": "2.8.12",
8102
  "source": {
8103
  "type": "git",
8104
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
8105
+ "reference": "5a954d3e3f4470747dc344db5461a5df6a661479"
8106
  },
8107
  "dist": {
8108
  "type": "zip",
8109
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=5a954d3e3f4470747dc344db5461a5df6a661479",
8110
+ "reference": "5a954d3e3f4470747dc344db5461a5df6a661479",
8111
  "shasum": ""
8112
  },
8113
  "require": {
8137
  "email": "krzysiek@wpdesk.pl"
8138
  }
8139
  ],
8140
+ "time": "2020-09-24T10:04:47+00:00"
8141
  },
8142
  {
8143
  "name": "wpdesk/wp-wpdesk-helper",
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.7
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
@@ -11,8 +11,8 @@
11
  Requires at least: 4.9
12
  Tested up to: 5.5
13
  WC requires at least: 4.2
14
- WC tested up to: 4.5
15
- Requires PHP: 5.6
16
 
17
  Copyright 2017 WP Desk Ltd.
18
 
@@ -39,7 +39,7 @@ if ( ! defined( 'ABSPATH' ) ) {
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
- $plugin_version = '2.5.7';
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.6.0
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
11
  Requires at least: 4.9
12
  Tested up to: 5.5
13
  WC requires at least: 4.2
14
+ WC tested up to: 4.6
15
+ Requires PHP: 7.0
16
 
17
  Copyright 2017 WP Desk Ltd.
18
 
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
+ $plugin_version = '2.6.0';
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-10-01T20:17:18+00:00\n"
11
- "PO-Revision-Date: 2020-10-01T20:17:18+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"
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-10-15T16:55:05+00:00\n"
11
+ "PO-Revision-Date: 2020-10-15T16:55:05+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"
readme.txt CHANGED
@@ -5,8 +5,8 @@ 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.7
9
- Requires PHP: 5.6
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
@@ -187,6 +187,12 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
187
 
188
  == Changelog ==
189
 
 
 
 
 
 
 
190
  = 2.5.7 - 2020-10-01 =
191
  * Fixed saving field values to User Metadata from Order section
192
  * Added escaping output for field label
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: trunk
9
+ Requires PHP: 7.0
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
12
 
187
 
188
  == Changelog ==
189
 
190
+ = 2.6.0 - 2020-10-15 =
191
+ * Changed required PHP version to 7.0
192
+ * Fixed integration with Flexible Invoices (VAT Number field)
193
+ * Fixed display of HTML code in Additional Information section on Thank You Page
194
+ * Added support for WooCommerce 4.6
195
+
196
  = 2.5.7 - 2020-10-01 =
197
  * Fixed saving field values to User Metadata from Order section
198
  * Added escaping output for field label
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit563aba94c0807c982aca6a3ee4d87eb8::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit957a6889e1723c87d70ea710e2812725::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit563aba94c0807c982aca6a3ee4d87eb8
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit563aba94c0807c982aca6a3ee4d87eb8
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit563aba94c0807c982aca6a3ee4d87eb8', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit563aba94c0807c982aca6a3ee4d87eb8', '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\ComposerStaticInit563aba94c0807c982aca6a3ee4d87eb8::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 ComposerAutoloaderInit957a6889e1723c87d70ea710e2812725
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit957a6889e1723c87d70ea710e2812725', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit957a6889e1723c87d70ea710e2812725', '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\ComposerStaticInit957a6889e1723c87d70ea710e2812725::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 ComposerStaticInit563aba94c0807c982aca6a3ee4d87eb8
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
@@ -280,9 +280,9 @@ class ComposerStaticInit563aba94c0807c982aca6a3ee4d87eb8
280
  public static function getInitializer(ClassLoader $loader)
281
  {
282
  return \Closure::bind(function () use ($loader) {
283
- $loader->prefixLengthsPsr4 = ComposerStaticInit563aba94c0807c982aca6a3ee4d87eb8::$prefixLengthsPsr4;
284
- $loader->prefixDirsPsr4 = ComposerStaticInit563aba94c0807c982aca6a3ee4d87eb8::$prefixDirsPsr4;
285
- $loader->classMap = ComposerStaticInit563aba94c0807c982aca6a3ee4d87eb8::$classMap;
286
 
287
  }, null, ClassLoader::class);
288
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit957a6889e1723c87d70ea710e2812725
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
280
  public static function getInitializer(ClassLoader $loader)
281
  {
282
  return \Closure::bind(function () use ($loader) {
283
+ $loader->prefixLengthsPsr4 = ComposerStaticInit957a6889e1723c87d70ea710e2812725::$prefixLengthsPsr4;
284
+ $loader->prefixDirsPsr4 = ComposerStaticInit957a6889e1723c87d70ea710e2812725::$prefixDirsPsr4;
285
+ $loader->classMap = ComposerStaticInit957a6889e1723c87d70ea710e2812725::$classMap;
286
 
287
  }, null, ClassLoader::class);
288
  }