Version Description
- 2021-03-12 =
- Fixed displaying Country/Region field
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 3.0.6 |
Comparing to | |
See all releases |
Code changes from version 3.0.5 to 3.0.6
- classes/plugin.php +0 -4
- flexible-checkout-fields.php +2 -2
- lang/flexible-checkout-fields.pot +7 -7
- readme.txt +3 -0
- src/Field/Type/DefaultType.php +8 -8
- src/Settings/Option/FieldTypeDefaultOption.php +27 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +1 -0
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +5 -4
classes/plugin.php
CHANGED
@@ -527,10 +527,6 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
|
|
527 |
}
|
528 |
$fields_found = true;
|
529 |
foreach ( $type as $field_name => $field ) {
|
530 |
-
if ( ! isset( $field['type'] ) || empty( $field['type'] ) ) {
|
531 |
-
$field['type'] = 'text';
|
532 |
-
}
|
533 |
-
|
534 |
if ( apply_filters( 'flexible_checkout_fields_condition', true, $field ) ) {
|
535 |
if ( $field['visible'] == 0 or
|
536 |
( ( isset( $_GET['page'] ) && $_GET['page'] == 'inspire_checkout_fields_settings' ) && $field['visible'] == 1 ) || $field['name'] == 'billing_country' || $field['name'] == 'shipping_country' ) {
|
527 |
}
|
528 |
$fields_found = true;
|
529 |
foreach ( $type as $field_name => $field ) {
|
|
|
|
|
|
|
|
|
530 |
if ( apply_filters( 'flexible_checkout_fields_condition', true, $field ) ) {
|
531 |
if ( $field['visible'] == 0 or
|
532 |
( ( isset( $_GET['page'] ) && $_GET['page'] == 'inspire_checkout_fields_settings' ) && $field['visible'] == 1 ) || $field['name'] == 'billing_country' || $field['name'] == 'shipping_country' ) {
|
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: 3.0.
|
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 = '3.0.
|
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.0.6
|
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 = '3.0.6';
|
43 |
|
44 |
/*
|
45 |
* Update when conditions are met:
|
lang/flexible-checkout-fields.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
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.0.
|
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-03-
|
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"
|
@@ -147,24 +147,24 @@ msgstr ""
|
|
147 |
msgid "File Upload"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: classes/plugin.php:
|
151 |
msgid "Uploading file..."
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: classes/plugin.php:
|
155 |
#: src/Settings/Menu.php:40
|
156 |
msgid "Settings"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: classes/plugin.php:
|
160 |
msgid "Docs"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: classes/plugin.php:
|
164 |
msgid "Support"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: classes/plugin.php:
|
168 |
msgid "Upgrade"
|
169 |
msgstr ""
|
170 |
|
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.0.6\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-03-12T14:11:21+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"
|
147 |
msgid "File Upload"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: classes/plugin.php:934
|
151 |
msgid "Uploading file..."
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: classes/plugin.php:1007
|
155 |
#: src/Settings/Menu.php:40
|
156 |
msgid "Settings"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: classes/plugin.php:1008
|
160 |
msgid "Docs"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: classes/plugin.php:1009
|
164 |
msgid "Support"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: classes/plugin.php:1013
|
168 |
msgid "Upgrade"
|
169 |
msgstr ""
|
170 |
|
readme.txt
CHANGED
@@ -187,6 +187,9 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
190 |
= 3.0.5 - 2021-03-11 =
|
191 |
* Fixed displaying fields without specific field type
|
192 |
* Added support for WordPress 5.7
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 3.0.6 - 2021-03-12 =
|
191 |
+
* Fixed displaying Country/Region field
|
192 |
+
|
193 |
= 3.0.5 - 2021-03-11 =
|
194 |
* Fixed displaying fields without specific field type
|
195 |
* Added support for WordPress 5.7
|
src/Field/Type/DefaultType.php
CHANGED
@@ -19,7 +19,7 @@ use WPDesk\FCF\Free\Settings\Option\CssOption;
|
|
19 |
use WPDesk\FCF\Free\Settings\Option\CustomFieldOption;
|
20 |
use WPDesk\FCF\Free\Settings\Option\DisplayOnOption;
|
21 |
use WPDesk\FCF\Free\Settings\Option\EnabledOption;
|
22 |
-
use WPDesk\FCF\Free\Settings\Option\
|
23 |
use WPDesk\FCF\Free\Settings\Option\FormattingWcOption;
|
24 |
use WPDesk\FCF\Free\Settings\Option\LabelOption;
|
25 |
use WPDesk\FCF\Free\Settings\Option\LogicAdvOption;
|
@@ -81,13 +81,13 @@ class DefaultType extends TypeAbstract implements TypeInterface {
|
|
81 |
public function get_options_objects(): array {
|
82 |
return [
|
83 |
GeneralTab::TAB_NAME => [
|
84 |
-
PriorityOption::FIELD_NAME
|
85 |
-
|
86 |
-
EnabledOption::FIELD_NAME
|
87 |
-
CustomFieldOption::FIELD_NAME
|
88 |
-
RequiredOption::FIELD_NAME
|
89 |
-
LabelOption::FIELD_NAME
|
90 |
-
NameOption::FIELD_NAME
|
91 |
],
|
92 |
AdvancedTab::TAB_NAME => [
|
93 |
ValidationOption::FIELD_NAME => new ValidationOption(),
|
19 |
use WPDesk\FCF\Free\Settings\Option\CustomFieldOption;
|
20 |
use WPDesk\FCF\Free\Settings\Option\DisplayOnOption;
|
21 |
use WPDesk\FCF\Free\Settings\Option\EnabledOption;
|
22 |
+
use WPDesk\FCF\Free\Settings\Option\FieldTypeDefaultOption;
|
23 |
use WPDesk\FCF\Free\Settings\Option\FormattingWcOption;
|
24 |
use WPDesk\FCF\Free\Settings\Option\LabelOption;
|
25 |
use WPDesk\FCF\Free\Settings\Option\LogicAdvOption;
|
81 |
public function get_options_objects(): array {
|
82 |
return [
|
83 |
GeneralTab::TAB_NAME => [
|
84 |
+
PriorityOption::FIELD_NAME => new PriorityOption(),
|
85 |
+
FieldTypeDefaultOption::FIELD_NAME => new FieldTypeDefaultOption(),
|
86 |
+
EnabledOption::FIELD_NAME => new EnabledOption(),
|
87 |
+
CustomFieldOption::FIELD_NAME => new CustomFieldOption(),
|
88 |
+
RequiredOption::FIELD_NAME => new RequiredOption(),
|
89 |
+
LabelOption::FIELD_NAME => new LabelOption(),
|
90 |
+
NameOption::FIELD_NAME => new NameOption(),
|
91 |
],
|
92 |
AdvancedTab::TAB_NAME => [
|
93 |
ValidationOption::FIELD_NAME => new ValidationOption(),
|
src/Settings/Option/FieldTypeDefaultOption.php
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* .
|
4 |
+
*
|
5 |
+
* @package WPDesk\FPF\Free
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace WPDesk\FCF\Free\Settings\Option;
|
9 |
+
|
10 |
+
use WPDesk\FCF\Free\Settings\Option\FieldTypeOption;
|
11 |
+
use WPDesk\FCF\Free\Settings\Option\OptionInterface;
|
12 |
+
use WPDesk\FCF\Free\Settings\Tab\GeneralTab;
|
13 |
+
|
14 |
+
/**
|
15 |
+
* Supports option settings for field.
|
16 |
+
*/
|
17 |
+
class FieldTypeDefaultOption extends FieldTypeOption implements OptionInterface {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Returns default value of option.
|
21 |
+
*
|
22 |
+
* @return string|array Default value.
|
23 |
+
*/
|
24 |
+
public function get_default_value() {
|
25 |
+
return 'text';
|
26 |
+
}
|
27 |
+
}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit1477cac63f9fface0e9165d515219d4f::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -326,6 +326,7 @@ return array(
|
|
326 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnThankYouOption' => $baseDir . '/src/Settings/Option/DisplayOnThankYouOption.php',
|
327 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnWithoutAddressOption' => $baseDir . '/src/Settings/Option/DisplayOnWithoutAddressOption.php',
|
328 |
'WPDesk\\FCF\\Free\\Settings\\Option\\EnabledOption' => $baseDir . '/src/Settings/Option/EnabledOption.php',
|
|
|
329 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FieldTypeOption' => $baseDir . '/src/Settings/Option/FieldTypeOption.php',
|
330 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingFieldLabelOption' => $baseDir . '/src/Settings/Option/FormattingFieldLabelOption.php',
|
331 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingNewLineOption' => $baseDir . '/src/Settings/Option/FormattingNewLineOption.php',
|
326 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnThankYouOption' => $baseDir . '/src/Settings/Option/DisplayOnThankYouOption.php',
|
327 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnWithoutAddressOption' => $baseDir . '/src/Settings/Option/DisplayOnWithoutAddressOption.php',
|
328 |
'WPDesk\\FCF\\Free\\Settings\\Option\\EnabledOption' => $baseDir . '/src/Settings/Option/EnabledOption.php',
|
329 |
+
'WPDesk\\FCF\\Free\\Settings\\Option\\FieldTypeDefaultOption' => $baseDir . '/src/Settings/Option/FieldTypeDefaultOption.php',
|
330 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FieldTypeOption' => $baseDir . '/src/Settings/Option/FieldTypeOption.php',
|
331 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingFieldLabelOption' => $baseDir . '/src/Settings/Option/FormattingFieldLabelOption.php',
|
332 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingNewLineOption' => $baseDir . '/src/Settings/Option/FormattingNewLineOption.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitb8e61345d4fbc3447ec1a49e968427f0
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
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\
|
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 ComposerAutoloaderInit1477cac63f9fface0e9165d515219d4f
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit1477cac63f9fface0e9165d515219d4f', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit1477cac63f9fface0e9165d515219d4f', '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\ComposerStaticInit1477cac63f9fface0e9165d515219d4f::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
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
@@ -349,6 +349,7 @@ class ComposerStaticInitb8e61345d4fbc3447ec1a49e968427f0
|
|
349 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnThankYouOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnThankYouOption.php',
|
350 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnWithoutAddressOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnWithoutAddressOption.php',
|
351 |
'WPDesk\\FCF\\Free\\Settings\\Option\\EnabledOption' => __DIR__ . '/../..' . '/src/Settings/Option/EnabledOption.php',
|
|
|
352 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FieldTypeOption' => __DIR__ . '/../..' . '/src/Settings/Option/FieldTypeOption.php',
|
353 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingFieldLabelOption' => __DIR__ . '/../..' . '/src/Settings/Option/FormattingFieldLabelOption.php',
|
354 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingNewLineOption' => __DIR__ . '/../..' . '/src/Settings/Option/FormattingNewLineOption.php',
|
@@ -402,9 +403,9 @@ class ComposerStaticInitb8e61345d4fbc3447ec1a49e968427f0
|
|
402 |
public static function getInitializer(ClassLoader $loader)
|
403 |
{
|
404 |
return \Closure::bind(function () use ($loader) {
|
405 |
-
$loader->prefixLengthsPsr4 =
|
406 |
-
$loader->prefixDirsPsr4 =
|
407 |
-
$loader->classMap =
|
408 |
|
409 |
}, null, ClassLoader::class);
|
410 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit1477cac63f9fface0e9165d515219d4f
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'W' =>
|
349 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnThankYouOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnThankYouOption.php',
|
350 |
'WPDesk\\FCF\\Free\\Settings\\Option\\DisplayOnWithoutAddressOption' => __DIR__ . '/../..' . '/src/Settings/Option/DisplayOnWithoutAddressOption.php',
|
351 |
'WPDesk\\FCF\\Free\\Settings\\Option\\EnabledOption' => __DIR__ . '/../..' . '/src/Settings/Option/EnabledOption.php',
|
352 |
+
'WPDesk\\FCF\\Free\\Settings\\Option\\FieldTypeDefaultOption' => __DIR__ . '/../..' . '/src/Settings/Option/FieldTypeDefaultOption.php',
|
353 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FieldTypeOption' => __DIR__ . '/../..' . '/src/Settings/Option/FieldTypeOption.php',
|
354 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingFieldLabelOption' => __DIR__ . '/../..' . '/src/Settings/Option/FormattingFieldLabelOption.php',
|
355 |
'WPDesk\\FCF\\Free\\Settings\\Option\\FormattingNewLineOption' => __DIR__ . '/../..' . '/src/Settings/Option/FormattingNewLineOption.php',
|
403 |
public static function getInitializer(ClassLoader $loader)
|
404 |
{
|
405 |
return \Closure::bind(function () use ($loader) {
|
406 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit1477cac63f9fface0e9165d515219d4f::$prefixLengthsPsr4;
|
407 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit1477cac63f9fface0e9165d515219d4f::$prefixDirsPsr4;
|
408 |
+
$loader->classMap = ComposerStaticInit1477cac63f9fface0e9165d515219d4f::$classMap;
|
409 |
|
410 |
}, null, ClassLoader::class);
|
411 |
}
|