ZenMagick 0.9.11


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

Class ZMShippingEstimator

ZMObject
└─ZMShippingEstimator

public class ZMShippingEstimator
extends ZMObject

Shipping estimator.

Author:
DerManoMann
Deprecated:
use ZMShippingProviders::getShippingProvidersForAddress instead

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

__construct(array properties)

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

Method Detail

utils\ZMShippingEstimator.php at line 39

__construct

public void __construct(array properties)

Create new instance.

Parameters:
properties - Optional properties; default is an empty array;

utils\ZMShippingEstimator.php at line 197

getAddress

public ZMAddress getAddress()

Get current address (if any)

Returns:
The curretn address or null.

utils\ZMShippingEstimator.php at line 78

getCountryId

public int getCountryId()

Get the country id.

Returns:
The country id for the current address.

utils\ZMShippingEstimator.php at line 56

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode for the current calculations.

utils\ZMShippingEstimator.php at line 67

getStateId

public int getStateId()

Get the state id.

Returns:
The state id for the current shipping calculation.

utils\ZMShippingEstimator.php at line 111

getZCAddress

public array getZCAddress()

Get a zen-cart style address (array).

Returns:
Array containing a zen-cart style address.

utils\ZMShippingEstimator.php at line 190

isCartEmpty

public void isCartEmpty()

Returns true if anything to calculate.


utils\ZMShippingEstimator.php at line 157

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.11