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

Version Description

  • 2021-11-29 =
  • Fixed saving line breaks for textarea field
  • Added support for WooCommerce 6.0
Download this release

Release Info

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

Code changes from version 3.1.1 to 3.1.2

classes/plugin.php CHANGED
@@ -789,11 +789,14 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
789
  ) {
790
  if ( $value = wpdesk_get_order_meta( $order, '_' . $field['name'], true ) ) {
791
  if ( isset( $field['type'] ) ) {
792
- $value = apply_filters( 'flexible_checkout_fields_print_value', $value, $field );
793
- $return[] = '<b>' . esc_html( wpdesk__( $field['label'], 'flexible-checkout-fields' ) ) . '</b>: ' . esc_html( $value );
794
- } else {
795
- $return[] = '<b>' . esc_html( wpdesk__( $field['label'], 'flexible-checkout-fields' ) ) . '</b>: ' . esc_html( $value );
796
  }
 
 
 
 
 
 
797
  }
798
  }
799
  }
@@ -865,7 +868,11 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
865
  if ( isset( $fields[ $key ] ) ) {
866
  $fcf_field = new Flexible_Checkout_Fields_Field( $fields[ $key ], $this );
867
  if ( $fcf_field->is_custom_field() ) {
868
- update_post_meta( $order_id, '_' . $key, sanitize_text_field( wp_unslash( $value ) ) );
 
 
 
 
869
  }
870
  }
871
  }
789
  ) {
790
  if ( $value = wpdesk_get_order_meta( $order, '_' . $field['name'], true ) ) {
791
  if ( isset( $field['type'] ) ) {
792
+ $value = apply_filters( 'flexible_checkout_fields_print_value', nl2br( $value ), $field );
 
 
 
793
  }
794
+
795
+ $return[] = sprintf(
796
+ '<strong>%1$s</strong>: %2$s',
797
+ esc_html( wpdesk__( $field['label'], 'flexible-checkout-fields' ) ),
798
+ wp_kses_post( $value )
799
+ );
800
  }
801
  }
802
  }
868
  if ( isset( $fields[ $key ] ) ) {
869
  $fcf_field = new Flexible_Checkout_Fields_Field( $fields[ $key ], $this );
870
  if ( $fcf_field->is_custom_field() ) {
871
+ if ( $fcf_field->get_type() === Flexible_Checkout_Fields_Field_Type_Settings::FIELD_TYPE_TEXTAREA ) {
872
+ update_post_meta( $order_id, '_' . $key, sanitize_textarea_field( wp_unslash( $value ) ) );
873
+ } else {
874
+ update_post_meta( $order_id, '_' . $key, sanitize_text_field( wp_unslash( $value ) ) );
875
+ }
876
  }
877
  }
878
  }
flexible-checkout-fields.php CHANGED
@@ -3,15 +3,15 @@
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: 3.1.1
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
10
  Domain Path: /lang/
11
  Requires at least: 5.2
12
  Tested up to: 5.8
13
- WC requires at least: 5.5
14
- WC tested up to: 5.9
15
  Requires PHP: 7.0
16
 
17
  Copyright 2017 WP Desk Ltd.
@@ -39,7 +39,7 @@ if ( ! defined( 'ABSPATH' ) ) {
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
- $plugin_version = '3.1.1';
43
 
44
  /*
45
  * Update when conditions are met:
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: 3.1.2
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
10
  Domain Path: /lang/
11
  Requires at least: 5.2
12
  Tested up to: 5.8
13
+ WC requires at least: 5.6
14
+ WC tested up to: 6.0
15
  Requires PHP: 7.0
16
 
17
  Copyright 2017 WP Desk Ltd.
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
+ $plugin_version = '3.1.2';
43
 
44
  /*
45
  * Update when conditions are met:
lang/flexible-checkout-fields.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2021 WP Desk
2
  # This file is distributed under the same license as the Flexible Checkout Fields plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Flexible Checkout Fields 3.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-checkout-fields\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-11-04T21:35:19+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: flexible-checkout-fields\n"
@@ -150,24 +150,24 @@ msgstr ""
150
  msgid "File Upload"
151
  msgstr ""
152
 
153
- #: classes/plugin.php:937
154
  msgid "Uploading file..."
155
  msgstr ""
156
 
157
- #: classes/plugin.php:1010
158
  #: src/Settings/Menu.php:33
159
  msgid "Settings"
160
  msgstr ""
161
 
162
- #: classes/plugin.php:1011
163
  msgid "Docs"
164
  msgstr ""
165
 
166
- #: classes/plugin.php:1012
167
  msgid "Support"
168
  msgstr ""
169
 
170
- #: classes/plugin.php:1016
171
  msgid "Upgrade"
172
  msgstr ""
173
 
1
+ # Copyright (C) 2022 WP Desk
2
  # This file is distributed under the same license as the Flexible Checkout Fields plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Flexible Checkout Fields 3.1.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/flexible-checkout-fields\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-01-18T09:11:28+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: flexible-checkout-fields\n"
150
  msgid "File Upload"
151
  msgstr ""
152
 
153
+ #: classes/plugin.php:944
154
  msgid "Uploading file..."
155
  msgstr ""
156
 
157
+ #: classes/plugin.php:1017
158
  #: src/Settings/Menu.php:33
159
  msgid "Settings"
160
  msgstr ""
161
 
162
+ #: classes/plugin.php:1018
163
  msgid "Docs"
164
  msgstr ""
165
 
166
+ #: classes/plugin.php:1019
167
  msgid "Support"
168
  msgstr ""
169
 
170
+ #: classes/plugin.php:1023
171
  msgid "Upgrade"
172
  msgstr ""
173
 
readme.txt CHANGED
@@ -16,6 +16,8 @@ The best looking Checkout Fields plugin. Add, edit, remove WooCommerce checkout
16
 
17
  We think WooCommerce is the best e-commerce plugin for WordPress. But it lacks some very basic features like customizing checkout fields in an easy to use interface. You can do it by hooks and filters but why bother if you can do it by Flexible Checkout Fields for WooCommerce. With this plugin you can edit the default fields (change labels, hide, delete) or add your own. You can set your own fields order. There’s a lot of field types such as a checkbox field, a date field or a color picker field (some of them exclusively in the PRO version). Read on to see how easy it is to edit WooCommerce checkout fields with this plugin and how powerful it is.
18
 
 
 
19
  = The WordPress Look&Feel =
20
 
21
  Flexible Checkout Fields integrates beautifully with the WordPress dashboard. It is probably the best looking WooCommerce Checkout Fields Manager plugin on the market. And you can do some powerful stuff with it too. [See some screenshots →](https://wordpress.org/plugins/flexible-checkout-fields/screenshots/)
@@ -190,6 +192,10 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
190
 
191
  == Changelog ==
192
 
 
 
 
 
193
  = 3.1.1 - 2021-11-04 =
194
  * Changed plugin deactivation modal
195
 
16
 
17
  We think WooCommerce is the best e-commerce plugin for WordPress. But it lacks some very basic features like customizing checkout fields in an easy to use interface. You can do it by hooks and filters but why bother if you can do it by Flexible Checkout Fields for WooCommerce. With this plugin you can edit the default fields (change labels, hide, delete) or add your own. You can set your own fields order. There’s a lot of field types such as a checkbox field, a date field or a color picker field (some of them exclusively in the PRO version). Read on to see how easy it is to edit WooCommerce checkout fields with this plugin and how powerful it is.
18
 
19
+ [youtube https://www.youtube.com/watch?v=Gm7npD3Dnik]
20
+
21
  = The WordPress Look&Feel =
22
 
23
  Flexible Checkout Fields integrates beautifully with the WordPress dashboard. It is probably the best looking WooCommerce Checkout Fields Manager plugin on the market. And you can do some powerful stuff with it too. [See some screenshots →](https://wordpress.org/plugins/flexible-checkout-fields/screenshots/)
192
 
193
  == Changelog ==
194
 
195
+ = 3.1.2 - 2021-11-29 =
196
+ * Fixed saving line breaks for textarea field
197
+ * Added support for WooCommerce 6.0
198
+
199
  = 3.1.1 - 2021-11-04 =
200
  * Changed plugin deactivation modal
201
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit0118c512262255eaa7e1fe5b40839be0::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit608b64501c466b3002826cb900c23228::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit0118c512262255eaa7e1fe5b40839be0
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit0118c512262255eaa7e1fe5b40839be0
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit0118c512262255eaa7e1fe5b40839be0', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit0118c512262255eaa7e1fe5b40839be0', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit0118c512262255eaa7e1fe5b40839be0::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit608b64501c466b3002826cb900c23228
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit608b64501c466b3002826cb900c23228', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit608b64501c466b3002826cb900c23228', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit608b64501c466b3002826cb900c23228::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit0118c512262255eaa7e1fe5b40839be0
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
@@ -437,9 +437,9 @@ class ComposerStaticInit0118c512262255eaa7e1fe5b40839be0
437
  public static function getInitializer(ClassLoader $loader)
438
  {
439
  return \Closure::bind(function () use ($loader) {
440
- $loader->prefixLengthsPsr4 = ComposerStaticInit0118c512262255eaa7e1fe5b40839be0::$prefixLengthsPsr4;
441
- $loader->prefixDirsPsr4 = ComposerStaticInit0118c512262255eaa7e1fe5b40839be0::$prefixDirsPsr4;
442
- $loader->classMap = ComposerStaticInit0118c512262255eaa7e1fe5b40839be0::$classMap;
443
 
444
  }, null, ClassLoader::class);
445
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit608b64501c466b3002826cb900c23228
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
437
  public static function getInitializer(ClassLoader $loader)
438
  {
439
  return \Closure::bind(function () use ($loader) {
440
+ $loader->prefixLengthsPsr4 = ComposerStaticInit608b64501c466b3002826cb900c23228::$prefixLengthsPsr4;
441
+ $loader->prefixDirsPsr4 = ComposerStaticInit608b64501c466b3002826cb900c23228::$prefixDirsPsr4;
442
+ $loader->classMap = ComposerStaticInit608b64501c466b3002826cb900c23228::$classMap;
443
 
444
  }, null, ClassLoader::class);
445
  }