Version Description
- 2017-11-08 =
- Fixed a bug with character encoding in emails
- Fixed a bug with required fields if option is unchecked
- Fixed fields position in My Account in Addresses tab
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 1.5.5 |
Comparing to | |
See all releases |
Code changes from version 1.5.4 to 1.5.5
- class/tracker.php +12 -0
- flexible-checkout-fields.php +7 -4
- readme.txt +6 -1
class/tracker.php
CHANGED
@@ -188,3 +188,15 @@ if ( !function_exists( 'wpdesk_activated_plugin_activation_date' ) ) {
|
|
188 |
}
|
189 |
add_action( 'activated_plugin', 'wpdesk_activated_plugin_activation_date', 10, 2 );
|
190 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
}
|
189 |
add_action( 'activated_plugin', 'wpdesk_activated_plugin_activation_date', 10, 2 );
|
190 |
}
|
191 |
+
|
192 |
+
if ( !function_exists( 'wpdesk_tracker_enabled' ) ) {
|
193 |
+
function wpdesk_tracker_enabled() {
|
194 |
+
$tracker_enabled = true;
|
195 |
+
if ( !empty( $_SERVER['SERVER_ADDR'] ) && $_SERVER['SERVER_ADDR'] == '127.0.0.1' ) {
|
196 |
+
$tracker_enabled = false;
|
197 |
+
}
|
198 |
+
return apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled );
|
199 |
+
// add_filter( 'wpdesk_tracker_enabled', '__return_true' );
|
200 |
+
// add_filter( 'wpdesk_tracker_do_not_ask', '__return_true' );
|
201 |
+
}
|
202 |
+
}
|
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: 1.5.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
@@ -11,7 +11,7 @@
|
|
11 |
Requires at least: 4.5
|
12 |
Tested up to: 4.9
|
13 |
WC requires at least: 2.6.14
|
14 |
-
WC tested up to: 3.2.
|
15 |
|
16 |
Copyright 2017 WP Desk Ltd.
|
17 |
|
@@ -142,7 +142,7 @@
|
|
142 |
}
|
143 |
|
144 |
public function woocommerce_get_country_locale( $locale ) {
|
145 |
-
if ( is_checkout() ) {
|
146 |
foreach ( $locale as $country => $fields ) {
|
147 |
foreach ( $fields as $field => $settings ) {
|
148 |
unset( $locale[ $country ][ $field ]['priority'] );
|
@@ -419,6 +419,9 @@
|
|
419 |
}
|
420 |
else{
|
421 |
$new[$key][$field['name']]['required'] = false;
|
|
|
|
|
|
|
422 |
}
|
423 |
if ( isset( $field['label'] ) ) {
|
424 |
$new[ $key ][ $field['name'] ]['label'] = stripcslashes( wpdesk__( $field['label'], 'flexible-checkout-fields' ) );
|
@@ -708,7 +711,7 @@
|
|
708 |
}
|
709 |
if( count($return) > 0 ) {
|
710 |
echo '<div class="inspire_checkout_fields_additional_information">';
|
711 |
-
echo '<
|
712 |
echo '<p>'.implode('<br />', $return).'</p>';
|
713 |
echo '</div>';
|
714 |
}
|
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.5.5
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
11 |
Requires at least: 4.5
|
12 |
Tested up to: 4.9
|
13 |
WC requires at least: 2.6.14
|
14 |
+
WC tested up to: 3.2.3
|
15 |
|
16 |
Copyright 2017 WP Desk Ltd.
|
17 |
|
142 |
}
|
143 |
|
144 |
public function woocommerce_get_country_locale( $locale ) {
|
145 |
+
if ( is_checkout() || is_account_page() ) {
|
146 |
foreach ( $locale as $country => $fields ) {
|
147 |
foreach ( $fields as $field => $settings ) {
|
148 |
unset( $locale[ $country ][ $field ]['priority'] );
|
419 |
}
|
420 |
else{
|
421 |
$new[$key][$field['name']]['required'] = false;
|
422 |
+
if ( isset( $new[$key][$field['name']]['validate'] ) ) {
|
423 |
+
unset( $new[$key][$field['name']]['validate'] );
|
424 |
+
}
|
425 |
}
|
426 |
if ( isset( $field['label'] ) ) {
|
427 |
$new[ $key ][ $field['name'] ]['label'] = stripcslashes( wpdesk__( $field['label'], 'flexible-checkout-fields' ) );
|
711 |
}
|
712 |
if( count($return) > 0 ) {
|
713 |
echo '<div class="inspire_checkout_fields_additional_information">';
|
714 |
+
echo '<h3>'. __( 'Additional Information', 'flexible-checkout-fields' ) .'</h3>';
|
715 |
echo '<p>'.implode('<br />', $return).'</p>';
|
716 |
echo '</div>';
|
717 |
}
|
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: 4.9
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -165,6 +165,11 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
|
|
|
|
168 |
= 1.5.4 - 2017-10-25 =
|
169 |
* Fixed docs links
|
170 |
* Fixed some warnings in WooCommerce dashboard
|
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: 4.9
|
7 |
+
Stable tag: 1.5.5
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 1.5.5 - 2017-11-08 =
|
169 |
+
* Fixed a bug with character encoding in emails
|
170 |
+
* Fixed a bug with required fields if option is unchecked
|
171 |
+
* Fixed fields position in My Account in Addresses tab
|
172 |
+
|
173 |
= 1.5.4 - 2017-10-25 =
|
174 |
* Fixed docs links
|
175 |
* Fixed some warnings in WooCommerce dashboard
|