프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$weight | |||
$weight_cost | array | Should be an associative array, with the weight as key (KG) and the corresponding price as value.
Can be set via Config API, eg.
WeightShippingModifier:
weight_cost:
'0.5': 12
'1.0': 15
'2.0': 20
|
메소드 | 설명 | |
---|---|---|
TableTitle ( ) | ||
Weight ( ) : number | Calculate the total weight of the order | |
value ( $subtotal ) | Calculates shipping cost based on Product Weight. |
WeightShippingModifier:
weight_cost:
'0.5': 12
'1.0': 15
'2.0': 20
protected static array $weight_cost | ||
리턴 | array |