Version Description
- Fix: woocommerce checkout order fields before country switch
Download this release
Release Info
| Developer | quadlayers |
| Plugin | |
| Version | 4.9.5 |
| Comparing to | |
| See all releases | |
Code changes from version 4.9.3 to 4.9.5
includes/controller/class-wooccm-order.php
CHANGED
|
@@ -284,7 +284,7 @@ class WOOCCM_Order_Controller extends WOOCCM_Upload {
|
|
| 284 |
$options = get_option('wccs_settings');
|
| 285 |
|
| 286 |
if (!empty($options['checkness']['upload_os'])) {
|
| 287 |
-
return (array) implode(',', $options['checkness']['upload_os']);
|
| 288 |
}
|
| 289 |
|
| 290 |
return $value;
|
| 284 |
$options = get_option('wccs_settings');
|
| 285 |
|
| 286 |
if (!empty($options['checkness']['upload_os'])) {
|
| 287 |
+
return (array) @implode(',', $options['checkness']['upload_os']);
|
| 288 |
}
|
| 289 |
|
| 290 |
return $value;
|
includes/view/frontend/class-wooccm-fields-disable.php
CHANGED
|
@@ -55,7 +55,7 @@ class WOOCCM_Fields_Display {
|
|
| 55 |
$product_cats = array();
|
| 56 |
|
| 57 |
foreach ($cart_contents as $key => $values) {
|
| 58 |
-
if ($cats = wp_get_post_terms($values['product_id'], 'product_cat', array('orderby' => 'name', 'order' => 'ASC', 'fields' => '
|
| 59 |
$product_cats += $cats;
|
| 60 |
}
|
| 61 |
}
|
| 55 |
$product_cats = array();
|
| 56 |
|
| 57 |
foreach ($cart_contents as $key => $values) {
|
| 58 |
+
if ($cats = wp_get_post_terms($values['product_id'], 'product_cat', array('orderby' => 'name', 'order' => 'ASC', 'fields' => 'ids'))) {
|
| 59 |
$product_cats += $cats;
|
| 60 |
}
|
| 61 |
}
|
includes/view/frontend/class-wooccm-fields-handler.php
CHANGED
|
@@ -196,8 +196,8 @@ class WOOCCM_Fields_Handler {
|
|
| 196 |
public function remove_fields_priority($fields) {
|
| 197 |
|
| 198 |
foreach ($fields as $key => $field) {
|
| 199 |
-
unset($fields[$key]['label']);
|
| 200 |
-
unset($fields[$key]['placeholder']);
|
| 201 |
unset($fields[$key]['priority']);
|
| 202 |
unset($fields[$key]['required']);
|
| 203 |
}
|
|
@@ -239,9 +239,8 @@ class WOOCCM_Fields_Handler {
|
|
| 239 |
// -----------------------------------------------------------------------
|
| 240 |
//add_filter('default_option_woocommerce_checkout_address_2_field', array($this, 'woocommerce_checkout_address_2_field'));
|
| 241 |
// Fix address fields priority
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
// add_filter('woocommerce_get_country_locale_base', array($this, 'remove_fields_priority'));
|
| 245 |
// Fix required country notice when shipping address is activated
|
| 246 |
// -----------------------------------------------------------------------
|
| 247 |
add_filter('woocommerce_checkout_posted_data', array($this, 'remove_address_fields'));
|
| 196 |
public function remove_fields_priority($fields) {
|
| 197 |
|
| 198 |
foreach ($fields as $key => $field) {
|
| 199 |
+
//unset($fields[$key]['label']);
|
| 200 |
+
//unset($fields[$key]['placeholder']);
|
| 201 |
unset($fields[$key]['priority']);
|
| 202 |
unset($fields[$key]['required']);
|
| 203 |
}
|
| 239 |
// -----------------------------------------------------------------------
|
| 240 |
//add_filter('default_option_woocommerce_checkout_address_2_field', array($this, 'woocommerce_checkout_address_2_field'));
|
| 241 |
// Fix address fields priority
|
| 242 |
+
add_filter('woocommerce_get_country_locale_default', array($this, 'remove_fields_priority'));
|
| 243 |
+
add_filter('woocommerce_get_country_locale_base', array($this, 'remove_fields_priority'));
|
|
|
|
| 244 |
// Fix required country notice when shipping address is activated
|
| 245 |
// -----------------------------------------------------------------------
|
| 246 |
add_filter('woocommerce_checkout_posted_data', array($this, 'remove_address_fields'));
|
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.2
|
| 7 |
-
Stable tag: 4.9.
|
| 8 |
WC requires at least: 3.0
|
| 9 |
WC tested up to: 3.9
|
| 10 |
License: GPLv2 or later
|
|
@@ -101,6 +101,12 @@ Your Order data can be reviewed in each order within the default WooCommerce Ord
|
|
| 101 |
|
| 102 |
== Changelog ==
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
= 4.9.3 =
|
| 105 |
* Fix: woocommerce checkout upload
|
| 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.2
|
| 7 |
+
Stable tag: 4.9.5
|
| 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.5 =
|
| 105 |
+
* Fix: woocommerce checkout order fields before country switch
|
| 106 |
+
|
| 107 |
+
= 4.9.4 =
|
| 108 |
+
* Fix: woocommerce checkout filter by category
|
| 109 |
+
|
| 110 |
= 4.9.3 =
|
| 111 |
* Fix: woocommerce checkout upload
|
| 112 |
|
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.9.
|
| 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.9.
|
| 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.5
|
| 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.5');
|
| 21 |
}
|
| 22 |
if (!defined('WOOCCM_PLUGIN_FILE')) {
|
| 23 |
define('WOOCCM_PLUGIN_FILE', __FILE__);
|
