| 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 |
} |