ZenMagick 0.9.6


org.zenmagick.misc.ZMShippingEstimator

Class ZMShippingEstimator

ZMObject
|
+--ZMShippingEstimator

public class ZMShippingEstimator
extends ZMObject

Shipping estimator.

Author:
DerManoMann
Version:
$Id: ZMShippingEstimator.php 1966 2009-02-14 10:52:50Z dermanomann $

Fields inherited from org.zenmagick.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.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMShippingEstimator

public ZMShippingEstimator()

Create new instance. /


Method Detail

getAddress

public ZMAddress getAddress()

Get current address (if any)

Returns:
The curretn address or null.

getCountryId

public int getCountryId()

Get the country id.

Returns:
The country id for the current address.

getPostcode

public string getPostcode()

Get the postcode.

Returns:
The postcode for the current calculations.

getStateId

public int getStateId()

Get the state id.

Returns:
The state id for the current shipping calculation.

getZCAddress

public array getZCAddress()

Get a zen-cart style address (array).

Returns:
Array containing a zen-cart style address.

isCartEmpty

public void isCartEmpty()

Returns true if anything to calculate. /


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