Property | Type | Description | |
---|---|---|---|
$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
|
Method | Description | |
---|---|---|
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 | ||
return | array |