Version Description
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 6.3.8 |
Comparing to | |
See all releases |
Code changes from version 6.3.7 to 6.3.8
includes/model/class-wooccm-field.php
CHANGED
@@ -140,6 +140,7 @@ class WOOCCM_Field extends WOOCCM_Model {
|
|
140 |
'priority' => null,
|
141 |
'label' => '',
|
142 |
'placeholder' => '',
|
|
|
143 |
'description' => '',
|
144 |
'default' => '',
|
145 |
'position' => '',
|
140 |
'priority' => null,
|
141 |
'label' => '',
|
142 |
'placeholder' => '',
|
143 |
+
'validate_regex' => '',
|
144 |
'description' => '',
|
145 |
'default' => '',
|
146 |
'position' => '',
|
includes/view/backend/pages/modals/parts/panel-general.php
CHANGED
@@ -157,6 +157,14 @@
|
|
157 |
<input class="short" type="text" name="maxlength" placeholder="<?php esc_html_e( 'Enter a maxlength value (optional)', 'woocommerce-checkout-manager' ); ?>" value="{{data.maxlength}}">
|
158 |
</p>
|
159 |
<# } #>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
<# if (data.type=='country' ) { #>
|
161 |
<div class="options_group">
|
162 |
<p class="form-field">
|
157 |
<input class="short" type="text" name="maxlength" placeholder="<?php esc_html_e( 'Enter a maxlength value (optional)', 'woocommerce-checkout-manager' ); ?>" value="{{data.maxlength}}">
|
158 |
</p>
|
159 |
<# } #>
|
160 |
+
<# if ( data.type=='text' ) { #>
|
161 |
+
<p class="form-field dimensions_field wooccm-premium">
|
162 |
+
<label><?php esc_html_e( 'Validate Regex', 'woocommerce-checkout-manager' ); ?></label>
|
163 |
+
<input class="short" type="text" name="validate_regex" placeholder="<?php esc_html_e( 'Enter a regex to validate input data', 'woocommerce-checkout-manager' ); ?>" value="{{data.validate_regex}}">
|
164 |
+
<span class="description"><a target="_blank" href="w3schools.com/php/php_regex.asp">PHP Regular Expressions</a>.</span>
|
165 |
+
<span class="description premium">(<?php esc_html_e( 'This is a premium feature', 'woocommerce-checkout-manager' ); ?>)</span>
|
166 |
+
</p>
|
167 |
+
<# } #>
|
168 |
<# if (data.type=='country' ) { #>
|
169 |
<div class="options_group">
|
170 |
<p class="form-field">
|
includes/view/frontend/class-wooccm-fields-conditional.php
CHANGED
@@ -49,7 +49,7 @@ class WOOCCM_Fields_Conditional {
|
|
49 |
}
|
50 |
|
51 |
$form_action = WOOCCM_Field_Helpers::get_form_action();
|
52 |
-
|
53 |
switch ( $form_action ) {
|
54 |
case 'account':
|
55 |
case 'save':
|
49 |
}
|
50 |
|
51 |
$form_action = WOOCCM_Field_Helpers::get_form_action();
|
52 |
+
|
53 |
switch ( $form_action ) {
|
54 |
case 'account':
|
55 |
case 'save':
|
includes/view/frontend/class-wooccm-fields-handler.php
CHANGED
@@ -203,6 +203,13 @@ class WOOCCM_Fields_Handler {
|
|
203 |
}
|
204 |
}
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
// File
|
207 |
if ( $field['type'] == 'file' ) {
|
208 |
if ( $field['file_limit'] ) {
|
203 |
}
|
204 |
}
|
205 |
|
206 |
+
// Text
|
207 |
+
if ( $field['type'] == 'text' ) {
|
208 |
+
if ( $field['validate_regex'] ) {
|
209 |
+
$field['custom_attributes']['validate_regex'] = $field['validate_regex'];
|
210 |
+
}
|
211 |
+
}
|
212 |
+
|
213 |
// File
|
214 |
if ( $field['type'] == 'file' ) {
|
215 |
if ( $field['file_limit'] ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: checkout field editor, woocommerce checkout field editor, checkout manager
|
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 6.3.
|
9 |
WC requires at least: 3.1.0
|
10 |
WC tested up to: 7.1
|
11 |
License: GPLv3
|
@@ -149,6 +149,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
149 |
|
150 |
== Changelog ==
|
151 |
|
|
|
|
|
|
|
152 |
= 6.3.7
|
153 |
* Fix. WooCommerce order video upload
|
154 |
* Fix. WooCommerce order upload
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 6.1
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 6.3.8
|
9 |
WC requires at least: 3.1.0
|
10 |
WC tested up to: 7.1
|
11 |
License: GPLv3
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 6.3.8
|
153 |
+
* New. Regex validation for premium version
|
154 |
+
|
155 |
= 6.3.7
|
156 |
* Fix. WooCommerce order video upload
|
157 |
* Fix. WooCommerce order upload
|
woocommerce-checkout-manager.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Checkout Fields Manager for WooCommerce
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/woocommerce-checkout-manager/
|
6 |
* Description: Manage and customize WooCommerce Checkout fields (Add, Edit, Delete or re-order fields).
|
7 |
-
* Version: 6.3.
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
@@ -17,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
}
|
18 |
|
19 |
define( 'WOOCCM_PLUGIN_NAME', 'Checkout Fields Manager for WooCommerce' );
|
20 |
-
define( 'WOOCCM_PLUGIN_VERSION', '6.3.
|
21 |
define( 'WOOCCM_PLUGIN_FILE', __FILE__ );
|
22 |
define( 'WOOCCM_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
|
23 |
define( 'WOOCCM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
4 |
* Plugin Name: Checkout Fields Manager for WooCommerce
|
5 |
* Plugin URI: https://quadlayers.com/portfolio/woocommerce-checkout-manager/
|
6 |
* Description: Manage and customize WooCommerce Checkout fields (Add, Edit, Delete or re-order fields).
|
7 |
+
* Version: 6.3.8
|
8 |
* Author: QuadLayers
|
9 |
* Author URI: https://quadlayers.com
|
10 |
* License: GPLv3
|
17 |
}
|
18 |
|
19 |
define( 'WOOCCM_PLUGIN_NAME', 'Checkout Fields Manager for WooCommerce' );
|
20 |
+
define( 'WOOCCM_PLUGIN_VERSION', '6.3.8' );
|
21 |
define( 'WOOCCM_PLUGIN_FILE', __FILE__ );
|
22 |
define( 'WOOCCM_PLUGIN_DIR', __DIR__ . DIRECTORY_SEPARATOR );
|
23 |
define( 'WOOCCM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|