Plugin Directory

Changeset 2887518


Ignore:
Timestamp:
03/27/2023 11:09:27 AM (3 years ago)
Author:
shindhl
Message:

Release 2.0.11

  • New contact information of our support department
  • New track & trace url’s
  • Tested up to Wordpress 6.2
Location:
dhlpwc
Files:
8 edited
1 copied

Legend:

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

    r2846823 r2887518  
    11# DHL Parcel for WooCommerce
     2 
     3v2.0.11
     4## Changes
     5- New contact information of our support department
     6- New track & trace url’s
     7- Tested up to Wordpress 6.2
    28 
    39v2.0.10
  • dhlpwc/tags/2.0.11/dhlpwoocommerce.php

    r2846823 r2887518  
    55 * Description:          This is the official DHL Parcel for WooCommerce plugin.
    66 * Author:               DHL Parcel
    7  * Version:              2.0.10
     7 * Version:              2.0.11
    88 * Requires at least:    4.7.16
    9  * Tested up to:         6.1
     9 * Tested up to:         6.2
    1010 * Requires PHP:         5.6
    1111 * WC requires at least: 3.0.0
    12  * WC tested up to:      6.2.0
     12 * WC tested up to:      7.3.0
    1313 * License:              GPL v3 or later
    1414 * License URI:          https://www.gnu.org/licenses/gpl-3.0.html
  • dhlpwc/tags/2.0.11/includes/model/service/class-dhlpwc-model-service-track-trace.php

    r2836525 r2887518  
    77class DHLPWC_Model_Service_Track_Trace extends DHLPWC_Model_Core_Singleton_Abstract
    88{
    9 
    10     const QUERY_LANDCODE = 'lang';
    11 
    12     protected $url = 'https://my.dhlparcel.nl/home/tracktrace/';
     9    protected $url = 'https://www.dhlparcel.nl/en/follow-your-shipment?tc={{trackerCode}}';
    1310    protected $alternate_urls = [
    14         'BE' => 'https://my.dhlparcel.be/home/tracktrace/'
     11        'NL' => 'https://my.dhlparcel.nl/home/tracktrace/{{trackerCode}}?lang={{locale}}',
     12        'BE' => 'https://www.dhlparcel.be/nl/particulieren/volg-je-zending?tt={{trackerCode}}'
    1513    ];
    1614
    1715    public function get_url($tracking_code = null, $locale = null, $country_code = null)
    1816    {
    19         $query_args = array();
    20         $appendix = '';
    2117        if ($tracking_code !== null) {
    22             $appendix = urlencode($tracking_code);
     18            $tracking_code = urlencode($tracking_code);
    2319        }
    2420
    25         if ($locale !== null) {
    26             $query_args[self::QUERY_LANDCODE] = 'en-NL';
    27             if (substr(urlencode($locale), 0, 2) === 'nl') {
    28                 $query_args[self::QUERY_LANDCODE] = 'nl-NL';
    29             }
     21        $language = 'en-NL';
     22        if ($locale !== null && substr(urlencode($locale), 0, 2) === 'nl') {
     23            $language = 'nl-NL';
    3024        }
    3125
     
    3529        }
    3630
    37         return add_query_arg($query_args, $tracking_url . $appendix);
     31        return str_replace(array('{{trackerCode}}', '{{locale}}'), array($tracking_code, $language), $tracking_url);
    3832    }
    3933
  • dhlpwc/tags/2.0.11/readme.txt

    r2846823 r2887518  
    55Requires PHP:         5.6
    66Tested up to:         5.9
    7 Stable tag:           2.0.10
     7Stable tag:           2.0.11
    88WC requires at least: 3.0.0
    99WC tested up to:      5.3.0
     
    5353
    5454== Changelog ==
     55 
     56= 2.0.11 =
     57- New contact information of our support department
     58- New track & trace url’s
     59- Tested up to Wordpress 6.2
    5560 
    5661= 2.0.10 =
     
    360365== Frequently Asked Questions ==
    361366
    362 Do you have any questions about our WooCommerce plug-in? We are ready to assist you and we will try to provide you with an answer as soon as possible. In need of a quick solution? See if your question is in the shortlist below or check our [manual](https://www.dhlparcel.nl/sites/default/files/content/PDF/Manual_WooCommerce_plug-in_EN.pdf). If you didn’t find what you were looking for, we will gladly assist you if you send us an [e-mail](mailto:cimparcel@dhl.com) or call us at 088 34 54 333.
     367Do you have any questions about our WooCommerce plug-in? We are ready to assist you and we will try to provide you with an answer as soon as possible. In need of a quick solution? See if your question is in the shortlist below or check our [manual](https://www.dhlparcel.nl/sites/default/files/content/PDF/Manual_WooCommerce_plug-in_EN.pdf). If you didn’t find what you were looking for, we will gladly assist you if you send us an [e-mail](mailto:cas.parcel@dhl.com).
    363368
    364369= How to get started =
  • dhlpwc/trunk/README.md

    r2846823 r2887518  
    11# DHL Parcel for WooCommerce
     2 
     3v2.0.11
     4## Changes
     5- New contact information of our support department
     6- New track & trace url’s
     7- Tested up to Wordpress 6.2
    28 
    39v2.0.10
  • dhlpwc/trunk/dhlpwoocommerce.php

    r2846823 r2887518  
    55 * Description:          This is the official DHL Parcel for WooCommerce plugin.
    66 * Author:               DHL Parcel
    7  * Version:              2.0.10
     7 * Version:              2.0.11
    88 * Requires at least:    4.7.16
    9  * Tested up to:         6.1
     9 * Tested up to:         6.2
    1010 * Requires PHP:         5.6
    1111 * WC requires at least: 3.0.0
    12  * WC tested up to:      6.2.0
     12 * WC tested up to:      7.3.0
    1313 * License:              GPL v3 or later
    1414 * License URI:          https://www.gnu.org/licenses/gpl-3.0.html
  • dhlpwc/trunk/includes/model/service/class-dhlpwc-model-service-track-trace.php

    r2836525 r2887518  
    77class DHLPWC_Model_Service_Track_Trace extends DHLPWC_Model_Core_Singleton_Abstract
    88{
    9 
    10     const QUERY_LANDCODE = 'lang';
    11 
    12     protected $url = 'https://my.dhlparcel.nl/home/tracktrace/';
     9    protected $url = 'https://www.dhlparcel.nl/en/follow-your-shipment?tc={{trackerCode}}';
    1310    protected $alternate_urls = [
    14         'BE' => 'https://my.dhlparcel.be/home/tracktrace/'
     11        'NL' => 'https://my.dhlparcel.nl/home/tracktrace/{{trackerCode}}?lang={{locale}}',
     12        'BE' => 'https://www.dhlparcel.be/nl/particulieren/volg-je-zending?tt={{trackerCode}}'
    1513    ];
    1614
    1715    public function get_url($tracking_code = null, $locale = null, $country_code = null)
    1816    {
    19         $query_args = array();
    20         $appendix = '';
    2117        if ($tracking_code !== null) {
    22             $appendix = urlencode($tracking_code);
     18            $tracking_code = urlencode($tracking_code);
    2319        }
    2420
    25         if ($locale !== null) {
    26             $query_args[self::QUERY_LANDCODE] = 'en-NL';
    27             if (substr(urlencode($locale), 0, 2) === 'nl') {
    28                 $query_args[self::QUERY_LANDCODE] = 'nl-NL';
    29             }
     21        $language = 'en-NL';
     22        if ($locale !== null && substr(urlencode($locale), 0, 2) === 'nl') {
     23            $language = 'nl-NL';
    3024        }
    3125
     
    3529        }
    3630
    37         return add_query_arg($query_args, $tracking_url . $appendix);
     31        return str_replace(array('{{trackerCode}}', '{{locale}}'), array($tracking_code, $language), $tracking_url);
    3832    }
    3933
  • dhlpwc/trunk/readme.txt

    r2846823 r2887518  
    55Requires PHP:         5.6
    66Tested up to:         5.9
    7 Stable tag:           2.0.10
     7Stable tag:           2.0.11
    88WC requires at least: 3.0.0
    99WC tested up to:      5.3.0
     
    5353
    5454== Changelog ==
     55 
     56= 2.0.11 =
     57- New contact information of our support department
     58- New track & trace url’s
     59- Tested up to Wordpress 6.2
    5560 
    5661= 2.0.10 =
     
    360365== Frequently Asked Questions ==
    361366
    362 Do you have any questions about our WooCommerce plug-in? We are ready to assist you and we will try to provide you with an answer as soon as possible. In need of a quick solution? See if your question is in the shortlist below or check our [manual](https://www.dhlparcel.nl/sites/default/files/content/PDF/Manual_WooCommerce_plug-in_EN.pdf). If you didn’t find what you were looking for, we will gladly assist you if you send us an [e-mail](mailto:cimparcel@dhl.com) or call us at 088 34 54 333.
     367Do you have any questions about our WooCommerce plug-in? We are ready to assist you and we will try to provide you with an answer as soon as possible. In need of a quick solution? See if your question is in the shortlist below or check our [manual](https://www.dhlparcel.nl/sites/default/files/content/PDF/Manual_WooCommerce_plug-in_EN.pdf). If you didn’t find what you were looking for, we will gladly assist you if you send us an [e-mail](mailto:cas.parcel@dhl.com).
    363368
    364369= How to get started =
Note: See TracChangeset for help on using the changeset viewer.