ZMObject
└─ZMShippingEstimator
public class ZMShippingEstimator
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(array properties) Create new instance. |
| ZMAddress | Get current address (if any) |
| int | Get the country id. |
| string | Get the postcode. |
| int | Get the state id. |
| array | Get a zen-cart style address (array). |
| void | Returns true if anything to calculate. |
| void | prepare() Prepare . |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set | |
public void __construct(array properties)
Create new instance.
public ZMAddress getAddress()
Get current address (if any)
null.public int getCountryId()
Get the country id.
public string getPostcode()
Get the postcode.
public int getStateId()
Get the state id.
public array getZCAddress()
Get a zen-cart style address (array).
public void isCartEmpty()
Returns true if anything to calculate.
public void prepare()
Prepare .
This method will set up everything to be able to run shipping calculations. Needs to be called before any results can be displayed.
Shipping estimator.