%
' Comersus Shopping Cart
' Comersus Open Technologies
' United States
' Software License can be found at License.txt
' http://www.comersus.com
' Details: show cart contents
%>
<%
on error resume next
dim mySQL, connTemp, rsTemp, rsTemp2, rsTemp7, pDefaultLanguage, pStoreFrontDemoMode, pCurrencySign, pDecimalSign, pMoneyDontRound, pCompany, pCompanyLogo, pHeaderKeywords, pAuctions, pListBestSellers, pNewsLetter, pPriceList, pStoreNews, pOneStepCheckout, pRealTimeShipping, pAllowNewCustomer, pByPassShipping, total, totalDeliveringTime, pIdDbSession, pIdDbSessionCart, pIdCustomer, pIdCustomerType, pLanguage, pCustomerName, pHeaderCartItems, pHeaderCartSubtotal, pAffiliatesStoreFront, pIdCartRow, pIdProduct, pQuantity, pUnitPrice, pDescription, pSku, pDeliveringTime, pPersonalizationDesc, pRental, pItHasFreeProduct, pDetails, pOptionGroupsTotal, pRowPrice, pBonusPoints
' get settings.
pStoreFrontDemoMode = getSettingKey("pStoreFrontDemoMode")
pCurrencySign = getSettingKey("pCurrencySign")
pDecimalSign = getSettingKey("pDecimalSign")
pCompany = getSettingKey("pCompany")
pCompanyCountryCode = getSettingKey("pCompanyCountryCode")
pCompanySlogan = getSettingKey("pCompanySlogan")
pApplyGST = getSettingKey("pGST")
pGSTRate = getSettingKey("pGSTRate")
pAboutUsLink = getSettingKey("pAboutUsLink")
pHeaderKeywords = getSettingKey("pHeaderKeywords")
pPayPalExpressCheckout = getSettingKey("pPayPalExpressCheckout")
pMoneyDontRound = getSettingKey("pMoneyDontRound")
pByPassShipping = getSettingKey("pByPassShipping")
pTaxIncluded = getSettingKey("pTaxIncluded")
pRealTimeShipping = getSettingKey("pRealTimeShipping")
pAustPostShipping = getSettingKey("pAustPostShipping")
pAllowNewCustomer = getSettingKey("pAllowNewCustomer")
pAffiliatesStoreFront = getSettingKey("pAffiliatesStoreFront")
pSuppliersList = getSettingKey("pSuppliersList")
pAuctions = getSettingKey("pAuctions")
pNewsLetter = getSettingKey("pNewsLetter")
pShowNews = getSettingKey("pShowNews")
total = Cdbl(0)
totalDeliveringTime = Cdbl(0)
pIdDbSession = checkSessionData()
pIdDbSessionCart = checkDbSessionCartOpen()
pIdCustomer = getSessionVariable("idCustomer",0)
pIdCustomerType = getSessionVariable("idCustomerType",1)
pDiscountCode = getSessionVariable("discountCode","")
' check if the cart is empty.
if countCartRows(pIdDbSessionCart) = 0 then
response.redirect "comersus_message.asp?message=" & Server.Urlencode(getMsg(40,"emtpy"))
end if
call customerTracking("comersus_showCart.asp", request.querystring)
pSubTotal = calculateCartTotal(pIdDbSessionCart)
%>
<%=getMsg(42,"Your cart contains")%>
