ZMShippingProvider
public interface ZMShippingProvider
| Method Summary | |
|---|---|
| array | Get the errors. |
| string | getIcon() Get the icon. |
| int | getId() Get the shipping provider id. |
| string | getName() Get the shipping provider name. |
| ZMShippingMethod | getShippingMethodForId(string id, ZMShoppingCart shoppingCart, ZMAddress address) Get a specific shipping method for the given address. |
| array | getShippingMethods(ZMShoppingCart shoppingCart, ZMAddress address) Get available shipping methods for the given address. |
| boolean | Checks if errors are logged for this provider. |
| boolean | hasIcon() Checks if an icon exists for this provider. |
| boolean | Flags whether this shipping provider is installed or not. |
public array getErrors()
Get the errors.
public string getIcon()
Get the icon.
public int getId()
Get the shipping provider id.
public string getName()
Get the shipping provider name.
public ZMShippingMethod getShippingMethodForId(string id, ZMShoppingCart shoppingCart, ZMAddress address)
Get a specific shipping method for the given address.
null.public array getShippingMethods(ZMShoppingCart shoppingCart, ZMAddress address)
Get available shipping methods for the given address.
ZMShippingMethod instances.public boolean hasErrors()
Checks if errors are logged for this provider.
true if errors exist, false if not.public boolean hasIcon()
Checks if an icon exists for this provider.
true if an icon, false if not.public boolean isInstalled()
Flags whether this shipping provider is installed or not.
true if installed, false if not.
A shipping provider.
A shipping provider may offer 1-n shipping methods, depending on the address, or other shipping conditions.