ZMObject
|
+--ZMShippingProviderWrapper
public class ZMShippingProviderWrapper
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMShippingProviderWrapper(mixed zenModule) Create a new shipping provider. |
|
| 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. |
| array | getShippingMethods(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. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMShippingProviderWrapper(mixed zenModule)
Create a new shipping provider.
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 array getShippingMethods(ZMAddress address)
Get available shipping methods for the given address.
NOTE: There is currently no way to specify individual items. Basis for calculations is the current shopping cart.
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.
Shipping provider.
A shipping provider may offer 1-n shipping methods, depending on the address, etc.
This is eventually going to be a replacement for the current
ZMShippingProviderclass, in combination with the newZMShippingProvidersservice.