ZMObject
|
+--ZMShippingEstimator
public class ZMShippingEstimator
extends ZMObject
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| 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.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMShippingEstimator()
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.