PluginProbe
MakeCommerce for WooCommerce / 3.3.1
MakeCommerce for WooCommerce v3.3.1
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 / lpexpress.php

lpexpress.php in MakeCommerce for WooCommerce 3.3.1, at shipping/method/common/lpexpress.php

33 lines 922 B
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 * LP Express specific functionality that is used by parcel machines
7 *
8 * @since 3.2.0
9 */
10
11 trait LPExpress {
12
13 public $carrier = "LP Express";
14 public $carrier_id = "lp_express_lt";
15 public $carrier_title = "LP Express";
16 public $service_name = "LP Express";
17 public $international_number_format = false;
18
19 public array $valid_phonenumber_country_codes = array(
20 "370" => array(
21 "*" => array( "8" ),
22 )
23 );
24
25 /**
26 * Returns invalid phone number error
27 *
28 * @since 3.2.0
29 */
30 public function phone_number_validation_error() {
31 return '<strong>' . $this->carrier_title . ' ' . $this->identifier . '</strong> ' . __(' can be used with a Lithuanian phone number only. Please specify your phone number with Lithuanian country code (e.g. +370xxxxxxxx)', 'wc_makecommerce_domain' );
32 }
33 }