PluginProbe
MakeCommerce for WooCommerce / 3.0.9
MakeCommerce for WooCommerce v3.0.9
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 / smartpost.php

smartpost.php in MakeCommerce for WooCommerce 3.0.9, at shipping/method/common/smartpost.php

37 lines 1.0 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 Smartpost {
12
13 public $carrier = "Smartpost";
14 public $service_name = "eservice.smartpost.ee";
15 public $international_number_format = true;
16
17 /**
18 * https://api.posti.fi/api-shipments.html
19 *
20 * Telephone number (with country code e.g. +3580501234567)
21 *
22 * country code => array(
23 * starting number(s) => array( lenght1, lenght2 )
24 * )
25 */
26 //Smartpost does not define any restrictions on phone numbers. Leave $valid_phonenumber_country_codes undefined
27
28 /**
29 * Returns invalid phone number error
30 *
31 * @since 3.0.4
32 */
33 public function phone_number_validation_error() {
34 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' );
35 }
36 }
37