Version Description
- Fix: remove woocommerce checkout order notes
Download this release
Release Info
Developer | quadlayers |
Plugin | WooCommerce Checkout Manager |
Version | 4.8.9 |
Comparing to | |
See all releases |
Code changes from version 4.8.8 to 4.8.9
includes/controller/class-wooccm-checkout.php
CHANGED
@@ -19,7 +19,7 @@ class WOOCCM_Checkout_Controller {
|
|
19 |
|
20 |
if (is_checkout()) {
|
21 |
|
22 |
-
|
23 |
|
24 |
$i18n = substr(get_user_locale(), 0, 2);
|
25 |
|
@@ -98,6 +98,15 @@ class WOOCCM_Checkout_Controller {
|
|
98 |
return $fields;
|
99 |
}
|
100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
function add_checkout_form_before_message($param) {
|
102 |
|
103 |
if ($text = get_option('wooccm_checkout_checkout_form_before_message', false)) {
|
@@ -362,6 +371,7 @@ class WOOCCM_Checkout_Controller {
|
|
362 |
add_action('woocommerce_checkout_fields', array($this, 'order_notes'));
|
363 |
add_action('woocommerce_before_checkout_form', array($this, 'add_checkout_form_before_message'));
|
364 |
add_action('woocommerce_after_checkout_form', array($this, 'add_checkout_form_after_message'));
|
|
|
365 |
|
366 |
// Compatibility
|
367 |
// -----------------------------------------------------------------------
|
19 |
|
20 |
if (is_checkout()) {
|
21 |
|
22 |
+
WOOCCM()->register_scripts();
|
23 |
|
24 |
$i18n = substr(get_user_locale(), 0, 2);
|
25 |
|
98 |
return $fields;
|
99 |
}
|
100 |
|
101 |
+
public function remove_order_notes($value) {
|
102 |
+
|
103 |
+
if (get_option('wooccm_checkout_remove_order_notes', 'no') === 'yes') {
|
104 |
+
return false;
|
105 |
+
}
|
106 |
+
|
107 |
+
return $value;
|
108 |
+
}
|
109 |
+
|
110 |
function add_checkout_form_before_message($param) {
|
111 |
|
112 |
if ($text = get_option('wooccm_checkout_checkout_form_before_message', false)) {
|
371 |
add_action('woocommerce_checkout_fields', array($this, 'order_notes'));
|
372 |
add_action('woocommerce_before_checkout_form', array($this, 'add_checkout_form_before_message'));
|
373 |
add_action('woocommerce_after_checkout_form', array($this, 'add_checkout_form_after_message'));
|
374 |
+
add_action('woocommerce_enable_order_notes_field', array($this, 'remove_order_notes'));
|
375 |
|
376 |
// Compatibility
|
377 |
// -----------------------------------------------------------------------
|
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.
|
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.8 =
|
105 |
* Fix: woocommerce variation swatches compatibility
|
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.8.9
|
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.8.9 =
|
105 |
+
* Fix: remove woocommerce checkout order notes
|
106 |
+
|
107 |
= 4.8.8 =
|
108 |
* Fix: woocommerce variation swatches compatibility
|
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.8.
|
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.8.
|
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.8.9
|
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.8.9');
|
21 |
}
|
22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|