Changeset 3255370
- Timestamp:
- 03/13/2025 12:41:39 PM (13 months ago)
- Location:
- dhlpwc
- Files:
-
- 10 edited
- 1 copied
-
tags/2.1.11 (copied) (copied from dhlpwc/trunk)
-
tags/2.1.11/README.md (modified) (1 diff)
-
tags/2.1.11/dhlpwoocommerce.php (modified) (2 diffs)
-
tags/2.1.11/includes/controller/class-dhlpwc-controller-checkout.php (modified) (1 diff)
-
tags/2.1.11/includes/model/service/class-dhlpwc-model-service-order-meta-option.php (modified) (1 diff)
-
tags/2.1.11/readme.txt (modified) (2 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/dhlpwoocommerce.php (modified) (2 diffs)
-
trunk/includes/controller/class-dhlpwc-controller-checkout.php (modified) (1 diff)
-
trunk/includes/model/service/class-dhlpwc-model-service-order-meta-option.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dhlpwc/tags/2.1.11/README.md
r3229375 r3255370 1 1 # DHL eCommerce (Benelux) for WooCommerce 2 3 v2.1.11 4 ## Changes 5 - Fixed an issue with warning being generated when loading exclusions 6 - Fixed a code flow issue that can occur during checkout when an orderID cannot be found 2 7 3 8 v2.1.10 -
dhlpwc/tags/2.1.11/dhlpwoocommerce.php
r3229375 r3255370 5 5 * Description: This is the official DHL eCommerce (Benelux) for WooCommerce plugin. 6 6 * Author: DHL eCommerce 7 * Version: 2.1.1 07 * Version: 2.1.11 8 8 * Requires at least: 4.7 9 9 * Tested up to: 6.6 … … 52 52 53 53 // Set constants 54 $this->define('DHLPWC_PLUGIN_VERSION', '2.1.1 0');54 $this->define('DHLPWC_PLUGIN_VERSION', '2.1.11'); 55 55 $this->define('DHLPWC_PLUGIN_FILE', __FILE__); 56 56 $this->define('DHLPWC_PLUGIN_BASENAME', plugin_basename(__FILE__)); -
dhlpwc/tags/2.1.11/includes/controller/class-dhlpwc-controller-checkout.php
r3073094 r3255370 64 64 public function add_option_meta($order_id, $data) 65 65 { 66 $order = wc_get_order( $order_id ); 67 if (is_bool($order)) { 68 // Certain third party plugin filters might cause an issue with order IDs. Exit early in that case. 69 // The data won't be correctly saved with an order unfortunately because of this, but it's better than crashing 70 return; 71 } 72 66 73 $service = DHLPWC_Model_Service_Shipping_Preset::instance(); 67 74 $presets = $service->get_presets(); -
dhlpwc/tags/2.1.11/includes/model/service/class-dhlpwc-model-service-order-meta-option.php
r3229375 r3255370 476 476 477 477 // Manually add LQ vs PS exclusion 478 if ($option ->key=== DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ) {479 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS, $ option->exclusions)) {480 $ option->exclusion_list[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS;478 if ($option === DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ) { 479 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS, $exclusions)) { 480 $exclusions[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS; 481 481 } 482 482 } 483 if ($option ->key=== DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS) {484 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ, $ option->exclusions)) {485 $ option->exclusion_list[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ;483 if ($option === DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS) { 484 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ, $exclusions)) { 485 $exclusions[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ; 486 486 } 487 487 } -
dhlpwc/tags/2.1.11/readme.txt
r3229375 r3255370 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.6 7 Stable tag: 2.1.1 07 Stable tag: 2.1.11 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 9.0.2 … … 56 56 57 57 == Changelog == 58 59 = 2.1.11 = 60 - Fixed an issue with warning being generated when loading exclusions 61 - Fixed a code flow issue that can occur during checkout when an orderID cannot be found 58 62 59 63 = 2.1.10 = -
dhlpwc/trunk/README.md
r3229375 r3255370 1 1 # DHL eCommerce (Benelux) for WooCommerce 2 3 v2.1.11 4 ## Changes 5 - Fixed an issue with warning being generated when loading exclusions 6 - Fixed a code flow issue that can occur during checkout when an orderID cannot be found 2 7 3 8 v2.1.10 -
dhlpwc/trunk/dhlpwoocommerce.php
r3229375 r3255370 5 5 * Description: This is the official DHL eCommerce (Benelux) for WooCommerce plugin. 6 6 * Author: DHL eCommerce 7 * Version: 2.1.1 07 * Version: 2.1.11 8 8 * Requires at least: 4.7 9 9 * Tested up to: 6.6 … … 52 52 53 53 // Set constants 54 $this->define('DHLPWC_PLUGIN_VERSION', '2.1.1 0');54 $this->define('DHLPWC_PLUGIN_VERSION', '2.1.11'); 55 55 $this->define('DHLPWC_PLUGIN_FILE', __FILE__); 56 56 $this->define('DHLPWC_PLUGIN_BASENAME', plugin_basename(__FILE__)); -
dhlpwc/trunk/includes/controller/class-dhlpwc-controller-checkout.php
r3073094 r3255370 64 64 public function add_option_meta($order_id, $data) 65 65 { 66 $order = wc_get_order( $order_id ); 67 if (is_bool($order)) { 68 // Certain third party plugin filters might cause an issue with order IDs. Exit early in that case. 69 // The data won't be correctly saved with an order unfortunately because of this, but it's better than crashing 70 return; 71 } 72 66 73 $service = DHLPWC_Model_Service_Shipping_Preset::instance(); 67 74 $presets = $service->get_presets(); -
dhlpwc/trunk/includes/model/service/class-dhlpwc-model-service-order-meta-option.php
r3229375 r3255370 476 476 477 477 // Manually add LQ vs PS exclusion 478 if ($option ->key=== DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ) {479 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS, $ option->exclusions)) {480 $ option->exclusion_list[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS;478 if ($option === DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ) { 479 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS, $exclusions)) { 480 $exclusions[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS; 481 481 } 482 482 } 483 if ($option ->key=== DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS) {484 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ, $ option->exclusions)) {485 $ option->exclusion_list[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ;483 if ($option === DHLPWC_Model_Meta_Order_Option_Preference::OPTION_PS) { 484 if (!in_array(DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ, $exclusions)) { 485 $exclusions[] = DHLPWC_Model_Meta_Order_Option_Preference::OPTION_LQ; 486 486 } 487 487 } -
dhlpwc/trunk/readme.txt
r3229375 r3255370 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.6 7 Stable tag: 2.1.1 07 Stable tag: 2.1.11 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 9.0.2 … … 56 56 57 57 == Changelog == 58 59 = 2.1.11 = 60 - Fixed an issue with warning being generated when loading exclusions 61 - Fixed a code flow issue that can occur during checkout when an orderID cannot be found 58 62 59 63 = 2.1.10 =
Note: See TracChangeset
for help on using the changeset viewer.