SilverShop\Shipping\Model\TableShippingMethod
Work out shipping rate from a pre-defined table of regions - to - weights and dimensions.
Synopsis
class TableShippingMethod
extends ShippingMethod
{
- // members
- private static array $defaults = ;
- private static array $has_many = ;
- private static string $table_name = 'SilverShop_TableShippingMethod';
- private static string $singular_name = 'Table shipping method';
- private static string $plural_name = 'Table shipping methods';
- // methods
- public void getCMSFields()
- public void calculateRate()
- public bool requiresAddress()
- // Inherited methods from ShippingMethod
- public void getCalculator()
- public void calculateRate()
- public void getRate()
- public void getTitle()
- public bool requiresAddress()
Hierarchy
Members
private
- $defaults
- $has_many
- $plural_name
- $singular_name
- $table_name
Methods
public
- calculateRate() — Find the appropriate shipping rate from stored table range metrics.
- getCMSFields()
- requiresAddress() — If this shipping method has any @TableShippingRate with any @RegionRestriction where either Country, State, City or PostalCode are submitted, this method returns true Else it returns false (@ShippingMethod::requiresAddress());
Inherited from SilverShop\Shipping\Model\ShippingMethod
public
- calculateRate()
- getCalculator()
- getRate()
- getTitle()
- requiresAddress() — Some shipping methods might require an address present on the order.