%
' Comersus 6.0x Sophisticated Cart
' Developed by Rodrigo S. Alhadeff for Comersus Open Technologies
' United States
' Open Source License can be found at License.txt
' http://www.comersus.com
' Details: if cart is not empty get orderform screen for first buy
%>
<%
on error resume next
dim mySQL, connTemp, rsTemp
' get settings
pStoreFrontDemoMode = getSettingKey("pStoreFrontDemoMode")
pCurrencySign = getSettingKey("pCurrencySign")
pDecimalSign = getSettingKey("pDecimalSign")
pCompany = getSettingKey("pCompany")
pCompanyLogo = getSettingKey("pCompanyLogo")
pAuctions = getSettingKey("pAuctions")
pListBestSellers = getSettingKey("pListBestSellers")
pNewsLetter = getSettingKey("pNewsLetter")
pPriceList = getSettingKey("pPriceList")
pStoreNews = getSettingKey("pStoreNews")
pOneStepCheckout = getSettingKey("pOneStepCheckout")
pUseShippingAddress = getSettingKey("pUseShippingAddress")
pRandomPassword = getSettingKey("pRandomPassword")
pUseVatNumber = getSettingKey("pUseVatNumber")
pEncryptionMethod = getSettingKey("pEncryptionMethod")
pBonusPointsPerPrice = getSettingKey("pBonusPointsPerPrice")
pDisableState = getSettingKey("pDisableState")
pByPassShipping = getSettingKey("pByPassShipping")
pUseShippingAddress = getSettingKey("pUseShippingAddress")
pTeleSignCustomerId = getSettingKey("pTeleSignCustomerId")
pAllowNewCustomer = getSettingKey("pAllowNewCustomer")
pHeaderKeywords = getSettingKey("pHeaderKeywords")
' custom field names
pCustomerFieldName1 = getSettingKey("customerFieldName1")
pCustomerFieldName2 = getSettingKey("customerFieldName2")
pCustomerFieldName3 = getSettingKey("customerFieldName3")
' session
pWishListIdCustomer = getSessionVariable("wishListIdCustomer",0)
pIdDbSessionCart = getSessionVariable("idDbSessionCart",0)
pIdDbSession = checkSessionData()
pIdDbSessionCart = checkDbSessionCartOpen()
session("idCustomer") = Cint(0)
if countCartRows(pIdDbSessionCart)=0 then
response.redirect "comersus_message.asp?message="&Server.Urlencode(getMsg(616,"It seems that your session was lost. Please try again from store home and make sure that you have Cookies enabled."))
end if
if pIdDbSessionCart=0 then
response.redirect "comersus_supportError.asp?error="&Server.Urlencode(getMsg(617,"Database session cart lost, please try again from store home."))
end if
if pAllowNewCustomer="0" or (pTeleSignCustomerId<>"0" and pTeleSignCustomerId<>"") then
response.redirect "comersus_message.asp?message="&Server.Urlencode("Feature disabled in this store")
end if
%>
<%=getMsg(618,"personal info")%>