public class BaseShippingModule extends BaseModule
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log
The
Log instance for this application. |
basePackage, debugStackTraceExclusions
Constructor and Description |
---|
BaseShippingModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkForProducts(ShippingInfo info)
If there are no products it throws an exception since shipping isn't required.
|
protected void |
checkZone(ShippingInfo info,
int geoZoneId)
Ensures that the geoZoneId is within one of the Geo Zones contained in the ShippingInfo
object.
|
protected KKCriteria |
getNewCriteria(boolean allStores)
Gets a new KKCriteria object with the option of it being for all stores when in multi-store
single db mode.
|
protected boolean |
isGeoZoneMappedToCountry(int geoZoneId,
int countryId)
In some cases no zones may be defined for a country but a geo zone may be defined to map to
all zones of that country.
|
protected boolean |
isMultiStoreShareCustomers()
Returns true if we need to share customers in multi-store single db mode
|
getBasketMgr, getCatMgr, getConfigMgr, getConfiguration, getConfigurationValue, getConfigurationValueAsBigDecimalWithDefault, getConfigurationValueAsBool, getConfigurationValueAsIntWithDefault, getCurrMgr, getCustMgr, getCustTagMgr, getDebugStackTraceExclusions, getEmailMgr, getEng, getLangMgr, getModuleClassName, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getRandomText, getRandomText, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getStoreMgr, getTaxMgr, getZoneCodeForZoneName, init, isAvailable, isAvailable, isMultiStoreShareCustomersOrProducts, setDebugStackTraceExclusions, updateStaticVariablesNow
protected org.apache.commons.logging.Log log
Log
instance for this application.protected void checkZone(ShippingInfo info, int geoZoneId) throws com.konakart.app.KKException
info
- the ShippingInfo - this defines the items to be shippedgeoZoneId
- the geoZoneIdcom.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected boolean isGeoZoneMappedToCountry(int geoZoneId, int countryId)
This method does a search in the zones_to_geo_zones table for any entries matching the geoZoneId, countryId and zoneId of 0 which is the id that is set when the mapping is for all zones of the country.
geoZoneId
- the geoZoneIdcountryId
- the countryIdprotected boolean isMultiStoreShareCustomers() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected exception from the KonaKart engineprotected KKCriteria getNewCriteria(boolean allStores)
getNewCriteria
in class BaseModule
allStores
- the allStoresprotected void checkForProducts(ShippingInfo info) throws com.konakart.app.KKException
info
- ShippingInfo object - this defines the items to be shippedcom.konakart.app.KKException
- an unexpected exception from the KonaKart engineCopyright © 2018 DS Data Systems UK Ltd.