com.konakart.bl.modules.shipping.table
Class Table

java.lang.Object
  extended by com.konakart.bl.modules.BaseModule
      extended by com.konakart.bl.modules.shipping.BaseShippingModule
          extended by com.konakart.bl.modules.shipping.table.Table
All Implemented Interfaces:
ShippingInterface

public class Table
extends BaseShippingModule
implements ShippingInterface

This shipping module implements a rate per item weight or a rate based on the total cost. The items passed to this module have already been split up into individual packages based on the maximum weight allowed per single package. If MODULE_SHIPPING_TABLE_TAX_CLASS is greater than zero, then tax is added if the shipping address is in a taxable zone. The handling charge defined by MODULE_SHIPPING_TABLE_HANDLING is also added.


Nested Class Summary
protected  class Table.StaticData
          Used to store the static data of this module
 
Field Summary
 
Fields inherited from class com.konakart.bl.modules.shipping.BaseShippingModule
log
 
Fields inherited from class com.konakart.bl.modules.BaseModule
basePackage
 
Constructor Summary
Table(KKEngIf eng)
          Constructor
 
Method Summary
 ShippingQuote getQuote(Order order, ShippingInfo info)
          From the ShippingCountry we find the iso code of the country and determine its zone.
 boolean isAvailable()
          Returns true or false
 void setStaticVariables()
          Sets some static variables during setup
 
Methods inherited from class com.konakart.bl.modules.shipping.BaseShippingModule
checkForProducts, checkZone
 
Methods inherited from class com.konakart.bl.modules.BaseModule
getBasketMgr, getCatMgr, getConfigMgr, getConfiguration, getConfigurationValue, getConfigurationValueAsBigDecimalWithDefault, getConfigurationValueAsBool, getConfigurationValueAsIntWithDefault, getCurrMgr, getCustMgr, getEmailMgr, getEng, getLangMgr, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getTaxMgr, getZoneCodeForZoneName, init, isAvailable, isAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Table

public Table(KKEngIf eng)
      throws org.apache.torque.TorqueException,
             KKException,
             com.workingdogs.village.DataSetException
Constructor

Parameters:
eng -
Throws:
com.workingdogs.village.DataSetException
KKException
org.apache.torque.TorqueException
Method Detail

getQuote

public ShippingQuote getQuote(Order order,
                              ShippingInfo info)
                       throws java.lang.Exception
From the ShippingCountry we find the iso code of the country and determine its zone.

Specified by:
getQuote in interface ShippingInterface
Parameters:
order -
Returns:
Returns a ShippingQuote object
Throws:
KKException
java.lang.Exception

setStaticVariables

public void setStaticVariables()
                        throws KKException
Sets some static variables during setup

Specified by:
setStaticVariables in interface ShippingInterface
Throws:
KKException

isAvailable

public boolean isAvailable()
                    throws KKException
Returns true or false

Specified by:
isAvailable in interface ShippingInterface
Returns:
True or False
Throws:
KKException


Copyright © 2011 DS Data Systems UK Ltd.