Version Description
- 2019-08-21 =
- Fixed integration with Flexible Invoices invoice_ask field
- Added filter flexible_checkout_fields_invoices_integration_enabled
Download this release
Release Info
Developer | jablonowski |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.1.0
- classes/display-options.php +50 -32
- classes/views/settings-fields.php +11 -6
- composer.lock +1 -146
- flexible-checkout-fields.php +4 -3
- readme.txt +9 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
classes/display-options.php
CHANGED
@@ -130,21 +130,7 @@ class Flexible_Checkout_Fields_Disaplay_Options {
|
|
130 |
|
131 |
$meta_value = get_user_meta( $customer_id, $field_key, true );
|
132 |
if ( !empty( $field['type'] ) && !empty( $checkout_field_type[$field['type']]['has_options'] ) ) {
|
133 |
-
$
|
134 |
-
$options = array();
|
135 |
-
if( !empty( $array_options ) ) {
|
136 |
-
foreach ( $array_options as $option ) {
|
137 |
-
$tmp = explode(':', $option , 2 );
|
138 |
-
$options[trim($tmp[0])] = trim($tmp[0]);
|
139 |
-
if ( isset( $tmp[1] ) ) {
|
140 |
-
$options[ trim( $tmp[0] ) ] = wpdesk__( trim( $tmp[1] ), 'flexible-checkout-fields' );
|
141 |
-
}
|
142 |
-
unset( $tmp );
|
143 |
-
}
|
144 |
-
}
|
145 |
-
if ( isset( $options[$meta_value] ) ) {
|
146 |
-
$meta_value = $options[$meta_value];
|
147 |
-
}
|
148 |
}
|
149 |
|
150 |
$meta_value = apply_filters( 'flexible_checkout_fields_user_meta_display_value', $meta_value, $field );
|
@@ -300,6 +286,33 @@ class Flexible_Checkout_Fields_Disaplay_Options {
|
|
300 |
return $this->woocommerce_order_formatted_address( $fields, $order, 'billing' );
|
301 |
}
|
302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
/**
|
304 |
* @param array $fields
|
305 |
* @param WC_Order $order
|
@@ -320,28 +333,15 @@ class Flexible_Checkout_Fields_Disaplay_Options {
|
|
320 |
$meta_value = wpdesk_get_order_meta( $order, '_' . $field_key, true );
|
321 |
|
322 |
if ( !empty( $checkout_field_type[$field['type']]['has_options'] ) ) {
|
323 |
-
$
|
324 |
-
$options = array();
|
325 |
-
if( !empty( $array_options ) ) {
|
326 |
-
foreach ( $array_options as $option ) {
|
327 |
-
$tmp = explode(':', $option , 2 );
|
328 |
-
$options[trim($tmp[0])] = trim($tmp[0]);
|
329 |
-
if ( isset( $tmp[1] ) ) {
|
330 |
-
$options[ trim( $tmp[0] ) ] = wpdesk__( trim( $tmp[1] ), 'flexible-checkout-fields' );
|
331 |
-
}
|
332 |
-
unset( $tmp );
|
333 |
-
}
|
334 |
-
}
|
335 |
-
if ( isset( $options[$meta_value] ) ) {
|
336 |
-
$meta_value = $options[$meta_value];
|
337 |
-
}
|
338 |
}
|
339 |
|
340 |
$meta_value = apply_filters( 'flexible_checkout_fields_print_value', $meta_value, $field );
|
341 |
-
|
342 |
$val .= $meta_value;
|
343 |
-
|
344 |
}
|
|
|
|
|
|
|
345 |
$fields[$field['name']] = $val;
|
346 |
$fields[str_replace( $address_type . '_', '', $field['name'] )] = $val;
|
347 |
}
|
@@ -349,6 +349,24 @@ class Flexible_Checkout_Fields_Disaplay_Options {
|
|
349 |
|
350 |
}
|
351 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
public function woocommerce_order_formatted_shipping_address( $fields, $order ) {
|
353 |
$this->current_address_type = 'shipping';
|
354 |
WC()->countries->address_formats = '';
|
130 |
|
131 |
$meta_value = get_user_meta( $customer_id, $field_key, true );
|
132 |
if ( !empty( $field['type'] ) && !empty( $checkout_field_type[$field['type']]['has_options'] ) ) {
|
133 |
+
$meta_value = $this->get_field_meta_value_from_field_options($field, $meta_value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
}
|
135 |
|
136 |
$meta_value = apply_filters( 'flexible_checkout_fields_user_meta_display_value', $meta_value, $field );
|
286 |
return $this->woocommerce_order_formatted_address( $fields, $order, 'billing' );
|
287 |
}
|
288 |
|
289 |
+
/**
|
290 |
+
* Replaces field meta value using field options
|
291 |
+
*
|
292 |
+
* @param array $field Field data
|
293 |
+
* @param string $meta_value Field meta value
|
294 |
+
*
|
295 |
+
* @return string New field meta value from options
|
296 |
+
*/
|
297 |
+
private function get_field_meta_value_from_field_options($field, $meta_value) {
|
298 |
+
$array_options = explode("\n", $field['option']);
|
299 |
+
$options = array();
|
300 |
+
if( !empty( $array_options ) ) {
|
301 |
+
foreach ( $array_options as $option ) {
|
302 |
+
$tmp = explode(':', $option , 2 );
|
303 |
+
$options[trim($tmp[0])] = trim($tmp[0]);
|
304 |
+
if ( isset( $tmp[1] ) ) {
|
305 |
+
$options[ trim( $tmp[0] ) ] = wpdesk__( trim( $tmp[1] ), 'flexible-checkout-fields' );
|
306 |
+
}
|
307 |
+
unset( $tmp );
|
308 |
+
}
|
309 |
+
}
|
310 |
+
if ( isset( $options[$meta_value] ) ) {
|
311 |
+
$meta_value = $options[$meta_value];
|
312 |
+
}
|
313 |
+
return $meta_value;
|
314 |
+
}
|
315 |
+
|
316 |
/**
|
317 |
* @param array $fields
|
318 |
* @param WC_Order $order
|
333 |
$meta_value = wpdesk_get_order_meta( $order, '_' . $field_key, true );
|
334 |
|
335 |
if ( !empty( $checkout_field_type[$field['type']]['has_options'] ) ) {
|
336 |
+
$meta_value = $this->get_field_meta_value_from_field_options($field, $meta_value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
}
|
338 |
|
339 |
$meta_value = apply_filters( 'flexible_checkout_fields_print_value', $meta_value, $field );
|
|
|
340 |
$val .= $meta_value;
|
|
|
341 |
}
|
342 |
+
|
343 |
+
$val = $this->flexible_invoices_ask_field_integration($val, $field_key, $fields);
|
344 |
+
|
345 |
$fields[$field['name']] = $val;
|
346 |
$fields[str_replace( $address_type . '_', '', $field['name'] )] = $val;
|
347 |
}
|
349 |
|
350 |
}
|
351 |
|
352 |
+
/**
|
353 |
+
* Return value for invoice ask field prepared by FI plugin. If can't then fallback.
|
354 |
+
*
|
355 |
+
* @param string $val Prepared by FCF field value.
|
356 |
+
* @param string $field_key Field key that is currently processed. Needed to check if val should be replaced.
|
357 |
+
* @param array $fields Prepared by WC field values
|
358 |
+
*
|
359 |
+
* @return string New field value
|
360 |
+
*/
|
361 |
+
private function flexible_invoices_ask_field_integration($val, $field_key, $fields) {
|
362 |
+
if ( apply_filters( 'flexible_checkout_fields_invoices_integration_enabled', true ) ) {
|
363 |
+
if ( $field_key === 'invoice_ask' && ! empty( $fields['invoice_ask_field'] ) ) {
|
364 |
+
return $fields['invoice_ask_field'];
|
365 |
+
}
|
366 |
+
}
|
367 |
+
return $val;
|
368 |
+
}
|
369 |
+
|
370 |
public function woocommerce_order_formatted_shipping_address( $fields, $order ) {
|
371 |
$this->current_address_type = 'shipping';
|
372 |
WC()->countries->address_formats = '';
|
classes/views/settings-fields.php
CHANGED
@@ -675,13 +675,17 @@ $validation_options = $this->plugin->field_validation->get_validation_options( $
|
|
675 |
html += '<?php _e( 'Enable Field', 'flexible-checkout-fields' ) ?>';
|
676 |
html += '</label>';
|
677 |
html += '</div>';
|
678 |
-
|
679 |
html += '<input type="hidden" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][required]" value="0">';
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
|
|
|
|
|
|
|
|
685 |
html += '<div class="field-type-label">';
|
686 |
html += '<label class="fcf_label" for="label_' + field_slug + '"><?php _e( 'Label', 'flexible-checkout-fields' ) ?></label>';
|
687 |
html += '<textarea class="field_label" data-field="' + field_slug + '" id="label_' + field_slug + '" class="fcf_label field-name" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][label]" data-qa-id="field-label">' + field_label + '</textarea>';
|
@@ -730,6 +734,7 @@ $validation_options = $this->plugin->field_validation->get_validation_options( $
|
|
730 |
html += '<div class="field-settings-tab-container field-settings-display-options" style="display:none;">';
|
731 |
|
732 |
<?php foreach ( $fields_display_on as $display_on_field_key => $display_on_field ) : ?>
|
|
|
733 |
html += '<div class=" fcf-display-on-<?php echo $display_on_field_key; ?>">';
|
734 |
html += '<input type="hidden" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][display_on_<?php echo $display_on_field_key; ?>]" value="0"/>';
|
735 |
html += '<label>';
|
675 |
html += '<?php _e( 'Enable Field', 'flexible-checkout-fields' ) ?>';
|
676 |
html += '</label>';
|
677 |
html += '</div>';
|
678 |
+
|
679 |
html += '<input type="hidden" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][required]" value="0">';
|
680 |
+
if (field_type !== 'info') { // do not show required field for html/info type
|
681 |
+
html += '<div>';
|
682 |
+
html += '<label>';
|
683 |
+
html += '<input class="field_required" type="checkbox" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][required]" value="1" data-qa-id="field-required">';
|
684 |
+
html += '<?php _e( 'Required Field', 'flexible-checkout-fields' ) ?>';
|
685 |
+
html += '</label>';
|
686 |
+
html += '</div>';
|
687 |
+
}
|
688 |
+
|
689 |
html += '<div class="field-type-label">';
|
690 |
html += '<label class="fcf_label" for="label_' + field_slug + '"><?php _e( 'Label', 'flexible-checkout-fields' ) ?></label>';
|
691 |
html += '<textarea class="field_label" data-field="' + field_slug + '" id="label_' + field_slug + '" class="fcf_label field-name" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][label]" data-qa-id="field-label">' + field_label + '</textarea>';
|
734 |
html += '<div class="field-settings-tab-container field-settings-display-options" style="display:none;">';
|
735 |
|
736 |
<?php foreach ( $fields_display_on as $display_on_field_key => $display_on_field ) : ?>
|
737 |
+
<?php if ( $display_on_field_key === 'address' && !in_array( $current_tab, array( 'fields_billing', 'fields_shipping' ) ) ) continue; ?>
|
738 |
html += '<div class=" fcf-display-on-<?php echo $display_on_field_key; ?>">';
|
739 |
html += '<input type="hidden" name="inspire_checkout_fields[settings][' + field_section + '][' + field_slug + '][display_on_<?php echo $display_on_field_key; ?>]" value="0"/>';
|
740 |
html += '<label>';
|
composer.lock
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
-
"content-hash": "
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "monolog/monolog",
|
@@ -1964,57 +1964,6 @@
|
|
1964 |
"homepage": "https://github.com/sebastianbergmann/version",
|
1965 |
"time": "2016-10-03T07:35:21+00:00"
|
1966 |
},
|
1967 |
-
{
|
1968 |
-
"name": "squizlabs/php_codesniffer",
|
1969 |
-
"version": "3.4.2",
|
1970 |
-
"source": {
|
1971 |
-
"type": "git",
|
1972 |
-
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
1973 |
-
"reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8"
|
1974 |
-
},
|
1975 |
-
"dist": {
|
1976 |
-
"type": "zip",
|
1977 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
|
1978 |
-
"reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
|
1979 |
-
"shasum": ""
|
1980 |
-
},
|
1981 |
-
"require": {
|
1982 |
-
"ext-simplexml": "*",
|
1983 |
-
"ext-tokenizer": "*",
|
1984 |
-
"ext-xmlwriter": "*",
|
1985 |
-
"php": ">=5.4.0"
|
1986 |
-
},
|
1987 |
-
"require-dev": {
|
1988 |
-
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
|
1989 |
-
},
|
1990 |
-
"bin": [
|
1991 |
-
"bin/phpcs",
|
1992 |
-
"bin/phpcbf"
|
1993 |
-
],
|
1994 |
-
"type": "library",
|
1995 |
-
"extra": {
|
1996 |
-
"branch-alias": {
|
1997 |
-
"dev-master": "3.x-dev"
|
1998 |
-
}
|
1999 |
-
},
|
2000 |
-
"notification-url": "https://packagist.org/downloads/",
|
2001 |
-
"license": [
|
2002 |
-
"BSD-3-Clause"
|
2003 |
-
],
|
2004 |
-
"authors": [
|
2005 |
-
{
|
2006 |
-
"name": "Greg Sherwood",
|
2007 |
-
"role": "lead"
|
2008 |
-
}
|
2009 |
-
],
|
2010 |
-
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
|
2011 |
-
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
|
2012 |
-
"keywords": [
|
2013 |
-
"phpcs",
|
2014 |
-
"standards"
|
2015 |
-
],
|
2016 |
-
"time": "2019-04-10T23:49:02+00:00"
|
2017 |
-
},
|
2018 |
{
|
2019 |
"name": "symfony/polyfill-ctype",
|
2020 |
"version": "v1.12.0",
|
@@ -2182,100 +2131,6 @@
|
|
2182 |
"validate"
|
2183 |
],
|
2184 |
"time": "2018-12-25T11:19:39+00:00"
|
2185 |
-
},
|
2186 |
-
{
|
2187 |
-
"name": "wimg/php-compatibility",
|
2188 |
-
"version": "8.2.0",
|
2189 |
-
"source": {
|
2190 |
-
"type": "git",
|
2191 |
-
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
|
2192 |
-
"reference": "eaf613c1a8265bcfd7b0ab690783f2aef519f78a"
|
2193 |
-
},
|
2194 |
-
"dist": {
|
2195 |
-
"type": "zip",
|
2196 |
-
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/eaf613c1a8265bcfd7b0ab690783f2aef519f78a",
|
2197 |
-
"reference": "eaf613c1a8265bcfd7b0ab690783f2aef519f78a",
|
2198 |
-
"shasum": ""
|
2199 |
-
},
|
2200 |
-
"require": {
|
2201 |
-
"php": ">=5.3",
|
2202 |
-
"squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
|
2203 |
-
},
|
2204 |
-
"conflict": {
|
2205 |
-
"squizlabs/php_codesniffer": "2.6.2"
|
2206 |
-
},
|
2207 |
-
"require-dev": {
|
2208 |
-
"phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
|
2209 |
-
},
|
2210 |
-
"suggest": {
|
2211 |
-
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
|
2212 |
-
"roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
|
2213 |
-
},
|
2214 |
-
"type": "phpcodesniffer-standard",
|
2215 |
-
"autoload": {
|
2216 |
-
"psr-4": {
|
2217 |
-
"PHPCompatibility\\": "PHPCompatibility/"
|
2218 |
-
}
|
2219 |
-
},
|
2220 |
-
"notification-url": "https://packagist.org/downloads/",
|
2221 |
-
"license": [
|
2222 |
-
"LGPL-3.0-or-later"
|
2223 |
-
],
|
2224 |
-
"authors": [
|
2225 |
-
{
|
2226 |
-
"name": "Wim Godden",
|
2227 |
-
"role": "lead"
|
2228 |
-
}
|
2229 |
-
],
|
2230 |
-
"description": "A set of sniffs for PHP_CodeSniffer that checks for PHP version compatibility.",
|
2231 |
-
"homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
|
2232 |
-
"keywords": [
|
2233 |
-
"compatibility",
|
2234 |
-
"phpcs",
|
2235 |
-
"standards"
|
2236 |
-
],
|
2237 |
-
"abandoned": "phpcompatibility/php-compatibility",
|
2238 |
-
"time": "2018-07-17T13:42:26+00:00"
|
2239 |
-
},
|
2240 |
-
{
|
2241 |
-
"name": "wp-coding-standards/wpcs",
|
2242 |
-
"version": "0.14.1",
|
2243 |
-
"source": {
|
2244 |
-
"type": "git",
|
2245 |
-
"url": "https://github.com/WordPress/WordPress-Coding-Standards.git",
|
2246 |
-
"reference": "cf6b310caad735816caef7573295f8a534374706"
|
2247 |
-
},
|
2248 |
-
"dist": {
|
2249 |
-
"type": "zip",
|
2250 |
-
"url": "https://api.github.com/repos/WordPress/WordPress-Coding-Standards/zipball/cf6b310caad735816caef7573295f8a534374706",
|
2251 |
-
"reference": "cf6b310caad735816caef7573295f8a534374706",
|
2252 |
-
"shasum": ""
|
2253 |
-
},
|
2254 |
-
"require": {
|
2255 |
-
"php": ">=5.3",
|
2256 |
-
"squizlabs/php_codesniffer": "^2.9.0 || ^3.0.2"
|
2257 |
-
},
|
2258 |
-
"suggest": {
|
2259 |
-
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3"
|
2260 |
-
},
|
2261 |
-
"type": "phpcodesniffer-standard",
|
2262 |
-
"notification-url": "https://packagist.org/downloads/",
|
2263 |
-
"license": [
|
2264 |
-
"MIT"
|
2265 |
-
],
|
2266 |
-
"authors": [
|
2267 |
-
{
|
2268 |
-
"name": "Contributors",
|
2269 |
-
"homepage": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/graphs/contributors"
|
2270 |
-
}
|
2271 |
-
],
|
2272 |
-
"description": "PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions",
|
2273 |
-
"keywords": [
|
2274 |
-
"phpcs",
|
2275 |
-
"standards",
|
2276 |
-
"wordpress"
|
2277 |
-
],
|
2278 |
-
"time": "2018-02-16T01:57:48+00:00"
|
2279 |
}
|
2280 |
],
|
2281 |
"aliases": [],
|
4 |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
5 |
"This file is @generated automatically"
|
6 |
],
|
7 |
+
"content-hash": "78878741c3760b23bd670ce4e3dbbaa3",
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "monolog/monolog",
|
1964 |
"homepage": "https://github.com/sebastianbergmann/version",
|
1965 |
"time": "2016-10-03T07:35:21+00:00"
|
1966 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1967 |
{
|
1968 |
"name": "symfony/polyfill-ctype",
|
1969 |
"version": "v1.12.0",
|
2131 |
"validate"
|
2132 |
],
|
2133 |
"time": "2018-12-25T11:19:39+00:00"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2134 |
}
|
2135 |
],
|
2136 |
"aliases": [],
|
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.0
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
@@ -37,8 +37,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
37 |
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
-
$plugin_version = '2.0
|
41 |
-
$plugin_release_timestamp = '2019-08-13
|
|
|
42 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
43 |
|
44 |
if ( ! defined( 'FCF_VERSION' ) ) {
|
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.1.0
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
37 |
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
+
$plugin_version = '2.1.0';
|
41 |
+
$plugin_release_timestamp = '2019-08-22 13:10';
|
42 |
+
|
43 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
44 |
|
45 |
if ( ! defined( 'FCF_VERSION' ) ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.2.0
|
7 |
-
Stable tag: 2.0
|
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,14 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
= 2.0.8 - 2019-08-13 =
|
192 |
* Fixed fatal error when WPDesk_Tracker_Factory is not loaded by autoloader
|
193 |
|
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.2.0
|
7 |
+
Stable tag: 2.1.0
|
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 |
+
= 2.1.0 - 2019-08-21 =
|
192 |
+
* Fixed integration with Flexible Invoices invoice_ask field
|
193 |
+
* Added filter flexible_checkout_fields_invoices_integration_enabled
|
194 |
+
|
195 |
+
= 2.0.10 - 2019-08-19 =
|
196 |
+
* Fixed required field validation for html field
|
197 |
+
* Fixed "display on" section in custom sections
|
198 |
+
|
199 |
= 2.0.8 - 2019-08-13 =
|
200 |
* Fixed fatal error when WPDesk_Tracker_Factory is not loaded by autoloader
|
201 |
|
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 ComposerAutoloaderInit3df23aa6c31cef71bde1c46b53c7af85::getLoader();
|
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 ComposerAutoloaderInit4ffc23bc70c3f16b6cd9f27f1b1cf958
|
|
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) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit4ffc23bc70c3f16b6cd9f27f1b1cf958
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit3df23aa6c31cef71bde1c46b53c7af85
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit3df23aa6c31cef71bde1c46b53c7af85', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit3df23aa6c31cef71bde1c46b53c7af85', '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\ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire3df23aa6c31cef71bde1c46b53c7af85($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire3df23aa6c31cef71bde1c46b53c7af85($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
|
@@ -281,9 +281,9 @@ class ComposerStaticInit4ffc23bc70c3f16b6cd9f27f1b1cf958
|
|
281 |
public static function getInitializer(ClassLoader $loader)
|
282 |
{
|
283 |
return \Closure::bind(function () use ($loader) {
|
284 |
-
$loader->prefixLengthsPsr4 =
|
285 |
-
$loader->prefixDirsPsr4 =
|
286 |
-
$loader->classMap =
|
287 |
|
288 |
}, null, ClassLoader::class);
|
289 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
|
281 |
public static function getInitializer(ClassLoader $loader)
|
282 |
{
|
283 |
return \Closure::bind(function () use ($loader) {
|
284 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85::$prefixLengthsPsr4;
|
285 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85::$prefixDirsPsr4;
|
286 |
+
$loader->classMap = ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85::$classMap;
|
287 |
|
288 |
}, null, ClassLoader::class);
|
289 |
}
|