WooCommerce Checkout Field Editor (Manager) Pro - Version 1.3.9

Version Description

  • Fixed the issue of not showing save button in field settings popup when more options added to select field after chaged the popup position.
Download this release

Release Info

Developer ThemeHigh
Plugin Icon 128x128 WooCommerce Checkout Field Editor (Manager) Pro
Version 1.3.9
Comparing to
See all releases

Code changes from version 1.3.8 to 1.3.9

assets/css/thwcfd-admin.css CHANGED
@@ -303,10 +303,14 @@ h1.nav-tab-wrapper, h2.nav-tab-wrapper, h3.nav-tab-wrapper {
303
  padding-left: 10px;
304
  }
305
 
 
 
 
306
  .woocommerce_page_checkout_form_designer .ui-dialog .ui-dialog-title {
307
  line-height: 20px;
308
  }
309
 
 
310
  /*.select2-drop {
311
  z-index: 999999!important;
312
  }*/
303
  padding-left: 10px;
304
  }
305
 
306
+ .woocommerce_page_checkout_form_designer .ui-dialog {
307
+ height: auto !important;
308
+ }
309
  .woocommerce_page_checkout_form_designer .ui-dialog .ui-dialog-title {
310
  line-height: 20px;
311
  }
312
 
313
+
314
  /*.select2-drop {
315
  z-index: 999999!important;
316
  }*/
assets/js/thwcfd-admin.js CHANGED
@@ -171,7 +171,6 @@ var thwcfd_settings = (function($, window, document) {
171
 
172
  var props_json = row.find(".f_props").val();
173
  //props_json = decodeHtml(props_json);
174
- console.log(props_json);
175
  var props = JSON.parse(props_json);
176
  //var type = props.type;
177
 
@@ -355,7 +354,6 @@ var thwcfd_settings = (function($, window, document) {
355
  if(optionsJson){
356
  try{
357
  optionsJson = decodeURIComponent(optionsJson);
358
- console.log(optionsJson);
359
  var optionsList = $.parseJSON(optionsJson);
360
  if(optionsList){
361
  jQuery.each(optionsList, function() {
@@ -372,7 +370,6 @@ var thwcfd_settings = (function($, window, document) {
372
  }
373
  }catch(err) {
374
  console.log(err);
375
- alert(err);
376
  }
377
  }
378
 
171
 
172
  var props_json = row.find(".f_props").val();
173
  //props_json = decodeHtml(props_json);
 
174
  var props = JSON.parse(props_json);
175
  //var type = props.type;
176
 
354
  if(optionsJson){
355
  try{
356
  optionsJson = decodeURIComponent(optionsJson);
 
357
  var optionsList = $.parseJSON(optionsJson);
358
  if(optionsList){
359
  jQuery.each(optionsList, function() {
370
  }
371
  }catch(err) {
372
  console.log(err);
 
373
  }
374
  }
375
 
checkout-form-designer.php CHANGED
@@ -2,14 +2,14 @@
2
  /**
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
- * Author: ThemeHiGH
6
- * Version: 1.3.8
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
10
  * Domain Path: /languages
11
  * WC requires at least: 3.0.0
12
- * WC tested up to: 3.7.0
13
  */
14
 
15
  if(!defined( 'ABSPATH' )) exit;
@@ -25,7 +25,7 @@ if (!function_exists('is_woocommerce_active')){
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
- define('THWCFD_VERSION', '1.3.8');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
2
  /**
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
+ * Author: ThemeHigh
6
+ * Version: 1.3.9
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
10
  * Domain Path: /languages
11
  * WC requires at least: 3.0.0
12
+ * WC tested up to: 3.8.0
13
  */
14
 
15
  if(!defined( 'ABSPATH' )) exit;
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
+ define('THWCFD_VERSION', '1.3.9');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
classes/class-thwcfd-settings.php CHANGED
@@ -29,9 +29,20 @@ class THWCFD_Settings {
29
  wp_enqueue_style('thwcfd-admin-style', THWCFD_ASSETS_URL . 'css/thwcfd-admin.css', THWCFD_VERSION);
30
  wp_enqueue_script('thwcfd-admin-script', THWCFD_ASSETS_URL . 'js/thwcfd-admin.js', $deps, THWCFD_VERSION, true);
31
  }
 
 
 
 
 
 
 
 
 
 
32
 
33
  public function admin_menu() {
34
- $this->screen_id = add_submenu_page('woocommerce', __('WooCommerce Checkout Form Designer', 'woo-checkout-field-editor-pro'), __('Checkout Form', 'woo-checkout-field-editor-pro'), 'manage_woocommerce', 'checkout_form_designer', array($this, 'output_settings'));
 
35
 
36
  //add_action('admin_print_scripts-'. $this->screen_id, array($this, 'enqueue_admin_scripts'));
37
  }
29
  wp_enqueue_style('thwcfd-admin-style', THWCFD_ASSETS_URL . 'css/thwcfd-admin.css', THWCFD_VERSION);
30
  wp_enqueue_script('thwcfd-admin-script', THWCFD_ASSETS_URL . 'js/thwcfd-admin.js', $deps, THWCFD_VERSION, true);
31
  }
32
+
33
+ public function wcfd_capability() {
34
+ $allowed = array('manage_woocommerce', 'manage_options');
35
+ $capability = apply_filters('thwcfd_required_capability', 'manage_woocommerce');
36
+
37
+ if(!in_array($capability, $allowed)){
38
+ $capability = 'manage_woocommerce';
39
+ }
40
+ return $capability;
41
+ }
42
 
43
  public function admin_menu() {
44
+ $capability = $this->wcfd_capability();
45
+ $this->screen_id = add_submenu_page('woocommerce', __('WooCommerce Checkout Form Designer', 'woo-checkout-field-editor-pro'), __('Checkout Form', 'woo-checkout-field-editor-pro'), $capability, 'checkout_form_designer', array($this, 'output_settings'));
46
 
47
  //add_action('admin_print_scripts-'. $this->screen_id, array($this, 'enqueue_admin_scripts'));
48
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Checkout Field Editor (Checkout Manager) for WooCommerce ===
2
  Contributors: ThemeHigh
3
  Donate link: https://themehigh.com/
4
- Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, checkout
5
  Requires at least: 4.9
6
- Tested up to: 5.2.3
7
- Stable tag: 1.3.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -15,96 +15,125 @@ Checkout Field Editor (Checkout Manager) for WooCommerce - The best WooCommerce
15
  = Checkout Field Editor for WooCommerce =
16
  If you are wondering how to add custom field in WooCommerce checkout page, you are at the right place. Checkout Field Editor for WooCommerce plugin provides an easy way to customise (add, edit, delete and change display order) your fields displayed on WooCommerce checkout page. This plugin requires WooCommerce to be installed, activated, and configured.
17
 
 
 
 
 
18
  = Basic Version Features =
19
- * **Add new custom field(s).** Adding custom fields to the WooCommerce checkout page is a breeze now. You can add custom field(s) in Billing, Shipping and Additional fields sections. New field form contains options to provide values for Type, Name, Label, Placeholder, Class, Label Class etc. It also has the option to choose validations rules from a predefined list.
20
- * **Edit field(s).** You can edit core and custom field(s) in Billing, Shipping and Additional fields sections. In edit form you have the option to provide new values for Name, Type, Label, Placeholder, Class, Label Class, validation rules etc(availability of these options may change based on the field types).
21
- * Available field types are
22
- * Input Text
23
- * Password
24
- * Email
25
- * Phone
26
- * Select
27
- * Textarea
28
- * Radio
29
- * **Display in Order Details page and Email.** You can decide on a field whether it need to be displayed in Order Details page and Email using the the checkboxes ‘Display in Order Detail Pages’ and ‘Display in Emails’. These checkboxes are available in both the ‘New Field’ and ‘Edit Field’ forms.
30
- * **Remove field(s).** You can remove field(s) from displaying in checkout page, order details page and emails. Removing core fields may leads to unexpected results with some plugins. We are not recommending this.
31
- * <strong>Enable/Disable field(s).</strong> You can enable/disable field(s)(temporarily remove) from displaying in checkout page, order details page and emails. Disabling core fields may leads to unexpected results with some plugins. We are not recommending this.
32
- * **Change checkout fields order.** You can easily manage the display order of checkout fields from admin side by just moving fields up and down.
33
- * **Reset to default field set.** You can reset all your changes back to the original WooCommerce fields set using the button ‘Reset to default fields’.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  = Premium Version Demos =
36
  Check out the premium version of Checkout Field Editor for WooCommerce - The best WooCommerce Checkout Manager Plugin which helps you to customize checkout fields displayed on your WooCommerce checkout page. Add custom fields to WooCommerce checkout page easily.
37
 
 
38
  [Live Demo - Front End](https://flydemos.com/wcfe/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
39
  [Live Demo - Back End](https://flydemos.com/wcfe/wp-admin/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
40
 
41
  [Buy Now!](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
 
42
 
43
  = Premium Version Features =
44
- <ul>
45
- <li><strong>17 field types are available:</strong> In Add New Field form and Edit Field form you can choose field type from a list of 17 including 15 input fields and one field for title/heading and one for label.
46
- <p>Available field types:</p>
47
- <ol>
48
- <li><strong>Text</strong> – A basic input text field.</li>
49
- <li><strong>Hidden</strong> – A hidden field.</li>
50
- <li><strong>Password</strong> – An input password text box.</li>
51
- <li><strong>Telephone</strong> – An input tel field.</li>
52
- <li><strong>Email</strong> – An input email field.</li>
53
- <li><strong>Number</strong> – An input number field.</li>
54
- <li><strong>Textarea</strong> – A textarea field.</li>
55
- <li><strong>Radio</strong> – Radio button input (for selecting one of many choices)</li>
56
- <li><strong>Checkbox</strong> – A checkbox field.</li>
57
- <li><strong>Checkbox Group</strong> – A group of checkboxes (allows multiple selections from many choices).</li>
58
- <li><strong>Select</strong> – A drop-down list (for selecting one of many choices)</li>
59
- <li><strong>Multi-select</strong> – A drop-down list (allows multiple selections from many choices)</li>
60
- <li><strong>Date picker</strong> – Select a date from a popup.</li>
61
- <li><strong>Time picker</strong> – Select a time from a popup.</li>
62
- <li><strong>File Upload</strong> – A file upload field.</li>
63
- <li><strong>Heading</strong> – Display a heading/ title</li>
64
- <li><strong>Label</strong> – Display a label/ text</li>
65
- </ol>
66
- </li>
67
- <li><strong>Conditional Fields:</strong> Conditionally display fields & sections based on cart items and other field(s) values.</li>
68
- <li><strong>Custom Validations:</strong> Custom validator feature can be used to define custom validation rules using RegEx.</li>
69
- <li><strong>Price Fields:</strong> Add an extra cost to the cart total based on field selection.</li>
70
- <li><strong>Add new section:</strong> Add new section(s) in predefined positions in checkout page.
71
- <p>Available positions:</p>
72
- <ol>
73
- <li>Before customer details</li>
74
- <li>After customer details</li>
75
- <li>Before billing form</li>
76
- <li>After billing form</li>
77
- <li>Before shipping form</li>
78
- <li>After shipping form</li>
79
- <li>Before registration form</li>
80
- <li>After registration form</li>
81
- <li>Before order notes</li>
82
- <li>After order notes</li>
83
- <li>Before terms & conditions</li>
84
- <li>After terms & conditions</li>
85
- <li>Before submit button</li>
86
- <li>After submit button</li>
87
- </ol>
88
- </li>
89
- <li><strong>Edit section(s) properties:</strong> Edit custom added section(s) label and display position.</li>
90
- <li><strong>Delete section(s):</strong> Delete custom added section(s).</li>
91
- </ul>
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  == Installation ==
94
  = Minimum Requirements =
95
  * WooCommerce 3.0 or greater
96
  * WordPress 4.9 or greater
97
- * PHP version 5.6 or greater (PHP 7.2 or greater is recommended)
98
- * MySQL version 5.0 or greater (MySQL 5.6 or greater is recommended)
99
 
100
  = Automatic installation =
101
- 1. Log in to your WordPress dashboard
102
- 2. Navigate to the Plugins menu and click Add New.
103
- 3. Search and locate 'WooCommerce Checkout Field Editor Pro' plugin.
104
- 4. Click 'Install Now'
105
 
106
  = Manual installation =
107
- The manual installation method involves downloading 'WooCommerce Checkout Field Editor Pro' plugin and uploading it to your webserver via FTP application. You may find more instructions on how to do this here (http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
108
 
109
  == Frequently Asked Questions ==
110
  =Is there a possible way to provide a validation other than the predefined validations provided like email, phone etc?=
@@ -149,6 +178,9 @@ Yes. There is a button 'reset to default fields' to go back to the WooCommerce d
149
  8. Newly added field
150
 
151
  == Changelog ==
 
 
 
152
  = 1.3.8 =
153
  * Fixed the issue of not showing custom fields in resend emails.
154
  * Fixed the issue of not loading settings page scripts & styles when translated to Hebrew."
1
  === Checkout Field Editor (Checkout Manager) for WooCommerce ===
2
  Contributors: ThemeHigh
3
  Donate link: https://themehigh.com/
4
+ Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, woocommerce checkout fields, woocommerce checkout addons
5
  Requires at least: 4.9
6
+ Tested up to: 5.3
7
+ Stable tag: 1.3.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
15
  = Checkout Field Editor for WooCommerce =
16
  If you are wondering how to add custom field in WooCommerce checkout page, you are at the right place. Checkout Field Editor for WooCommerce plugin provides an easy way to customise (add, edit, delete and change display order) your fields displayed on WooCommerce checkout page. This plugin requires WooCommerce to be installed, activated, and configured.
17
 
18
+ --------------------------------------------
19
+ https://www.youtube.com/watch?v=BIaiyVvjESY
20
+ --------------------------------------------
21
+
22
  = Basic Version Features =
23
+ * **Add new custom field(s).**
24
+ Adding custom fields to the WooCommerce checkout page is a breeze now. You can add custom field(s) in Billing, Shipping and Additional fields sections. New field form contains options to provide values for Type, Name, Label, Placeholder, Class, Label Class etc. It also has the option to choose validations rules from a predefined list.
25
+
26
+ * **Edit field(s).**
27
+ You can edit core and custom field(s) in Billing, Shipping and Additional fields sections. In edit form you have the option to provide new values for Name, Type, Label, Placeholder, Class, Label Class, validation rules etc(availability of these options may change based on the field types).
28
+
29
+ * Available field types are
30
+ * Input Text
31
+ * Password
32
+ * Email
33
+ * Phone
34
+ * Select
35
+ * Textarea
36
+ * Radio
37
+
38
+ * **Display in Order Details page and Email.**
39
+ You can decide on a field whether it need to be displayed in Order Details page and Email using the the checkboxes ‘Display in Order Detail Pages’ and ‘Display in Emails’. These checkboxes are available in both the ‘New Field’ and ‘Edit Field’ forms.
40
+
41
+ * **Remove field(s).**
42
+ You can remove field(s) from displaying in checkout page, order details page and emails. Removing core fields may leads to unexpected results with some plugins. We are not recommending this.
43
+
44
+ * **Enable/Disable field(s).**
45
+ You can enable/disable field(s)(temporarily remove) from displaying in checkout page, order details page and emails. Disabling core fields may leads to unexpected results with some plugins. We are not recommending this.
46
+
47
+ * **Change checkout fields order.**
48
+ You can easily manage the display order of checkout fields from admin side by just moving fields up and down.
49
+
50
+ * **Reset to default field set.**
51
+ You can reset all your changes back to the original WooCommerce fields set using the button ‘Reset to default fields’.
52
 
53
  = Premium Version Demos =
54
  Check out the premium version of Checkout Field Editor for WooCommerce - The best WooCommerce Checkout Manager Plugin which helps you to customize checkout fields displayed on your WooCommerce checkout page. Add custom fields to WooCommerce checkout page easily.
55
 
56
+ --------------------------------------------
57
  [Live Demo - Front End](https://flydemos.com/wcfe/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
58
  [Live Demo - Back End](https://flydemos.com/wcfe/wp-admin/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
59
 
60
  [Buy Now!](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
61
+ --------------------------------------------
62
 
63
  = Premium Version Features =
64
+ * **17 field types are available:**
65
+ In Add New Field form and Edit Field form you can choose field type from a list of 17 including 15 input fields and one field for title/heading and one for label.
66
+
67
+ Available field types:
68
+ 1. Input Text
69
+ 2. Hidden
70
+ 3. Password
71
+ 4. Telephone
72
+ 5. Email
73
+ 6. Number
74
+ 7. Textarea
75
+ 8. Radio
76
+ 9. Checkbox
77
+ 10. Checkbox Group
78
+ 11. Select
79
+ 12. Multi-select
80
+ 13. Date picker
81
+ 14. Time picker
82
+ 15. File Upload
83
+ 16. Heading – Display a heading/ title
84
+ 17. Label – Display a label/ text
85
+
86
+ * **Conditional Fields:**
87
+ Conditionally display fields & sections based on cart items and other field(s) values.
88
+
89
+ * **Custom Validations:**
90
+ Custom validator feature can be used to define custom validation rules using RegEx.
91
+
92
+ * **Price Fields:**
93
+ Add an extra cost to the cart total based on field selection.
94
+
95
+ * **Add new section:**
96
+ Add new section(s) in predefined positions in checkout page.
97
+
98
+ Available positions:
99
+ 1. Before customer details
100
+ 2. After customer details
101
+ 3. Before billing form
102
+ 4. After billing form
103
+ 5. Before shipping form
104
+ 6. After shipping form
105
+ 7. Before registration form
106
+ 8. After registration form
107
+ 9. Before order notes
108
+ 10. After order notes
109
+ 11. Before terms & conditions
110
+ 12. After terms & conditions
111
+ 13. Before submit button
112
+ 14. After submit button
113
+
114
+ * **Edit section(s) properties:**
115
+ Edit custom added section(s) label and display position.
116
+
117
+ * **Delete section(s):**
118
+ Delete custom added section(s).
119
+
120
+ --------------------------------------------
121
+ [Upgrade to Premium Now!](https://www.themehigh.com/product/woocommerce-checkout-field-editor-pro/?utm_source=wordpress&utm_medium=referral&utm_content=tracking)
122
+ --------------------------------------------
123
 
124
  == Installation ==
125
  = Minimum Requirements =
126
  * WooCommerce 3.0 or greater
127
  * WordPress 4.9 or greater
 
 
128
 
129
  = Automatic installation =
130
+ 1. Log in to your WordPress dashboard.
131
+ 2. Navigate to the Plugins menu, and click "Add New".
132
+ 3. Search and locate 'Checkout Field Editor (Checkout Manager) for WooCommerce' plugin.
133
+ 4. Click 'Install Now', and WordPress will take it from there.
134
 
135
  = Manual installation =
136
+ Manual installation method requires downloading the 'Checkout Field Editor (Checkout Manager) for WooCommerce' plugin and uploading it to your web server via your FTP application. The WordPress codex contains [instructions on how to do this here](https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation).
137
 
138
  == Frequently Asked Questions ==
139
  =Is there a possible way to provide a validation other than the predefined validations provided like email, phone etc?=
178
  8. Newly added field
179
 
180
  == Changelog ==
181
+ = 1.3.9 =
182
+ * Fixed the issue of not showing save button in field settings popup when more options added to select field after chaged the popup position.
183
+
184
  = 1.3.8 =
185
  * Fixed the issue of not showing custom fields in resend emails.
186
  * Fixed the issue of not loading settings page scripts & styles when translated to Hebrew."