Plugin Directory

Changeset 3255370


Ignore:
Timestamp:
03/13/2025 12:41:39 PM (13 months ago)
Author:
dhlparcel
Message:

Release 2.1.11

  • Fixed an issue with warning being generated when loading exclusions
  • Fixed a code flow issue that can occur during checkout when an orderID cannot be found
Location:
dhlpwc
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dhlpwc/tags/2.1.11/README.md

    r3229375 r3255370  
    11# DHL eCommerce (Benelux) for WooCommerce
     2 
     3v2.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
    27 
    38v2.1.10
  • dhlpwc/tags/2.1.11/dhlpwoocommerce.php

    r3229375 r3255370  
    55 * Description:          This is the official DHL eCommerce (Benelux) for WooCommerce plugin.
    66 * Author:               DHL eCommerce
    7  * Version:              2.1.10
     7 * Version:              2.1.11
    88 * Requires at least:    4.7
    99 * Tested up to:         6.6
     
    5252
    5353        // Set constants
    54         $this->define('DHLPWC_PLUGIN_VERSION', '2.1.10');
     54        $this->define('DHLPWC_PLUGIN_VERSION', '2.1.11');
    5555        $this->define('DHLPWC_PLUGIN_FILE', __FILE__);
    5656        $this->define('DHLPWC_PLUGIN_BASENAME', plugin_basename(__FILE__));
  • dhlpwc/tags/2.1.11/includes/controller/class-dhlpwc-controller-checkout.php

    r3073094 r3255370  
    6464    public function add_option_meta($order_id, $data)
    6565    {
     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
    6673        $service = DHLPWC_Model_Service_Shipping_Preset::instance();
    6774        $presets = $service->get_presets();
  • dhlpwc/tags/2.1.11/includes/model/service/class-dhlpwc-model-service-order-meta-option.php

    r3229375 r3255370  
    476476
    477477                // 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;
    481481                    }
    482482                }
    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;
    486486                    }
    487487                }
  • dhlpwc/tags/2.1.11/readme.txt

    r3229375 r3255370  
    55Requires PHP:         5.6
    66Tested up to:         6.6
    7 Stable tag:           2.1.10
     7Stable tag:           2.1.11
    88WC requires at least: 3.0.0
    99WC tested up to:      9.0.2
     
    5656
    5757== 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
    5862 
    5963= 2.1.10 =
  • dhlpwc/trunk/README.md

    r3229375 r3255370  
    11# DHL eCommerce (Benelux) for WooCommerce
     2 
     3v2.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
    27 
    38v2.1.10
  • dhlpwc/trunk/dhlpwoocommerce.php

    r3229375 r3255370  
    55 * Description:          This is the official DHL eCommerce (Benelux) for WooCommerce plugin.
    66 * Author:               DHL eCommerce
    7  * Version:              2.1.10
     7 * Version:              2.1.11
    88 * Requires at least:    4.7
    99 * Tested up to:         6.6
     
    5252
    5353        // Set constants
    54         $this->define('DHLPWC_PLUGIN_VERSION', '2.1.10');
     54        $this->define('DHLPWC_PLUGIN_VERSION', '2.1.11');
    5555        $this->define('DHLPWC_PLUGIN_FILE', __FILE__);
    5656        $this->define('DHLPWC_PLUGIN_BASENAME', plugin_basename(__FILE__));
  • dhlpwc/trunk/includes/controller/class-dhlpwc-controller-checkout.php

    r3073094 r3255370  
    6464    public function add_option_meta($order_id, $data)
    6565    {
     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
    6673        $service = DHLPWC_Model_Service_Shipping_Preset::instance();
    6774        $presets = $service->get_presets();
  • dhlpwc/trunk/includes/model/service/class-dhlpwc-model-service-order-meta-option.php

    r3229375 r3255370  
    476476
    477477                // 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;
    481481                    }
    482482                }
    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;
    486486                    }
    487487                }
  • dhlpwc/trunk/readme.txt

    r3229375 r3255370  
    55Requires PHP:         5.6
    66Tested up to:         6.6
    7 Stable tag:           2.1.10
     7Stable tag:           2.1.11
    88WC requires at least: 3.0.0
    99WC tested up to:      9.0.2
     
    5656
    5757== 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
    5862 
    5963= 2.1.10 =
Note: See TracChangeset for help on using the changeset viewer.