com.konakart.bl.modules.shipping.digitaldownload
Class DigitalDownload
java.lang.Object
com.konakart.bl.modules.BaseModule
com.konakart.bl.modules.shipping.BaseShippingModule
com.konakart.bl.modules.shipping.digitaldownload.DigitalDownload
- All Implemented Interfaces:
- ShippingInterface
public class DigitalDownload
- extends BaseShippingModule
- implements ShippingInterface
This shipping module returns an exception if the order contains any physical products (whether
they have free shipping or not). It only returns a quote if the order contains only digital
download products. If you sell digital download products in your store, then you should install
this module.
| Methods inherited from class com.konakart.bl.modules.BaseModule |
getBasketMgr, getCatMgr, getConfigMgr, getCurrMgr, getCustMgr, getEmailMgr, getEng, getLangMgr, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, init, isAvailable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DigitalDownload
public DigitalDownload(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
getQuote
public ShippingQuote getQuote(Order order,
ShippingInfo info)
throws java.lang.Exception
- Return a quote of 0 if all of the products are digital downloads. Otherwise throw an
exception.
- Specified by:
getQuote in interface ShippingInterface
- Parameters:
order -
- Returns:
- Returns a ShippingQuote object
- Throws:
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.