ZenMagick 0.9.8


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

Class ZMShippingEstimator

ZMObject
└─ZMShippingEstimator

public class ZMShippingEstimator
extends ZMObject

Shipping estimator.

Author:
DerManoMann
Version:
$Id: ZMShippingEstimator.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMShippingEstimator()

Create new instance.

Method Summary
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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\utils\ZMShippingEstimator.php at line 39

ZMShippingEstimator

public ZMShippingEstimator()

Create new instance.


Method Detail

\store\utils\ZMShippingEstimator.php at line 197

getAddress

public ZMAddress getAddress()

Get current address (if any)

Returns:
The curretn address or null.

\store\utils\ZMShippingEstimator.php at line 78

getCountryId

public int getCountryId()

Get the country id.

Returns:
The country id for the current address.

\store\utils\ZMShippingEstimator.php at line 56

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode for the current calculations.

\store\utils\ZMShippingEstimator.php at line 67

getStateId

public int getStateId()

Get the state id.

Returns:
The state id for the current shipping calculation.

\store\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.

\store\utils\ZMShippingEstimator.php at line 190

isCartEmpty

public void isCartEmpty()

Returns true if anything to calculate.


\store\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.8