Changeset 2887518
- Timestamp:
- 03/27/2023 11:09:27 AM (3 years ago)
- Location:
- dhlpwc
- Files:
-
- 8 edited
- 1 copied
-
tags/2.0.11 (copied) (copied from dhlpwc/trunk)
-
tags/2.0.11/README.md (modified) (1 diff)
-
tags/2.0.11/dhlpwoocommerce.php (modified) (1 diff)
-
tags/2.0.11/includes/model/service/class-dhlpwc-model-service-track-trace.php (modified) (2 diffs)
-
tags/2.0.11/readme.txt (modified) (3 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/dhlpwoocommerce.php (modified) (1 diff)
-
trunk/includes/model/service/class-dhlpwc-model-service-track-trace.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dhlpwc/tags/2.0.11/README.md
r2846823 r2887518 1 1 # DHL Parcel for WooCommerce 2 3 v2.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 2 8 3 9 v2.0.10 -
dhlpwc/tags/2.0.11/dhlpwoocommerce.php
r2846823 r2887518 5 5 * Description: This is the official DHL Parcel for WooCommerce plugin. 6 6 * Author: DHL Parcel 7 * Version: 2.0.1 07 * Version: 2.0.11 8 8 * Requires at least: 4.7.16 9 * Tested up to: 6. 19 * Tested up to: 6.2 10 10 * Requires PHP: 5.6 11 11 * WC requires at least: 3.0.0 12 * WC tested up to: 6.2.012 * WC tested up to: 7.3.0 13 13 * License: GPL v3 or later 14 14 * 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 7 7 class DHLPWC_Model_Service_Track_Trace extends DHLPWC_Model_Core_Singleton_Abstract 8 8 { 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}}'; 13 10 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}}' 15 13 ]; 16 14 17 15 public function get_url($tracking_code = null, $locale = null, $country_code = null) 18 16 { 19 $query_args = array();20 $appendix = '';21 17 if ($tracking_code !== null) { 22 $ appendix= urlencode($tracking_code);18 $tracking_code = urlencode($tracking_code); 23 19 } 24 20 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'; 30 24 } 31 25 … … 35 29 } 36 30 37 return add_query_arg($query_args, $tracking_url . $appendix);31 return str_replace(array('{{trackerCode}}', '{{locale}}'), array($tracking_code, $language), $tracking_url); 38 32 } 39 33 -
dhlpwc/tags/2.0.11/readme.txt
r2846823 r2887518 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.9 7 Stable tag: 2.0.1 07 Stable tag: 2.0.11 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 5.3.0 … … 53 53 54 54 == 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 55 60 56 61 = 2.0.10 = … … 360 365 == Frequently Asked Questions == 361 366 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:c imparcel@dhl.com) or call us at 088 34 54 333.367 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:cas.parcel@dhl.com). 363 368 364 369 = How to get started = -
dhlpwc/trunk/README.md
r2846823 r2887518 1 1 # DHL Parcel for WooCommerce 2 3 v2.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 2 8 3 9 v2.0.10 -
dhlpwc/trunk/dhlpwoocommerce.php
r2846823 r2887518 5 5 * Description: This is the official DHL Parcel for WooCommerce plugin. 6 6 * Author: DHL Parcel 7 * Version: 2.0.1 07 * Version: 2.0.11 8 8 * Requires at least: 4.7.16 9 * Tested up to: 6. 19 * Tested up to: 6.2 10 10 * Requires PHP: 5.6 11 11 * WC requires at least: 3.0.0 12 * WC tested up to: 6.2.012 * WC tested up to: 7.3.0 13 13 * License: GPL v3 or later 14 14 * 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 7 7 class DHLPWC_Model_Service_Track_Trace extends DHLPWC_Model_Core_Singleton_Abstract 8 8 { 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}}'; 13 10 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}}' 15 13 ]; 16 14 17 15 public function get_url($tracking_code = null, $locale = null, $country_code = null) 18 16 { 19 $query_args = array();20 $appendix = '';21 17 if ($tracking_code !== null) { 22 $ appendix= urlencode($tracking_code);18 $tracking_code = urlencode($tracking_code); 23 19 } 24 20 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'; 30 24 } 31 25 … … 35 29 } 36 30 37 return add_query_arg($query_args, $tracking_url . $appendix);31 return str_replace(array('{{trackerCode}}', '{{locale}}'), array($tracking_code, $language), $tracking_url); 38 32 } 39 33 -
dhlpwc/trunk/readme.txt
r2846823 r2887518 5 5 Requires PHP: 5.6 6 6 Tested up to: 5.9 7 Stable tag: 2.0.1 07 Stable tag: 2.0.11 8 8 WC requires at least: 3.0.0 9 9 WC tested up to: 5.3.0 … … 53 53 54 54 == 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 55 60 56 61 = 2.0.10 = … … 360 365 == Frequently Asked Questions == 361 366 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:c imparcel@dhl.com) or call us at 088 34 54 333.367 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:cas.parcel@dhl.com). 363 368 364 369 = How to get started =
Note: See TracChangeset
for help on using the changeset viewer.