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

Version Description

  • 2019-02-25 =
  • Tweaked FCF PRO activation checking
  • Fixed error of sorting fields
Download this release

Release Info

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

Code changes from version 1.8.2 to 1.8.3

classes/views/settings-fields.php CHANGED
@@ -288,6 +288,10 @@ foreach ( $plugin->sections as $section ) {
288
  $disabled = ' disabled';
289
  }
290
  }
 
 
 
 
291
  ?>
292
  <div style="<?php echo $style; ?>">
293
  <input type="hidden"
@@ -715,7 +719,7 @@ foreach ( $plugin->sections as $section ) {
715
  html += '</div>';
716
  html += '<div class="field-class">';
717
  html += '<label for="class_' + field_slug + '"><?php _e( 'CSS Class', 'flexible-checkout-fields' ) ?></label>';
718
- html += '<input class="field_class" type="text" id="class_' + field_slug + '" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][class]" value="" data-qa-id="field-class" />';
719
  html += '</div>';
720
 
721
  html += '</div>';
288
  $disabled = ' disabled';
289
  }
290
  }
291
+
292
+ if( empty( $field['class'] ) ) {
293
+ $field['class'] = array( 'form-row' );
294
+ }
295
  ?>
296
  <div style="<?php echo $style; ?>">
297
  <input type="hidden"
719
  html += '</div>';
720
  html += '<div class="field-class">';
721
  html += '<label for="class_' + field_slug + '"><?php _e( 'CSS Class', 'flexible-checkout-fields' ) ?></label>';
722
+ html += '<input class="field_class" type="text" id="class_' + field_slug + '" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][class]" value="form-row" data-qa-id="field-class" />';
723
  html += '</div>';
724
 
725
  html += '</div>';
classes/views/settings-tabs.php CHANGED
@@ -9,4 +9,4 @@
9
  <?php endif; ?>
10
  <?php if ( function_exists('icl_object_id') ) : ?>
11
  <p><?php echo sprintf( __( 'WPML detected. Read %sthis instructions if you want to translate Flexible Checkout Fields. &rarr;%s', 'flexible-checkout-fields' ), '<a href="https://wpml.org/faq/string-translation-default-language-not-english/" target="_blank">', '</a>' ); ?></p>
12
- <?php endif; ?>
9
  <?php endif; ?>
10
  <?php if ( function_exists('icl_object_id') ) : ?>
11
  <p><?php echo sprintf( __( 'WPML detected. Read %sthis instructions if you want to translate Flexible Checkout Fields. &rarr;%s', 'flexible-checkout-fields' ), '<a href="https://wpml.org/faq/string-translation-default-language-not-english/" target="_blank">', '</a>' ); ?></p>
12
+ <?php endif; ?>
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: 1.8.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: 4.6
12
- Tested up to: 5.0.3
13
  WC requires at least: 3.1.0
14
- WC tested up to: 3.5.4
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
@@ -33,7 +33,7 @@
33
 
34
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
35
 
36
- $plugin_version = '1.8.2';
37
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
38
 
39
 
@@ -68,7 +68,7 @@
68
 
69
  class Flexible_Checkout_Fields_Plugin extends WPDesk_Plugin_1_8 {
70
 
71
- protected $script_version = '1.8.2';
72
 
73
  protected $fields = array();
74
 
@@ -1008,12 +1008,40 @@
1008
 
1009
  }
1010
 
1011
- /**
1012
- * Checks if Flexible Checkout Fields PRO is active
1013
- *
1014
- */
1015
- function is_flexible_checkout_fields_pro_active() {
1016
- return wpdesk_is_plugin_active( 'flexible-checkout-fields-pro/flexible-checkout-fields-pro.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1017
  }
1018
 
1019
  if ( !function_exists( 'wpdesk__' ) ) {
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: 1.8.3
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: 4.6
12
+ Tested up to: 5.1.0
13
  WC requires at least: 3.1.0
14
+ WC tested up to: 3.5.5
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
33
 
34
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
35
 
36
+ $plugin_version = '1.8.3';
37
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
38
 
39
 
68
 
69
  class Flexible_Checkout_Fields_Plugin extends WPDesk_Plugin_1_8 {
70
 
71
+ protected $script_version = '1.8.3';
72
 
73
  protected $fields = array();
74
 
1008
 
1009
  }
1010
 
1011
+ if ( !function_exists( 'is_flexible_checkout_fields_pro_active' ) ) {
1012
+ /**
1013
+ * Get PRO plugin.
1014
+ *
1015
+ * @return Flexible_Checkout_Fields_Pro_Plugin|null
1016
+ */
1017
+ function get_flexible_checkout_fields_pro_plugin() {
1018
+ if ( class_exists( '\WPDesk\PluginBuilder\Storage\StaticStorage' ) ) {
1019
+ $storage = new \WPDesk\PluginBuilder\Storage\StaticStorage();
1020
+ try {
1021
+ return $storage->get_from_storage( Flexible_Checkout_Fields_Pro_Plugin::class );
1022
+ } catch ( \WPDesk\PluginBuilder\Storage\Exception\ClassNotExists $e ) {
1023
+ return null;
1024
+ }
1025
+ }
1026
+ return null;
1027
+ }
1028
+ }
1029
+
1030
+
1031
+ if ( !function_exists( 'is_flexible_checkout_fields_pro_active' ) ) {
1032
+ /**
1033
+ * Checks if Flexible Checkout Fields PRO is active
1034
+ *
1035
+ * @return bool
1036
+ */
1037
+ function is_flexible_checkout_fields_pro_active() {
1038
+ $pro_plugin = get_flexible_checkout_fields_pro_plugin();
1039
+ if ( !empty( $pro_plugin ) && method_exists( $pro_plugin, 'get_plugin_is_active' ) ) {
1040
+ return $pro_plugin->get_plugin_is_active();
1041
+ } else {
1042
+ return wpdesk_is_plugin_active( 'flexible-checkout-fields-pro/flexible-checkout-fields-pro.php' );
1043
+ }
1044
+ }
1045
  }
1046
 
1047
  if ( !function_exists( 'wpdesk__' ) ) {
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk
3
  Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
4
  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
5
  Requires at least: 4.5
6
- Tested up to: 5.0.3
7
- Stable tag: 1.8.2
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -188,6 +188,10 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
188
 
189
  == Changelog ==
190
 
 
 
 
 
191
  = 1.8.2 - 2019-01-31 =
192
  * Fixed fields order in configuration
193
  * Fixed unwanted validation on additional sections when PRO plugin disabled
3
  Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
4
  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
5
  Requires at least: 4.5
6
+ Tested up to: 5.1.0
7
+ Stable tag: 1.8.3
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
188
 
189
  == Changelog ==
190
 
191
+ = 1.8.3 - 2019-02-25 =
192
+ * Tweaked FCF PRO activation checking
193
+ * Fixed error of sorting fields
194
+
195
  = 1.8.2 - 2019-01-31 =
196
  * Fixed fields order in configuration
197
  * Fixed unwanted validation on additional sections when PRO plugin disabled
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit09a68d2f73e07dd82498c95f90d52bad::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit09a68d2f73e07dd82498c95f90d52bad
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit09a68d2f73e07dd82498c95f90d52bad
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit09a68d2f73e07dd82498c95f90d52bad', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit09a68d2f73e07dd82498c95f90d52bad', '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\ComposerStaticInit09a68d2f73e07dd82498c95f90d52bad::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 ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe', '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\ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe::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 ComposerStaticInit09a68d2f73e07dd82498c95f90d52bad
8
  {
9
  public static $classMap = array (
10
  'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
@@ -56,7 +56,7 @@ class ComposerStaticInit09a68d2f73e07dd82498c95f90d52bad
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
- $loader->classMap = ComposerStaticInit09a68d2f73e07dd82498c95f90d52bad::$classMap;
60
 
61
  }, null, ClassLoader::class);
62
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe
8
  {
9
  public static $classMap = array (
10
  'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
+ $loader->classMap = ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe::$classMap;
60
 
61
  }, null, ClassLoader::class);
62
  }