ZenMagick 0.9.10


zenmagick.store.sf.utils\ZMShippingEstimator
utils\ZMShippingEstimator.php at line 33

Class ZMShippingEstimator

ZMObject
└─ZMShippingEstimator

public class ZMShippingEstimator
extends ZMObject

Shipping estimator.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

ZMAddress

getAddress()

Get current address (if any)

int

getCountryId()

Get the country id.

string

getPostcode()

Get the postcode.

int

getStateId()

Get the state id.

array

getZCAddress()

Get a zen-cart style address (array).

void

isCartEmpty()

Returns true if anything to calculate.

void

prepare()

Prepare .

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

utils\ZMShippingEstimator.php at line 38

__construct

public void __construct()

Create new instance.


utils\ZMShippingEstimator.php at line 196

getAddress

public ZMAddress getAddress()

Get current address (if any)

Returns:
The curretn address or null.

utils\ZMShippingEstimator.php at line 77

getCountryId

public int getCountryId()

Get the country id.

Returns:
The country id for the current address.

utils\ZMShippingEstimator.php at line 55

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode for the current calculations.

utils\ZMShippingEstimator.php at line 66

getStateId

public int getStateId()

Get the state id.

Returns:
The state id for the current shipping calculation.

utils\ZMShippingEstimator.php at line 110

getZCAddress

public array getZCAddress()

Get a zen-cart style address (array).

Returns:
Array containing a zen-cart style address.

utils\ZMShippingEstimator.php at line 189

isCartEmpty

public void isCartEmpty()

Returns true if anything to calculate.


utils\ZMShippingEstimator.php at line 156

prepare

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.


ZenMagick 0.9.10