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

Version Description

  • 2017-10-25 =
  • Fixed docs links
  • Fixed some warnings in WooCommerce dashboard
Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

class/inspireCheckoutFieldsSettings.php CHANGED
@@ -145,7 +145,13 @@
145
  $args['tabs']['pro'] = __( 'Custom Sections', 'flexible-checkout-fields' );
146
  }
147
 
148
- include( 'views/settings-tabs.php' );
 
 
 
 
 
 
149
 
150
  switch ($current_tab) {
151
  case 'settings':
145
  $args['tabs']['pro'] = __( 'Custom Sections', 'flexible-checkout-fields' );
146
  }
147
 
148
+ $docs_link = 'https://www.wpdesk.net/docs/flexible-checkout-fields-pro-woocommerce-docs/';
149
+ if ( get_locale() === 'pl_PL' ) {
150
+ $docs_link = 'https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/';
151
+ }
152
+ $docs_link .= '?utm_source=wp-admin-plugins&utm_medium=quick-link&utm_campaign=flexible-checkout-fields-docs-link';
153
+
154
+ include( 'views/settings-tabs.php' );
155
 
156
  switch ($current_tab) {
157
  case 'settings':
class/views/settings-tabs.php CHANGED
@@ -5,4 +5,4 @@
5
  <?php endforeach; ?>
6
  </h2>
7
 
8
- <p><?php _e( 'Read the <a href="https://www.wpdesk.net/docs/flexible-checkout-fields-docs/?utm_source=flexible-checkout-fields-settings&utm_medium=link&utm_campaign=flexible-checkout-fields-docs-link" target="_blank">configuration manual &rarr;', 'flexible-checkout-fields' ); ?></a></p>
5
  <?php endforeach; ?>
6
  </h2>
7
 
8
+ <p><?php echo sprintf( __( 'Read the %sconfiguration manual &rarr;%s', 'flexible-checkout-fields' ), '<a href="' . $docs_link . '" target="_blank">', '</a>' ); ?></p>
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.3
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.0
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
@@ -481,7 +481,6 @@
481
  $new[$type][$key]['priority'] = $priority;
482
  }
483
  }
484
- //error_log(print_r($new,true));
485
  if ( $request_type == null ) {
486
  if ( !empty($fields['account'] ) ) {
487
  $new['account'] = $fields['account'];
@@ -826,51 +825,54 @@
826
  if ( !empty($settings ) ) {
827
 
828
  foreach ( $settings as $key => $type ) {
829
- foreach ( $type as $field ) {
830
- if( $field['visible'] == 0 && ( isset( $field['custom_field'] ) && $field['custom_field'] == 1 ) ) {
831
-
832
- $return = false;
833
-
834
- $return = apply_filters( 'flexible_checkout_fields_user_fields', $return, $field, $user );
835
-
836
- if ( $return === false ) {
837
-
838
- switch ( $field['type'] ) {
839
- case 'textarea':
840
- $fields[] = '
841
- <tr>
842
- <th><label for="'.$field['name'].'">'.$field['label'].'</label></th>
843
- <td>
844
- <textarea name="'.$field['name'].'" id="'.$field['name'].'" class="regular-text" rows="5" cols="30">'.esc_attr( get_the_author_meta( $field['name'], $user->ID ) ).'</textarea><br /><span class="description"></span>
845
- </td>
846
- </tr>
847
- ';
848
- break;
849
-
850
- default:
851
- $fields[] = '
852
- <tr>
853
- <th><label for="'.$field['name'].'">'.$field['label'].'</label></th>
854
- <td>
855
- <input type="text" name="'.$field['name'].'" id="'.$field['name'].'" value="'.esc_attr( get_the_author_meta( $field['name'], $user->ID ) ).'" class="regular-text" /><br /><span class="description"></span>
856
- </td>
857
- </tr>
858
- ';
859
- break;
860
- }
861
- }
862
- else {
863
- if ( $return != '' ) {
864
- $fields[] = $return;
865
- }
866
- }
867
- }
868
- }
 
 
 
 
 
 
 
869
  }
870
- echo '<h3>'. __( 'Additional Information', 'flexible-checkout-fields' ).'</h3>';
871
- echo '<table class="form-table">';
872
- echo implode('', $fields);
873
- echo '</table>';
874
  }
875
  }
876
 
@@ -901,7 +903,10 @@
901
  */
902
  public function linksFilter( $links ) {
903
 
904
- $docs_link = __( 'https://www.wpdesk.net/docs/flexible-checkout-fields-pro-woocommerce-docs/', 'flexible-checkout-fields' );
 
 
 
905
  $docs_link .= '?utm_source=wp-admin-plugins&utm_medium=quick-link&utm_campaign=flexible-checkout-fields-docs-link';
906
 
907
  $plugin_links = array(
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.4
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.1
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
481
  $new[$type][$key]['priority'] = $priority;
482
  }
483
  }
 
484
  if ( $request_type == null ) {
485
  if ( !empty($fields['account'] ) ) {
486
  $new['account'] = $fields['account'];
825
  if ( !empty($settings ) ) {
826
 
827
  foreach ( $settings as $key => $type ) {
828
+ if ( is_array( $type ) ) {
829
+ foreach ( $type as $field ) {
830
+ if ( $field['visible'] == 0 && ( isset( $field['custom_field'] ) && $field['custom_field'] == 1 ) ) {
831
+
832
+ $return = false;
833
+
834
+ $return = apply_filters( 'flexible_checkout_fields_user_fields', $return, $field, $user );
835
+
836
+ if ( $return === false ) {
837
+
838
+ switch ( $field['type'] ) {
839
+ case 'textarea':
840
+ $fields[] = '
841
+ <tr>
842
+ <th><label for="' . $field['name'] . '">' . $field['label'] . '</label></th>
843
+ <td>
844
+ <textarea name="' . $field['name'] . '" id="' . $field['name'] . '" class="regular-text" rows="5" cols="30">' . esc_attr( get_the_author_meta( $field['name'], $user->ID ) ) . '</textarea><br /><span class="description"></span>
845
+ </td>
846
+ </tr>
847
+ ';
848
+ break;
849
+
850
+ default:
851
+ $fields[] = '
852
+ <tr>
853
+ <th><label for="' . $field['name'] . '">' . $field['label'] . '</label></th>
854
+ <td>
855
+ <input type="text" name="' . $field['name'] . '" id="' . $field['name'] . '" value="' . esc_attr( get_the_author_meta( $field['name'], $user->ID ) ) . '" class="regular-text" /><br /><span class="description"></span>
856
+ </td>
857
+ </tr>
858
+ ';
859
+ break;
860
+ }
861
+ } else {
862
+ if ( $return != '' ) {
863
+ $fields[] = $return;
864
+ }
865
+ }
866
+ }
867
+ }
868
+ }
869
+ }
870
+ if ( isset( $fields ) ) {
871
+ echo '<h3>' . __( 'Additional Information', 'flexible-checkout-fields' ) . '</h3>';
872
+ echo '<table class="form-table">';
873
+ echo implode( '', $fields );
874
+ echo '</table>';
875
  }
 
 
 
 
876
  }
877
  }
878
 
903
  */
904
  public function linksFilter( $links ) {
905
 
906
+ $docs_link = 'https://www.wpdesk.net/docs/flexible-checkout-fields-pro-woocommerce-docs/';
907
+ if ( get_locale() === 'pl_PL' ) {
908
+ $docs_link = 'https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/';
909
+ }
910
  $docs_link .= '?utm_source=wp-admin-plugins&utm_medium=quick-link&utm_campaign=flexible-checkout-fields-docs-link';
911
 
912
  $plugin_links = array(
lang/flexible-checkout-fields-pl_PL.mo CHANGED
Binary file
lang/flexible-checkout-fields-pl_PL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Flexible Checkout Fields\n"
4
- "POT-Creation-Date: 2017-10-10 13:36+0200\n"
5
- "PO-Revision-Date: 2017-10-10 13:37+0200\n"
6
  "Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
7
  "Language-Team: Maciej Swoboda <maciej.swoboda@gmail.com>\n"
8
  "Language: pl_PL\n"
@@ -71,7 +71,7 @@ msgstr ""
71
  "Notatka do twojego zamówienia, np. informacje o dostarczeniu przesyłki."
72
 
73
  #: class/inspireCheckoutFieldsSettings.php:136
74
- #: class/views/settings-settings.php:11 flexible-checkout-fields.php:908
75
  msgid "Settings"
76
  msgstr "Ustawienia"
77
 
@@ -301,16 +301,9 @@ msgstr ""
301
  "wpływ na wygląd twojej strony."
302
 
303
  #: class/views/settings-tabs.php:8
304
- msgid ""
305
- "Read the <a href=\"https://www.wpdesk.net/docs/flexible-checkout-fields-"
306
- "docs/?utm_source=flexible-checkout-fields-"
307
- "settings&utm_medium=link&utm_campaign=flexible-checkout-fields-docs-link\" "
308
- "target=\"_blank\">configuration manual &rarr;"
309
- msgstr ""
310
- "Przeczytaj <a href=\"https://www.wpdesk.pl/docs/woocommerce-checkout-fields-"
311
- "docs/?utm_source=flexible-checkout-fields-"
312
- "settings&utm_medium=link&utm_campaign=flexible-checkout-fields-docs-link\" "
313
- "target=\"_blank\">instrukcję konfiguracji &rarr;"
314
 
315
  #: flexible-checkout-fields.php:169
316
  msgid "Billing"
@@ -388,28 +381,23 @@ msgstr "Następny"
388
  msgid "Previous"
389
  msgstr "Poprzedni"
390
 
391
- #: flexible-checkout-fields.php:712 flexible-checkout-fields.php:870
392
  msgid "Additional Information"
393
  msgstr "Dodatkowe informacje"
394
 
395
- #: flexible-checkout-fields.php:904
396
- msgid ""
397
- "https://www.wpdesk.net/docs/flexible-checkout-fields-pro-woocommerce-docs/"
398
- msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
399
-
400
- #: flexible-checkout-fields.php:909
401
  msgid "Docs"
402
  msgstr "Docs"
403
 
404
- #: flexible-checkout-fields.php:910
405
  msgid "Support"
406
  msgstr "Wsparcie"
407
 
408
- #: flexible-checkout-fields.php:917
409
  msgid "Upgrade"
410
  msgstr "Kup PRO"
411
 
412
- #: flexible-checkout-fields.php:936
413
  msgid "Advanced"
414
  msgstr "Zaawansowane"
415
 
@@ -606,6 +594,21 @@ msgstr "WP Desk"
606
  msgid "https://www.wpdesk.net/"
607
  msgstr "https://www.wpdesk.pl/"
608
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
609
  #~ msgid "https://www.wpdesk.net/docs/flexible-checkout-fields-docs/"
610
  #~ msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
611
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Flexible Checkout Fields\n"
4
+ "POT-Creation-Date: 2017-10-25 16:39+0200\n"
5
+ "PO-Revision-Date: 2017-10-25 16:40+0200\n"
6
  "Last-Translator: Piotr Jabłonowski <piotr.jablonowski@wpdesk.net>\n"
7
  "Language-Team: Maciej Swoboda <maciej.swoboda@gmail.com>\n"
8
  "Language: pl_PL\n"
71
  "Notatka do twojego zamówienia, np. informacje o dostarczeniu przesyłki."
72
 
73
  #: class/inspireCheckoutFieldsSettings.php:136
74
+ #: class/views/settings-settings.php:11 flexible-checkout-fields.php:913
75
  msgid "Settings"
76
  msgstr "Ustawienia"
77
 
301
  "wpływ na wygląd twojej strony."
302
 
303
  #: class/views/settings-tabs.php:8
304
+ #, php-format
305
+ msgid "Read the %sconfiguration manual &rarr;%s"
306
+ msgstr "Przeczytaj %sdokumentację wtyczki &rarr;%s"
 
 
 
 
 
 
 
307
 
308
  #: flexible-checkout-fields.php:169
309
  msgid "Billing"
381
  msgid "Previous"
382
  msgstr "Poprzedni"
383
 
384
+ #: flexible-checkout-fields.php:711 flexible-checkout-fields.php:871
385
  msgid "Additional Information"
386
  msgstr "Dodatkowe informacje"
387
 
388
+ #: flexible-checkout-fields.php:914
 
 
 
 
 
389
  msgid "Docs"
390
  msgstr "Docs"
391
 
392
+ #: flexible-checkout-fields.php:915
393
  msgid "Support"
394
  msgstr "Wsparcie"
395
 
396
+ #: flexible-checkout-fields.php:922
397
  msgid "Upgrade"
398
  msgstr "Kup PRO"
399
 
400
+ #: flexible-checkout-fields.php:941
401
  msgid "Advanced"
402
  msgstr "Zaawansowane"
403
 
594
  msgid "https://www.wpdesk.net/"
595
  msgstr "https://www.wpdesk.pl/"
596
 
597
+ #~ msgid ""
598
+ #~ "Read the <a href=\"https://www.wpdesk.net/docs/flexible-checkout-fields-"
599
+ #~ "docs/?utm_source=flexible-checkout-fields-"
600
+ #~ "settings&utm_medium=link&utm_campaign=flexible-checkout-fields-docs-link"
601
+ #~ "\" target=\"_blank\">configuration manual &rarr;"
602
+ #~ msgstr ""
603
+ #~ "Przeczytaj <a href=\"https://www.wpdesk.pl/docs/woocommerce-checkout-"
604
+ #~ "fields-docs/?utm_source=flexible-checkout-fields-"
605
+ #~ "settings&utm_medium=link&utm_campaign=flexible-checkout-fields-docs-link"
606
+ #~ "\" target=\"_blank\">instrukcję konfiguracji &rarr;"
607
+
608
+ #~ msgid ""
609
+ #~ "https://www.wpdesk.net/docs/flexible-checkout-fields-pro-woocommerce-docs/"
610
+ #~ msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
611
+
612
  #~ msgid "https://www.wpdesk.net/docs/flexible-checkout-fields-docs/"
613
  #~ msgstr "https://www.wpdesk.pl/docs/woocommerce-checkout-fields-docs/"
614
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Flexible Checkout Fields for WooCommerce ===
2
- Contributors: wpdesk, swoboda, jablonowski, barczakszymon, ospiotr
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: 4.9
7
- Stable tag: 1.5.3
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -165,6 +165,10 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
165
 
166
  == Changelog ==
167
 
 
 
 
 
168
  = 1.5.3 - 2017-10-10 =
169
  * Added support for WooCommerce 3.2
170
  * Dropped support for WooCommerce 2.5.x (the plugin may still work but we do not declare official support)
1
  === Flexible Checkout Fields for WooCommerce ===
2
+ 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: 4.9
7
+ Stable tag: 1.5.4
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.4 - 2017-10-25 =
169
+ * Fixed docs links
170
+ * Fixed some warnings in WooCommerce dashboard
171
+
172
  = 1.5.3 - 2017-10-10 =
173
  * Added support for WooCommerce 3.2
174
  * Dropped support for WooCommerce 2.5.x (the plugin may still work but we do not declare official support)