PluginProbe
MakeCommerce for WooCommerce / 3.0.12
MakeCommerce for WooCommerce v3.0.12
4.1.0 4.0.8 trunk 1.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.0 2.2.1 2.2.2 All 96 releases
makecommerce / shipping / method / common / dpd.php

dpd.php in MakeCommerce for WooCommerce 3.0.12, at shipping/method/common/dpd.php

38 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace MakeCommerce\Shipping\Method\Common;
4
5 /**
6 * Omniva specific functionality that is used by both courier and parcelmachine
7 *
8 * @since 3.0.4
9 */
10
11 trait DPD {
12
13 public $carrier = "DPD";
14 public $service_name = "DPD InterConnect";
15 public $international_number_format = true;
16
17 /**
18 * https://www.dpd.com/ee/wp-content/uploads/sites/235/2020/04/Interconnector_dokumentatsioon-1.pdf
19 *
20 * Recipient phone number, must start with international
21 * country code. e.g. +372555555, +37065123456
22 *
23 * country code => array(
24 * starting number(s) => array( lenght1, lenght2 )
25 * )
26 */
27 //DPD does not define any restrictions on phone numbers. Leave $valid_phonenumber_country_codes undefined
28
29 /**
30 * Returns invalid phone number error
31 *
32 * @since 3.0.4
33 */
34 public function phone_number_validation_error() {
35 return '<strong>' . $this->carrier . '</strong> ' . __(' can be used with an international phone number only. Please specify your phone number with international access code (e.g. +372xxxxxxx)', 'wc_makecommerce_domain' );
36 }
37 }
38