| 1 |
<?php |
| 2 |
|
| 3 |
namespace MakeCommerce\Shipping\Method\ParcelMachine; |
| 4 |
|
| 5 |
/** |
| 6 |
* Smartpost parcelmachine shippinh method. |
| 7 |
* Defines all Smartpost specific options. |
| 8 |
* |
| 9 |
* @since 3.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
class Smartpost extends \MakeCommerce\Shipping\Method\ParcelMachine { |
| 13 |
|
| 14 |
use \MakeCommerce\Shipping\Method\Common\Smartpost; |
| 15 |
|
| 16 |
public $default_price = "5.00"; |
| 17 |
public $default_max_weight = "35"; |
| 18 |
|
| 19 |
/** |
| 20 |
* Loads all form fields specific to this shipping method |
| 21 |
* |
| 22 |
* @since 3.0.0 |
| 23 |
*/ |
| 24 |
|
| 25 |
public function initialize_method_form_fields() { |
| 26 |
// nothing here. |
| 27 |
//option to disable white parcel machines, if only machines capable of recipient authentication are required. |
| 28 |
$this->form_fields['use_white_apts'] = array( |
| 29 |
'type' => 'select', |
| 30 |
'title' => __( 'Use authenticable APTs', 'wc_makecommerce_domain' ), |
| 31 |
'options' => array( |
| 32 |
false => __( 'use all APTs', 'wc_makecommerce_domain' ), |
| 33 |
true => __( 'use only non-white auth-capable APTs', 'wc_makecommerce_domain' ), |
| 34 |
), |
| 35 |
'default' => false, |
| 36 |
'description' => '', |
| 37 |
); |
| 38 |
|
| 39 |
} |
| 40 |
} |
| 41 |
|