%
' Comersus Shopping Cart
' Comersus Open Technologies
' United States
' Software License can be found at License.txt
' http://www.comersus.com
' Details: modify shipping at checkout
%>
<%
on error resume next
dim connTemp, mySql, rsTemp, rsTemp2
pIdCustomer = getSessionVariable("idCustomer",0)
' get settings
pStoreFrontDemoMode = getSettingKey("pStoreFrontDemoMode")
pCurrencySign = getSettingKey("pCurrencySign")
pDecimalSign = getSettingKey("pDecimalSign")
pCompany = getSettingKey("pCompany")
pDisableState = getSettingKey("pDisableState")
pHeaderKeywords = getSettingKey("pHeaderKeywords")
pAuctions = getSettingKey("pAuctions")
pAllowNewCustomer = getSettingKey("pAllowNewCustomer")
pNewsLetter = getSettingKey("pNewsLetter")
pStoreNews = getSettingKey("pStoreNews")
pSuppliersList = getSettingKey("pSuppliersList")
pEncryptionPassword = getSettingKey("pEncryptionPassword")
pEncryptionMethod = getSettingKey("pEncryptionMethod")
pCustomerPrefix = getSettingKey("pCustomerPrefix")
' custom field names
pCustomerFieldName1 = getSettingKey("customerFieldName1")
pCustomerFieldName2 = getSettingKey("customerFieldName2")
pCustomerFieldName3 = getSettingKey("customerFieldName3")
pRedirect = getUserInput(request.querystring("redirect"),20)
' get customer data
mySql="SELECT shippingName, shippingLastName, shippingAddress, shippingZip, shippingStateCode, shippingState, shippingCity, shippingCountryCode FROM customers WHERE idCustomer=" &pIdCustomer
call getFromDatabase(mySQL, rstemp, "customerModifyForm")
if rstemp.eof then
response.redirect "comersus_supportError.asp?error="&Server.Urlencode("Cannot locate customer information in customerModifyForm")
end if
pStateCode = rstemp("shippingStateCode")
pCountryCode = rstemp("shippingCountryCode")
%>
<%=getMsg(420,"shipping")%>