<% ' Comersus BackOffice Lite ' e-commerce ASP Open Source ' Comersus Open Technologies LC ' 2005 ' http://www.comersus.com %> <% on error resume next dim mySQL, conntemp, rstemp pRunInstallationWizard = getSettingKey("pRunInstallationWizard") if pRunInstallationWizard<>"-1" then response.redirect "comersus_backoffice_message.asp?message="&Server.UrlEncode("Sorry, the Installation Wizard is disabled") pPayPalMerchantEmail =request.form("pPayPalMerchantEmail") p2CheckoutSID =request.form("p2CheckoutSID") pUseOffLineCreditCards =request.form("pUseOffLineCreditCards") pChecks =request.form("pChecks") pChecksComments =request.form("pChecksComments") pWireTransfer =request.form("pWireTransfer") pWireComments =request.form("pWireComments") if pPayPalMerchantEmail<>"" then mySQL1="UPDATE settings SET settingValue='" &pPayPalMerchantEmail& "' WHERE settingKey='pPayPalMerchantEmail' AND idStore=" &pIdStore call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") mySQL1="INSERT INTO payments (paymentDesc, redirectionUrl, quantityUntil, weightUntil, priceUntil, idCustomerType, idStore) VALUES ('PayPal','comersus_gatewayPayPal.asp',9999,9999,999999,NULL," &pIdStore& ")" call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") end if if p2CheckoutSID<>"" then mySQL1="UPDATE settings SET settingValue='" &p2CheckoutSID& "' WHERE settingKey='p2CheckoutSID' AND idStore=" &pIdStore call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") mySQL1="INSERT INTO payments (paymentDesc, redirectionUrl, quantityUntil, weightUntil, priceUntil, idCustomerType, idStore) VALUES ('Credit Cards with 2Checkout','comersus_gateway2CheckOut.asp',9999,9999,999999,NULL,"&pIdStore&")" call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") end if ' other settings if pUseOffLineCreditCards="-1" then ' check if the payment method is already inserted mySQL1="SELECT idPayment FROM payments WHERE redirectionURL='comersus_offLinePaymentForm.asp' AND idStore=" &pIdStore call getFromDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") if rstemp.eof then ' the payment method is not inserted mySQL1="INSERT INTO payments (paymentDesc, redirectionUrl, quantityUntil, weightUntil, priceUntil, idCustomerType, idStore) VALUES ('Credit Cards','comersus_offLinePaymentForm.asp',9999,9999,999999,NULL,"&pIdStore&")" call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") end if ' cards accepted pOffLineCardsAccepted="" if request.form("vi")="-1" then pOffLineCardsAccepted=pOffLineCardsAccepted&"VI, " if request.form("ma")="-1" then pOffLineCardsAccepted=pOffLineCardsAccepted&"MA, " if request.form("am")="-1" then pOffLineCardsAccepted=pOffLineCardsAccepted&"AM, " if request.form("din")="-1" then pOffLineCardsAccepted=pOffLineCardsAccepted&"DIN, " if request.form("dis")="-1" then pOffLineCardsAccepted=pOffLineCardsAccepted&"DIS, " if request.form("jc")="-1" then pOffLineCardsAccepted=pOffLineCardsAccepted&"JC, " if pOffLineCardsAccepted<>"" then mySQL1="UPDATE settings SET settingValue='" &pOffLineCardsAccepted& "' WHERE settingKey='pOffLineCardsAccepted' AND idStore=" &pIdStore call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") end if end if if pChecks<>"" and pChecksComments<>"" then mySQL1="INSERT INTO payments (paymentDesc, emailText, quantityUntil, weightUntil, priceUntil, idCustomerType, idStore) VALUES ('Checks','" &pChecksComments& "',9999,9999,999999,NULL,"&pIdStore&")" call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") end if if pWireTransfer<>"" and pWireComments<>"" then mySQL1="INSERT INTO payments (paymentDesc, emailText, quantityUntil, weightUntil, priceUntil, idCustomerType, idStore) VALUES ('Wire Transfer','" &pWireComments& "',9999,9999,999999,NULL, "&pIdStore&")" call updateDatabase(mySQL1, rstemp, "comersus_backoffice_install.asp") end if %>
Installation Wizard

Step 5 - Shipping

By pass shipping (digital goods and service stores)
Service type
Weight rule From Until
Destination Zip
Shipping amount
   
Service type
Weight rule From Until
Zip
Shipping amount
   
Service type (outside your country)
Weight rule From Until
Shipping amount
   


Additional information
(1) Here you can configure some basic off line shipping quotes. You can add more shipping quotes from BackOffice and you can also configure online shipping quotation methods. <%call closeDb()%>