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

Version Description

  • 2019-08-06 =
  • Postcode validation is available only in billing and shipping sections
Download this release

Release Info

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

Code changes from version 2.0.4 to 2.0.5

classes/filed-validation.php CHANGED
@@ -50,26 +50,34 @@ class Flexible_Checkout_Fields_Field_Validation {
50
  }
51
 
52
  /**
 
 
 
53
  * @return array
54
  */
55
- public function get_custom_validations() {
56
- return apply_filters( 'flexible_checkout_fields_custom_validation', array() );
57
  }
58
 
59
  /**
 
 
 
60
  * @return array
61
  */
62
- public function get_validation_options() {
63
  $validation_options = array(
64
- '' => __( 'Default', 'flexible-checkout-fields' ),
65
- 'none' => __( 'None', 'flexible-checkout-fields' ),
66
- 'email' => __( 'Email', 'flexible-checkout-fields' ),
67
- 'phone' => __( 'Phone', 'flexible-checkout-fields' ),
68
- 'postcode' => __( 'Post code', 'flexible-checkout-fields' ),
69
  );
70
- $custom_validations = $this->get_custom_validations();
 
 
 
71
  foreach ( $custom_validations as $custom_validation_key => $custom_validation ) {
72
- $validation_options[$custom_validation_key] = $custom_validation['label'];
73
  }
74
  return $validation_options;
75
  }
50
  }
51
 
52
  /**
53
+ * Get custom validations.
54
+ *
55
+ * @param string $section .
56
  * @return array
57
  */
58
+ public function get_custom_validations( $section = '' ) {
59
+ return apply_filters( 'flexible_checkout_fields_custom_validation', array(), $section );
60
  }
61
 
62
  /**
63
+ * Get validation options.
64
+ *
65
+ * @param string $section .
66
  * @return array
67
  */
68
+ public function get_validation_options( $section = '' ) {
69
  $validation_options = array(
70
+ '' => __( 'Default', 'flexible-checkout-fields' ),
71
+ 'none' => __( 'None', 'flexible-checkout-fields' ),
72
+ 'email' => __( 'Email', 'flexible-checkout-fields' ),
73
+ 'phone' => __( 'Phone', 'flexible-checkout-fields' ),
 
74
  );
75
+ if ( in_array( $section, array( 'billing', 'shipping' ), true ) ) {
76
+ $validation_options['postcode'] = __( 'Post code', 'flexible-checkout-fields' );
77
+ }
78
+ $custom_validations = $this->get_custom_validations( $section );
79
  foreach ( $custom_validations as $custom_validation_key => $custom_validation ) {
80
+ $validation_options[ $custom_validation_key ] = $custom_validation['label'];
81
  }
82
  return $validation_options;
83
  }
classes/views/settings-fields.php CHANGED
@@ -1,8 +1,6 @@
1
  <?php
2
  global $woocommerce;
3
 
4
- $validation_options = $this->plugin->field_validation->get_validation_options();
5
-
6
  $checkout_fields = $args['checkout_fields'];
7
  $settings = get_option( 'inspire_checkout_fields_settings' );
8
 
@@ -23,6 +21,7 @@ foreach ( $plugin->sections as $section ) {
23
  $current_section = $section;
24
  }
25
  }
 
26
 
27
  ?>
28
 
1
  <?php
2
  global $woocommerce;
3
 
 
 
4
  $checkout_fields = $args['checkout_fields'];
5
  $settings = get_option( 'inspire_checkout_fields_settings' );
6
 
21
  $current_section = $section;
22
  }
23
  }
24
+ $validation_options = $this->plugin->field_validation->get_validation_options( $current_section['section'] );
25
 
26
  ?>
27
 
composer.lock CHANGED
@@ -330,16 +330,16 @@
330
  },
331
  {
332
  "name": "wpdesk/wp-notice",
333
- "version": "3.1",
334
  "source": {
335
  "type": "git",
336
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
337
- "reference": "9424a1280525a78a6468036dc6bdafc3183245ec"
338
  },
339
  "dist": {
340
  "type": "zip",
341
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=9424a1280525a78a6468036dc6bdafc3183245ec",
342
- "reference": "9424a1280525a78a6468036dc6bdafc3183245ec",
343
  "shasum": ""
344
  },
345
  "require": {
@@ -380,7 +380,7 @@
380
  "notice",
381
  "wordpress"
382
  ],
383
- "time": "2019-06-25T12:08:40+00:00"
384
  },
385
  {
386
  "name": "wpdesk/wp-plugin-flow",
@@ -428,16 +428,16 @@
428
  },
429
  {
430
  "name": "wpdesk/wp-wpdesk-helper",
431
- "version": "1.3.2",
432
  "source": {
433
  "type": "git",
434
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
435
- "reference": "8ede5e7fb14c76d6a30f0f76af362360c9e9e386"
436
  },
437
  "dist": {
438
  "type": "zip",
439
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=8ede5e7fb14c76d6a30f0f76af362360c9e9e386",
440
- "reference": "8ede5e7fb14c76d6a30f0f76af362360c9e9e386",
441
  "shasum": ""
442
  },
443
  "require": {
@@ -469,20 +469,20 @@
469
  "email": "krzysiek@wpdesk.pl"
470
  }
471
  ],
472
- "time": "2019-07-04T07:12:18+00:00"
473
  },
474
  {
475
  "name": "wpdesk/wp-wpdesk-license",
476
- "version": "2.3.0",
477
  "source": {
478
  "type": "git",
479
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
480
- "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c"
481
  },
482
  "dist": {
483
  "type": "zip",
484
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
485
- "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
486
  "shasum": ""
487
  },
488
  "require": {
@@ -515,20 +515,20 @@
515
  "email": "krzysiek@wpdesk.pl"
516
  }
517
  ],
518
- "time": "2019-06-28T08:02:26+00:00"
519
  },
520
  {
521
  "name": "wpdesk/wp-wpdesk-tracker",
522
- "version": "1.0.3",
523
  "source": {
524
  "type": "git",
525
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
526
- "reference": "04e8933a047245b37fc77991e330361613e8dd63"
527
  },
528
  "dist": {
529
  "type": "zip",
530
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=04e8933a047245b37fc77991e330361613e8dd63",
531
- "reference": "04e8933a047245b37fc77991e330361613e8dd63",
532
  "shasum": ""
533
  },
534
  "require": {
@@ -555,7 +555,7 @@
555
  "email": "krzysiek@wpdesk.pl"
556
  }
557
  ],
558
- "time": "2019-04-23T13:16:55+00:00"
559
  }
560
  ],
561
  "packages-dev": [
@@ -1110,8 +1110,8 @@
1110
  "authors": [
1111
  {
1112
  "name": "Sebastian Bergmann",
1113
- "email": "sb@sebastian-bergmann.de",
1114
- "role": "lead"
1115
  }
1116
  ],
1117
  "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
@@ -1158,8 +1158,8 @@
1158
  "authors": [
1159
  {
1160
  "name": "Sebastian Bergmann",
1161
- "email": "sb@sebastian-bergmann.de",
1162
- "role": "lead"
1163
  }
1164
  ],
1165
  "description": "FilterIterator implementation that filters files based on a list of suffixes.",
@@ -1200,8 +1200,8 @@
1200
  "authors": [
1201
  {
1202
  "name": "Sebastian Bergmann",
1203
- "email": "sebastian@phpunit.de",
1204
- "role": "lead"
1205
  }
1206
  ],
1207
  "description": "Simple template engine.",
@@ -1249,8 +1249,8 @@
1249
  "authors": [
1250
  {
1251
  "name": "Sebastian Bergmann",
1252
- "email": "sb@sebastian-bergmann.de",
1253
- "role": "lead"
1254
  }
1255
  ],
1256
  "description": "Utility class for timing",
@@ -1378,8 +1378,8 @@
1378
  "authors": [
1379
  {
1380
  "name": "Sebastian Bergmann",
1381
- "email": "sebastian@phpunit.de",
1382
- "role": "lead"
1383
  }
1384
  ],
1385
  "description": "The PHP Unit Testing framework.",
@@ -1956,8 +1956,8 @@
1956
  "authors": [
1957
  {
1958
  "name": "Sebastian Bergmann",
1959
- "email": "sebastian@phpunit.de",
1960
- "role": "lead"
1961
  }
1962
  ],
1963
  "description": "Library that helps with managing the version number of Git-hosted PHP projects",
@@ -2017,16 +2017,16 @@
2017
  },
2018
  {
2019
  "name": "symfony/polyfill-ctype",
2020
- "version": "v1.11.0",
2021
  "source": {
2022
  "type": "git",
2023
  "url": "https://github.com/symfony/polyfill-ctype.git",
2024
- "reference": "82ebae02209c21113908c229e9883c419720738a"
2025
  },
2026
  "dist": {
2027
  "type": "zip",
2028
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a",
2029
- "reference": "82ebae02209c21113908c229e9883c419720738a",
2030
  "shasum": ""
2031
  },
2032
  "require": {
@@ -2038,7 +2038,7 @@
2038
  "type": "library",
2039
  "extra": {
2040
  "branch-alias": {
2041
- "dev-master": "1.11-dev"
2042
  }
2043
  },
2044
  "autoload": {
@@ -2054,13 +2054,13 @@
2054
  "MIT"
2055
  ],
2056
  "authors": [
2057
- {
2058
- "name": "Symfony Community",
2059
- "homepage": "https://symfony.com/contributors"
2060
- },
2061
  {
2062
  "name": "Gert de Pagter",
2063
  "email": "BackEndTea@gmail.com"
 
 
 
 
2064
  }
2065
  ],
2066
  "description": "Symfony polyfill for ctype functions",
@@ -2071,20 +2071,20 @@
2071
  "polyfill",
2072
  "portable"
2073
  ],
2074
- "time": "2019-02-06T07:57:58+00:00"
2075
  },
2076
  {
2077
  "name": "symfony/yaml",
2078
- "version": "v3.4.29",
2079
  "source": {
2080
  "type": "git",
2081
  "url": "https://github.com/symfony/yaml.git",
2082
- "reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996"
2083
  },
2084
  "dist": {
2085
  "type": "zip",
2086
- "url": "https://api.github.com/repos/symfony/yaml/zipball/212a27b731e5bfb735679d1ffaac82bd6a1dc996",
2087
- "reference": "212a27b731e5bfb735679d1ffaac82bd6a1dc996",
2088
  "shasum": ""
2089
  },
2090
  "require": {
@@ -2130,7 +2130,7 @@
2130
  ],
2131
  "description": "Symfony Yaml Component",
2132
  "homepage": "https://symfony.com",
2133
- "time": "2019-03-25T07:48:46+00:00"
2134
  },
2135
  {
2136
  "name": "webmozart/assert",
330
  },
331
  {
332
  "name": "wpdesk/wp-notice",
333
+ "version": "3.1.1",
334
  "source": {
335
  "type": "git",
336
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
337
+ "reference": "fe4d0a5f10613d98483cf28e25d9f8071c442d98"
338
  },
339
  "dist": {
340
  "type": "zip",
341
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=fe4d0a5f10613d98483cf28e25d9f8071c442d98",
342
+ "reference": "fe4d0a5f10613d98483cf28e25d9f8071c442d98",
343
  "shasum": ""
344
  },
345
  "require": {
380
  "notice",
381
  "wordpress"
382
  ],
383
+ "time": "2019-07-30T13:07:37+00:00"
384
  },
385
  {
386
  "name": "wpdesk/wp-plugin-flow",
428
  },
429
  {
430
  "name": "wpdesk/wp-wpdesk-helper",
431
+ "version": "1.3.3",
432
  "source": {
433
  "type": "git",
434
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
435
+ "reference": "2c5573a3f436c99d14b57c6aab12823aad221101"
436
  },
437
  "dist": {
438
  "type": "zip",
439
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=2c5573a3f436c99d14b57c6aab12823aad221101",
440
+ "reference": "2c5573a3f436c99d14b57c6aab12823aad221101",
441
  "shasum": ""
442
  },
443
  "require": {
469
  "email": "krzysiek@wpdesk.pl"
470
  }
471
  ],
472
+ "time": "2019-07-17T08:43:27+00:00"
473
  },
474
  {
475
  "name": "wpdesk/wp-wpdesk-license",
476
+ "version": "2.3.1",
477
  "source": {
478
  "type": "git",
479
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
480
+ "reference": "5b4fc358232bec1d69d35807d1aaf208067a519a"
481
  },
482
  "dist": {
483
  "type": "zip",
484
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=5b4fc358232bec1d69d35807d1aaf208067a519a",
485
+ "reference": "5b4fc358232bec1d69d35807d1aaf208067a519a",
486
  "shasum": ""
487
  },
488
  "require": {
515
  "email": "krzysiek@wpdesk.pl"
516
  }
517
  ],
518
+ "time": "2019-07-30T12:02:42+00:00"
519
  },
520
  {
521
  "name": "wpdesk/wp-wpdesk-tracker",
522
+ "version": "1.0.4",
523
  "source": {
524
  "type": "git",
525
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
526
+ "reference": "172bd87885618a8f4c83a6cdb817580da7275809"
527
  },
528
  "dist": {
529
  "type": "zip",
530
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=172bd87885618a8f4c83a6cdb817580da7275809",
531
+ "reference": "172bd87885618a8f4c83a6cdb817580da7275809",
532
  "shasum": ""
533
  },
534
  "require": {
555
  "email": "krzysiek@wpdesk.pl"
556
  }
557
  ],
558
+ "time": "2019-07-17T08:59:27+00:00"
559
  }
560
  ],
561
  "packages-dev": [
1110
  "authors": [
1111
  {
1112
  "name": "Sebastian Bergmann",
1113
+ "role": "lead",
1114
+ "email": "sb@sebastian-bergmann.de"
1115
  }
1116
  ],
1117
  "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
1158
  "authors": [
1159
  {
1160
  "name": "Sebastian Bergmann",
1161
+ "role": "lead",
1162
+ "email": "sb@sebastian-bergmann.de"
1163
  }
1164
  ],
1165
  "description": "FilterIterator implementation that filters files based on a list of suffixes.",
1200
  "authors": [
1201
  {
1202
  "name": "Sebastian Bergmann",
1203
+ "role": "lead",
1204
+ "email": "sebastian@phpunit.de"
1205
  }
1206
  ],
1207
  "description": "Simple template engine.",
1249
  "authors": [
1250
  {
1251
  "name": "Sebastian Bergmann",
1252
+ "role": "lead",
1253
+ "email": "sb@sebastian-bergmann.de"
1254
  }
1255
  ],
1256
  "description": "Utility class for timing",
1378
  "authors": [
1379
  {
1380
  "name": "Sebastian Bergmann",
1381
+ "role": "lead",
1382
+ "email": "sebastian@phpunit.de"
1383
  }
1384
  ],
1385
  "description": "The PHP Unit Testing framework.",
1956
  "authors": [
1957
  {
1958
  "name": "Sebastian Bergmann",
1959
+ "role": "lead",
1960
+ "email": "sebastian@phpunit.de"
1961
  }
1962
  ],
1963
  "description": "Library that helps with managing the version number of Git-hosted PHP projects",
2017
  },
2018
  {
2019
  "name": "symfony/polyfill-ctype",
2020
+ "version": "v1.12.0",
2021
  "source": {
2022
  "type": "git",
2023
  "url": "https://github.com/symfony/polyfill-ctype.git",
2024
+ "reference": "550ebaac289296ce228a706d0867afc34687e3f4"
2025
  },
2026
  "dist": {
2027
  "type": "zip",
2028
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4",
2029
+ "reference": "550ebaac289296ce228a706d0867afc34687e3f4",
2030
  "shasum": ""
2031
  },
2032
  "require": {
2038
  "type": "library",
2039
  "extra": {
2040
  "branch-alias": {
2041
+ "dev-master": "1.12-dev"
2042
  }
2043
  },
2044
  "autoload": {
2054
  "MIT"
2055
  ],
2056
  "authors": [
 
 
 
 
2057
  {
2058
  "name": "Gert de Pagter",
2059
  "email": "BackEndTea@gmail.com"
2060
+ },
2061
+ {
2062
+ "name": "Symfony Community",
2063
+ "homepage": "https://symfony.com/contributors"
2064
  }
2065
  ],
2066
  "description": "Symfony polyfill for ctype functions",
2071
  "polyfill",
2072
  "portable"
2073
  ],
2074
+ "time": "2019-08-06T08:03:45+00:00"
2075
  },
2076
  {
2077
  "name": "symfony/yaml",
2078
+ "version": "v3.4.30",
2079
  "source": {
2080
  "type": "git",
2081
  "url": "https://github.com/symfony/yaml.git",
2082
+ "reference": "051d045c684148060ebfc9affb7e3f5e0899d40b"
2083
  },
2084
  "dist": {
2085
  "type": "zip",
2086
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/051d045c684148060ebfc9affb7e3f5e0899d40b",
2087
+ "reference": "051d045c684148060ebfc9affb7e3f5e0899d40b",
2088
  "shasum": ""
2089
  },
2090
  "require": {
2130
  ],
2131
  "description": "Symfony Yaml Component",
2132
  "homepage": "https://symfony.com",
2133
+ "time": "2019-07-24T13:01:31+00:00"
2134
  },
2135
  {
2136
  "name": "webmozart/assert",
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: 2.0.4
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.2.2
13
  WC requires at least: 3.1.0
14
- WC tested up to: 3.6.5
15
  Requires PHP: 5.6
16
 
17
  Copyright 2017 WP Desk Ltd.
@@ -37,8 +37,8 @@ if ( ! defined( 'ABSPATH' ) ) {
37
 
38
 
39
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
40
- $plugin_version = '2.0.4';
41
- $plugin_release_timestamp = '2019-07-15 12:27';
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.0.5
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.2.0
13
  WC requires at least: 3.1.0
14
+ WC tested up to: 3.6
15
  Requires PHP: 5.6
16
 
17
  Copyright 2017 WP Desk Ltd.
37
 
38
 
39
  /* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
40
+ $plugin_version = '2.0.5';
41
+ $plugin_release_timestamp = '2019-08-07 11:22';
42
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
43
 
44
  if ( ! defined( 'FCF_VERSION' ) ) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Flexible Checkout Fields for WooCommerce ===
2
- Contributors: wpdesk,swoboda,dyszczo,grola,potreb,martapaw,jablonowski,ospiotr,przemyslawrosa,adriannagr
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.2.2
7
- Stable tag: 2.0.4
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -34,7 +34,7 @@ Want to give your customers a tip on how to fill a field? You can do it with an
34
  You do not need a customer's phone number or second line address? Just hide the fields from the checkout and you're good to go. This is just one click away. Decide to show it later? Just another click and the field shows again.
35
 
36
  = Display Fields on Other Pages =
37
- You can display the fields not only in the checkout. Just mark a specific checkbox under the ‘Display On’ tab as checked. You have 4 different locations to use:
38
  * Thank You Page
39
  * My Account - address
40
  * My Account - order
@@ -188,6 +188,9 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
188
 
189
  == Changelog ==
190
 
 
 
 
191
  = 2.0.4 - 2019-07-11 =
192
  * Fixed error while activating in multisite environment
193
 
@@ -292,11 +295,11 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
292
  * Fixed some minor issues
293
 
294
  = 1.6 - 2018-01-21 =
295
- * Added the option of disabling the display of fields in the Thank You Page and Emails, My Account
296
- * Added protection removing the field and resetting the section settings
297
- * Added the option to set custom meta name for the field
298
  * Added standard WooCommerce validation for fields
299
- * Added a filter to add custom validation
300
  * Added a field type name to the field bar
301
  * Fixed bug if WooCommerce is turn off
302
 
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: 5.2.0
7
+ Stable tag: 2.0.5
8
  Requires PHP: 5.6
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
34
  You do not need a customer's phone number or second line address? Just hide the fields from the checkout and you're good to go. This is just one click away. Decide to show it later? Just another click and the field shows again.
35
 
36
  = Display Fields on Other Pages =
37
+ You can display the fields not only in the checkout. Just mark a specific checkbox under the ‘Display On’ tab as checked. You have 4 different locations to use:
38
  * Thank You Page
39
  * My Account - address
40
  * My Account - order
188
 
189
  == Changelog ==
190
 
191
+ = 2.0.5 - 2019-08-06 =
192
+ * Postcode validation is available only in billing and shipping sections
193
+
194
  = 2.0.4 - 2019-07-11 =
195
  * Fixed error while activating in multisite environment
196
 
295
  * Fixed some minor issues
296
 
297
  = 1.6 - 2018-01-21 =
298
+ * Added the option of disabling the display of fields in the Thank You Page and Emails, My Account
299
+ * Added protection removing the field and resetting the section settings
300
+ * Added the option to set custom meta name for the field
301
  * Added standard WooCommerce validation for fields
302
+ * Added a filter to add custom validation
303
  * Added a field type name to the field bar
304
  * Fixed bug if WooCommerce is turn off
305
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInite1f0da80c27a601ba5d1dfaff24d6822::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8', '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\ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire32851010111ab92b9ebed8263ddfe2d8($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire32851010111ab92b9ebed8263ddfe2d8($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInite1f0da80c27a601ba5d1dfaff24d6822
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInite1f0da80c27a601ba5d1dfaff24d6822', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInite1f0da80c27a601ba5d1dfaff24d6822', '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\ComposerStaticInite1f0da80c27a601ba5d1dfaff24d6822::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\ComposerStaticInite1f0da80c27a601ba5d1dfaff24d6822::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequiree1f0da80c27a601ba5d1dfaff24d6822($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequiree1f0da80c27a601ba5d1dfaff24d6822($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 ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8
8
  {
9
  public static $files = array (
10
  '0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
@@ -281,9 +281,9 @@ class ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8
281
  public static function getInitializer(ClassLoader $loader)
282
  {
283
  return \Closure::bind(function () use ($loader) {
284
- $loader->prefixLengthsPsr4 = ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$prefixLengthsPsr4;
285
- $loader->prefixDirsPsr4 = ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$prefixDirsPsr4;
286
- $loader->classMap = ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$classMap;
287
 
288
  }, null, ClassLoader::class);
289
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInite1f0da80c27a601ba5d1dfaff24d6822
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 = ComposerStaticInite1f0da80c27a601ba5d1dfaff24d6822::$prefixLengthsPsr4;
285
+ $loader->prefixDirsPsr4 = ComposerStaticInite1f0da80c27a601ba5d1dfaff24d6822::$prefixDirsPsr4;
286
+ $loader->classMap = ComposerStaticInite1f0da80c27a601ba5d1dfaff24d6822::$classMap;
287
 
288
  }, null, ClassLoader::class);
289
  }
vendor/composer/installed.json CHANGED
@@ -337,17 +337,17 @@
337
  },
338
  {
339
  "name": "wpdesk/wp-notice",
340
- "version": "3.1",
341
- "version_normalized": "3.1.0.0",
342
  "source": {
343
  "type": "git",
344
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
345
- "reference": "9424a1280525a78a6468036dc6bdafc3183245ec"
346
  },
347
  "dist": {
348
  "type": "zip",
349
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=9424a1280525a78a6468036dc6bdafc3183245ec",
350
- "reference": "9424a1280525a78a6468036dc6bdafc3183245ec",
351
  "shasum": ""
352
  },
353
  "require": {
@@ -362,7 +362,7 @@
362
  "wimg/php-compatibility": "^8",
363
  "wp-coding-standards/wpcs": "^0.14.1"
364
  },
365
- "time": "2019-06-25T12:08:40+00:00",
366
  "type": "library",
367
  "installation-source": "dist",
368
  "autoload": {
@@ -439,17 +439,17 @@
439
  },
440
  {
441
  "name": "wpdesk/wp-wpdesk-helper",
442
- "version": "1.3.2",
443
- "version_normalized": "1.3.2.0",
444
  "source": {
445
  "type": "git",
446
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
447
- "reference": "8ede5e7fb14c76d6a30f0f76af362360c9e9e386"
448
  },
449
  "dist": {
450
  "type": "zip",
451
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=8ede5e7fb14c76d6a30f0f76af362360c9e9e386",
452
- "reference": "8ede5e7fb14c76d6a30f0f76af362360c9e9e386",
453
  "shasum": ""
454
  },
455
  "require": {
@@ -468,7 +468,7 @@
468
  "wimg/php-compatibility": "^8",
469
  "wp-coding-standards/wpcs": "^0.14.1"
470
  },
471
- "time": "2019-07-04T07:12:18+00:00",
472
  "type": "library",
473
  "installation-source": "dist",
474
  "autoload": {
@@ -486,17 +486,17 @@
486
  },
487
  {
488
  "name": "wpdesk/wp-wpdesk-license",
489
- "version": "2.3.0",
490
- "version_normalized": "2.3.0.0",
491
  "source": {
492
  "type": "git",
493
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
494
- "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c"
495
  },
496
  "dist": {
497
  "type": "zip",
498
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
499
- "reference": "9e5d8c2522fa8b9ca191f9b84acae677c8ae7e5c",
500
  "shasum": ""
501
  },
502
  "require": {
@@ -513,7 +513,7 @@
513
  "squizlabs/php_codesniffer": "^3.0.2",
514
  "wp-coding-standards/wpcs": "^0.14.1"
515
  },
516
- "time": "2019-06-28T08:02:26+00:00",
517
  "type": "library",
518
  "installation-source": "dist",
519
  "autoload": {
@@ -534,17 +534,17 @@
534
  },
535
  {
536
  "name": "wpdesk/wp-wpdesk-tracker",
537
- "version": "1.0.3",
538
- "version_normalized": "1.0.3.0",
539
  "source": {
540
  "type": "git",
541
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
542
- "reference": "04e8933a047245b37fc77991e330361613e8dd63"
543
  },
544
  "dist": {
545
  "type": "zip",
546
- "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=04e8933a047245b37fc77991e330361613e8dd63",
547
- "reference": "04e8933a047245b37fc77991e330361613e8dd63",
548
  "shasum": ""
549
  },
550
  "require": {
@@ -558,7 +558,7 @@
558
  "wimg/php-compatibility": "^8",
559
  "wp-coding-standards/wpcs": "^0.14.1"
560
  },
561
- "time": "2019-04-23T13:16:55+00:00",
562
  "type": "library",
563
  "installation-source": "dist",
564
  "autoload": {
337
  },
338
  {
339
  "name": "wpdesk/wp-notice",
340
+ "version": "3.1.1",
341
+ "version_normalized": "3.1.1.0",
342
  "source": {
343
  "type": "git",
344
  "url": "https://gitlab.com/wpdesk/wp-notice.git",
345
+ "reference": "fe4d0a5f10613d98483cf28e25d9f8071c442d98"
346
  },
347
  "dist": {
348
  "type": "zip",
349
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=fe4d0a5f10613d98483cf28e25d9f8071c442d98",
350
+ "reference": "fe4d0a5f10613d98483cf28e25d9f8071c442d98",
351
  "shasum": ""
352
  },
353
  "require": {
362
  "wimg/php-compatibility": "^8",
363
  "wp-coding-standards/wpcs": "^0.14.1"
364
  },
365
+ "time": "2019-07-30T13:07:37+00:00",
366
  "type": "library",
367
  "installation-source": "dist",
368
  "autoload": {
439
  },
440
  {
441
  "name": "wpdesk/wp-wpdesk-helper",
442
+ "version": "1.3.3",
443
+ "version_normalized": "1.3.3.0",
444
  "source": {
445
  "type": "git",
446
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-helper.git",
447
+ "reference": "2c5573a3f436c99d14b57c6aab12823aad221101"
448
  },
449
  "dist": {
450
  "type": "zip",
451
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-helper/repository/archive.zip?sha=2c5573a3f436c99d14b57c6aab12823aad221101",
452
+ "reference": "2c5573a3f436c99d14b57c6aab12823aad221101",
453
  "shasum": ""
454
  },
455
  "require": {
468
  "wimg/php-compatibility": "^8",
469
  "wp-coding-standards/wpcs": "^0.14.1"
470
  },
471
+ "time": "2019-07-17T08:43:27+00:00",
472
  "type": "library",
473
  "installation-source": "dist",
474
  "autoload": {
486
  },
487
  {
488
  "name": "wpdesk/wp-wpdesk-license",
489
+ "version": "2.3.1",
490
+ "version_normalized": "2.3.1.0",
491
  "source": {
492
  "type": "git",
493
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
494
+ "reference": "5b4fc358232bec1d69d35807d1aaf208067a519a"
495
  },
496
  "dist": {
497
  "type": "zip",
498
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=5b4fc358232bec1d69d35807d1aaf208067a519a",
499
+ "reference": "5b4fc358232bec1d69d35807d1aaf208067a519a",
500
  "shasum": ""
501
  },
502
  "require": {
513
  "squizlabs/php_codesniffer": "^3.0.2",
514
  "wp-coding-standards/wpcs": "^0.14.1"
515
  },
516
+ "time": "2019-07-30T12:02:42+00:00",
517
  "type": "library",
518
  "installation-source": "dist",
519
  "autoload": {
534
  },
535
  {
536
  "name": "wpdesk/wp-wpdesk-tracker",
537
+ "version": "1.0.4",
538
+ "version_normalized": "1.0.4.0",
539
  "source": {
540
  "type": "git",
541
  "url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
542
+ "reference": "172bd87885618a8f4c83a6cdb817580da7275809"
543
  },
544
  "dist": {
545
  "type": "zip",
546
+ "url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=172bd87885618a8f4c83a6cdb817580da7275809",
547
+ "reference": "172bd87885618a8f4c83a6cdb817580da7275809",
548
  "shasum": ""
549
  },
550
  "require": {
558
  "wimg/php-compatibility": "^8",
559
  "wp-coding-standards/wpcs": "^0.14.1"
560
  },
561
+ "time": "2019-07-17T08:59:27+00:00",
562
  "type": "library",
563
  "installation-source": "dist",
564
  "autoload": {
vendor/wpdesk/wp-notice/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
 
 
 
 
1
  ## [3.1.0] - 2019-06-25
2
  ### Added
3
  - close notice on .notice-dismiss-link class
4
- - source field in ajax action
1
+ ## [3.1.1] - 2019-07-30
2
+ ### Fixed
3
+ - Security for templates as side effect is generated there. Also required for prefixer compatibility
4
+
5
  ## [3.1.0] - 2019-06-25
6
  ### Added
7
  - close notice on .notice-dismiss-link class
8
+ - source field in ajax action
vendor/wpdesk/wp-notice/src/WPDesk/Notice/views/admin-head-js.php CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  <script type="text/javascript">
2
  <?php include dirname(__FILE__) . '/../../../../assets/js/notice.min.js'; ?>
3
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ } // Exit if accessed directly
5
+ ?>
6
  <script type="text/javascript">
7
  <?php include dirname(__FILE__) . '/../../../../assets/js/notice.min.js'; ?>
8
 
vendor/wpdesk/wp-wpdesk-helper/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ## [1.3.2] - 2019-07-03
2
  ### Fixed
3
  - Support for old FS with old wpdesk/log library
1
+ ## [1.3.3] - 2019-07-16
2
+ ### Fixed
3
+ - Support for old FS with old wpdesk/log library - inject null falback logger
4
+
5
  ## [1.3.2] - 2019-07-03
6
  ### Fixed
7
  - Support for old FS with old wpdesk/log library
vendor/wpdesk/wp-wpdesk-helper/src/Integration/LogsIntegration.php CHANGED
@@ -82,7 +82,9 @@ class LogsIntegration implements Hookable {
82
  if ( property_exists( $logger_factory, 'shouldLoggerBeActivated' ) ) {
83
  $logger_factory::$shouldLoggerBeActivated = $this->is_logger_active();
84
  $this->logger = $logger_factory->createWPDeskLogger();
85
- }
 
 
86
  }
87
 
88
  private function maybe_show_logging_notice() {
82
  if ( property_exists( $logger_factory, 'shouldLoggerBeActivated' ) ) {
83
  $logger_factory::$shouldLoggerBeActivated = $this->is_logger_active();
84
  $this->logger = $logger_factory->createWPDeskLogger();
85
+ } else {
86
+ $this->logger = new Logger('fallback');
87
+ }
88
  }
89
 
90
  private function maybe_show_logging_notice() {
vendor/wpdesk/wp-wpdesk-license/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ## [2.3.0] - 2019-06-26
2
  ### Added
3
  - InfoActivationBuilder with capability to set info if plugin subscription is active
1
+ ## [2.3.1] - 2019-07-30
2
+ ### Fixed
3
+ - Security for templates as side effect is generated there. Also required for prefixer compatibility
4
+
5
  ## [2.3.0] - 2019-06-26
6
  ### Added
7
  - InfoActivationBuilder with capability to set info if plugin subscription is active
vendor/wpdesk/wp-wpdesk-license/src/Page/License/views/license-actions.php CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  <form method="POST">
2
  <table class="wpdesk_helper_key_table">
3
  <tr>
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ } // Exit if accessed directly
5
+ ?>
6
  <form method="POST">
7
  <table class="wpdesk_helper_key_table">
8
  <tr>
vendor/wpdesk/wp-wpdesk-license/src/Page/License/views/licenses.php CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  <div class="wrap">
2
  <?php /* screen_icon(); */ ?>
3
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ } // Exit if accessed directly
5
+ ?>
6
  <div class="wrap">
7
  <?php /* screen_icon(); */ ?>
8
 
vendor/wpdesk/wp-wpdesk-tracker/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  ## [1.0.2] - 2019-04-23
2
  ### Fixed
3
  - Should enable tracker function
1
+ ## [1.0.4] - 2019-07-16
2
+ ### Fixed
3
+ - Removed console.log
4
+
5
  ## [1.0.2] - 2019-04-23
6
  ### Fixed
7
  - Should enable tracker function
vendor/wpdesk/wp-wpdesk-tracker/src/views/tracker-plugins-footer.php CHANGED
@@ -1,18 +1,12 @@
1
  <?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
2
  <script type="text/javascript">
3
  var wpdesk_track_deactivation_plugins = <?php echo json_encode( $plugins ); ?>;
4
- console.log(wpdesk_track_deactivation_plugins);
5
  jQuery("span.deactivate a").click(function(e){
6
  var is_tracked = false;
7
- console.log(jQuery(this).closest('tr'));
8
  var data_plugin = jQuery(this).closest('tr').attr('data-plugin');
9
- console.log(data_plugin);
10
  var href = jQuery(this).attr('href');
11
- console.log(href);
12
  jQuery.each( wpdesk_track_deactivation_plugins, function( key, value ) {
13
- console.log( key + ": " + value );
14
  if ( value == data_plugin ) {
15
- console.log('match');
16
  is_tracked = true;
17
  }
18
  });
1
  <?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?>
2
  <script type="text/javascript">
3
  var wpdesk_track_deactivation_plugins = <?php echo json_encode( $plugins ); ?>;
 
4
  jQuery("span.deactivate a").click(function(e){
5
  var is_tracked = false;
 
6
  var data_plugin = jQuery(this).closest('tr').attr('data-plugin');
 
7
  var href = jQuery(this).attr('href');
 
8
  jQuery.each( wpdesk_track_deactivation_plugins, function( key, value ) {
 
9
  if ( value == data_plugin ) {
 
10
  is_tracked = true;
11
  }
12
  });