Version Description
- Fix: woocommerce checkout fees
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 4.9.0 |
Comparing to | |
See all releases |
Code changes from version 4.8.9 to 4.9.0
assets/frontend/js/wooccm-checkout.js
CHANGED
@@ -307,6 +307,7 @@
|
|
307 |
$this.off('wooccm_change');
|
308 |
$this.off('change');
|
309 |
$this.off('keyup');
|
|
|
310 |
});
|
311 |
// dont use change event because trigger update_checkout event
|
312 |
$parent.find('select:first').trigger('wooccm_change');
|
307 |
$this.off('wooccm_change');
|
308 |
$this.off('change');
|
309 |
$this.off('keyup');
|
310 |
+
$field.trigger('change');
|
311 |
});
|
312 |
// dont use change event because trigger update_checkout event
|
313 |
$parent.find('select:first').trigger('wooccm_change');
|
includes/model/class-wooccm-field.php
CHANGED
@@ -189,7 +189,7 @@ class WOOCCM_Field {
|
|
189 |
'time_limit_interval' => null,
|
190 |
'date_limit' => 'fixed',
|
191 |
'date_format' => '',
|
192 |
-
'date_limit_variable_min' => 1,
|
193 |
'date_limit_variable_max' => 1,
|
194 |
'date_limit_fixed_min' => date('Y-m-d'),
|
195 |
'date_limit_fixed_max' => date('Y-m-d'),
|
189 |
'time_limit_interval' => null,
|
190 |
'date_limit' => 'fixed',
|
191 |
'date_format' => '',
|
192 |
+
'date_limit_variable_min' => -1,
|
193 |
'date_limit_variable_max' => 1,
|
194 |
'date_limit_fixed_min' => date('Y-m-d'),
|
195 |
'date_limit_fixed_max' => date('Y-m-d'),
|
includes/view/frontend/class-wooccm-fields-conditional.php
CHANGED
@@ -30,6 +30,7 @@ class WOOCCM_Fields_Conditional {
|
|
30 |
|
31 |
// Remove required
|
32 |
// -----------------------------------------------------------------
|
|
|
33 |
if (isset($_REQUEST['woocommerce-process-checkout-nonce']) && (!isset($_POST[$field['conditional_parent_key']]) || !isset($field['conditional_parent_value']) || !array_intersect((array) $field['conditional_parent_value'], (array) $_POST[$field['conditional_parent_key']]))) {
|
34 |
// Remove required attribute for hidden child fields
|
35 |
$field['required'] = false;
|
@@ -37,6 +38,19 @@ class WOOCCM_Fields_Conditional {
|
|
37 |
unset($fields[$field['key']]);
|
38 |
unset($_POST[$field['key']]);
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
}
|
42 |
|
30 |
|
31 |
// Remove required
|
32 |
// -----------------------------------------------------------------
|
33 |
+
// On save
|
34 |
if (isset($_REQUEST['woocommerce-process-checkout-nonce']) && (!isset($_POST[$field['conditional_parent_key']]) || !isset($field['conditional_parent_value']) || !array_intersect((array) $field['conditional_parent_value'], (array) $_POST[$field['conditional_parent_key']]))) {
|
35 |
// Remove required attribute for hidden child fields
|
36 |
$field['required'] = false;
|
38 |
unset($fields[$field['key']]);
|
39 |
unset($_POST[$field['key']]);
|
40 |
}
|
41 |
+
// On update
|
42 |
+
if (isset($_REQUEST['post_data']) && isset($_REQUEST['wc-ajax']) && $_REQUEST['wc-ajax'] == 'update_order_review') {
|
43 |
+
|
44 |
+
$post_data = array();
|
45 |
+
|
46 |
+
parse_str($_REQUEST['post_data'], $post_data);
|
47 |
+
|
48 |
+
if (!isset($post_data[$field['conditional_parent_key']]) || !isset($field['conditional_parent_value']) || !array_intersect((array) $field['conditional_parent_value'], (array) $post_data[$field['conditional_parent_key']])) {
|
49 |
+
// Remove field fee
|
50 |
+
unset($fields[$field['key']]);
|
51 |
+
unset($_POST[$field['key']]);
|
52 |
+
}
|
53 |
+
}
|
54 |
}
|
55 |
}
|
56 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://quadlayers.com/
|
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.3
|
7 |
-
Stable tag: 4.
|
8 |
WC requires at least: 3.0
|
9 |
WC tested up to: 3.9
|
10 |
License: GPLv2 or later
|
@@ -101,6 +101,9 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
104 |
= 4.8.9 =
|
105 |
* Fix: remove woocommerce checkout order notes
|
106 |
|
4 |
Tags: woocommerce, woocommerce checkout, field manager, checkout editor, checkout field, shipping field, billing field, order field, additional field
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 5.3
|
7 |
+
Stable tag: 4.9.0
|
8 |
WC requires at least: 3.0
|
9 |
WC tested up to: 3.9
|
10 |
License: GPLv2 or later
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 4.9.0 =
|
105 |
+
* Fix: woocommerce checkout fees
|
106 |
+
|
107 |
= 4.8.9 =
|
108 |
* Fix: remove woocommerce checkout order notes
|
109 |
|
woocommerce-checkout-manager.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Checkout Manager
|
5 |
* Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
-
* Version: 4.
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
@@ -17,7 +17,7 @@ if (!defined('WOOCCM_PLUGIN_NAME')) {
|
|
17 |
define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
|
18 |
}
|
19 |
if (!defined('WOOCCM_PLUGIN_VERSION')) {
|
20 |
-
define('WOOCCM_PLUGIN_VERSION', '4.
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|
3 |
/**
|
4 |
* Plugin Name: WooCommerce Checkout Manager
|
5 |
* Description: Manages WooCommerce Checkout, the advanced way.
|
6 |
+
* Version: 4.9.0
|
7 |
* Author: QuadLayers
|
8 |
* Author URI: https://www.quadlayers.com
|
9 |
* Copyright: 2019 QuadLayers (https://www.quadlayers.com)
|
17 |
define('WOOCCM_PLUGIN_NAME', 'WooCommerce Checkout Manager');
|
18 |
}
|
19 |
if (!defined('WOOCCM_PLUGIN_VERSION')) {
|
20 |
+
define('WOOCCM_PLUGIN_VERSION', '4.9.0');
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|