% Response.Buffer = True %> <% Response.Expires = -1 %> <% Dim strUrl If strUseSecure = "Yes" Then strUrl = strSecureUrl Else strUrl = strCoUrl End If Dim strCartId strCartId = Request("CartId") Dim strEmail strEmail = trim(Request("Email")) Dim strPWD strPWD = Request("PWD") DIM sqlCartCheck, objRSCartCheck sqlCartCheck = "SELECT * FROM Orders Where OrderNumber='" & strCartId & "'" Set objRSCartCheck = Server.CreateObject("ADODB.Recordset") objRSCartCheck.Open sqlCartCheck, objConn If objRSCartCheck.EOF Then Else Dim strUpdateCartId strUpdateCartId = strCartId + 1 Response.Cookies("CartId")("CartId") = strUpdateCartID Response.Cookies("CartdId").Expires = Now() + 9999 objConn.Execute "Update Cart Set CartId='"& strUpdateCartID &"' Where CartId='"& strCartId &"'" Response.Redirect "paypal_verify.asp?CartId=" & strUpdateCartId & "&Email=" & strEmail & "&PWD=" & strPWD End If DIM mySQL, objRS mySQL = "SELECT * FROM Customers Where Email='"& strEmail &"' And PWD='" & strPWD & "'" Set objRS = Server.CreateObject("ADODB.Recordset") objRS.Open mySQL, objConn IF objRS.EOF THEN Response.Redirect "send_pwd.asp?CartId=" & strCartId Response.End Else Session("CustEmail") = Request("Email") Session("CustPWD") = Request("PWD") Session("CustFName") = objRS("FName") Session("CartId") = strCartId Response.Cookies("CustLogin")("CustEmail") = strEmail Response.Cookies("CustLogin")("CustPWD") = strPWD END IF DIM strCustNumber strCustNumber = objRS("CustNumber") Dim strFName strFName = objRS("FName") Dim strMName strMName = objRS("MName") Dim strLName strLName = objRS("LName") DIM strCoName strCoName = objRS("CoName") Dim strAddress strAddress = objRS("Address") Dim strAddress2 strAddress2 = objRS("Address2") Dim strCity strCity = objRS("City") Dim strState strState = objRS("State") Dim strZipCode strZipCode = objRS("ZipCode") Dim strCountry strCountry = objRS("Country") Dim strCountryCode strCountryCode = objRS("CountryCode") Dim strAreaCode strAreaCode = objRS("AreaCode") Dim strPhoneEx strPhoneEx = objRS("PhoneEx") Dim strPhoneNum strPhoneNum = objRS("PhoneNum") Dim strAreaCode2 strAreaCode2 = objRS("AreaCode2") Dim strPhoneEx2 strPhoneEx2 = objRS("PhoneEx2") Dim strPhoneNum2 strPhoneNum2 = objRS("PhoneNum2") Dim strInternationalPhone strInternationalPhone = objRS("InternationalPhone") 'Shipping Info Dim strFirstLetter,strLetterCase Dim strShipAlternate strShipAlternate = Request.Form("ShipAlternate") Dim strShipFName strShipFName = trim(Request.Form("ShipFName")) strShipFName = Replace(strShipFName,Chr(039),"") strShipFName = Replace(strShipFName,Chr(034),"") strFirstLetter = Left(strShipFName,1) strLetterCase = Ucase (strFirstLetter) strShipFName = Replace(strShipFName,strFirstLetter,strLetterCase,1,1) Dim strShipLName strShipLName = trim(Request.Form("ShipLName")) strShipLName = Replace(strShipLName,Chr(039),"") strShipLName = Replace(strShipLName,Chr(034),"") strFirstLetter = Left(strShipLName,1) strLetterCase = Ucase (strFirstLetter) strShipLName = Replace(strShipLName,strFirstLetter,strLetterCase,1,1) Dim strShipCoName strShipCoName = trim(Request.Form("ShipCoName")) strShipCoName = Replace(strShipCoName,Chr(039),"") strShipCoName = Replace(strShipCoName,Chr(034),"") strFirstLetter = Left(strShipCoName,1) strLetterCase = Ucase (strFirstLetter) strShipCoName = Replace(strShipCoName,strFirstLetter,strLetterCase,1,1) Dim strShipAddress strShipAddress = trim(Request.Form("ShipAddress")) strShipAddress = Replace(strShipAddress,Chr(039),"") strShipAddress = Replace(strShipAddress,Chr(034),"") strFirstLetter = Left(strShipAddress,1) strLetterCase = Ucase (strFirstLetter) strShipAddress = Replace(strShipAddress,strFirstLetter,strLetterCase,1,1) Dim strShipAddress2 strShipAddress2 = trim(Request.Form("ShipAddress2")) strShipAddress2 = Replace(strShipAddress2,Chr(039),"") strShipAddress2 = Replace(strShipAddress2,Chr(034),"") strFirstLetter = Left(strShipAddress2,1) strLetterCase = Ucase (strFirstLetter) strShipAddress2 = Replace(strShipAddress2,strFirstLetter,strLetterCase,1,1) Dim strShipCity strShipCity = trim(Request.Form("ShipCity")) strShipCity = Replace(strShipCity,Chr(039),"") strShipCity = Replace(strShipCity,Chr(034),"") strFirstLetter = Left(strShipCity,1) strLetterCase = Ucase (strFirstLetter) strShipCity = Replace(strShipCity,strFirstLetter,strLetterCase,1,1) Dim strShipState strShipState = Request.Form("ShipState") Dim strShipZipCode strShipZipCode = trim(Request.Form("ShipZipCode")) If strShipAlternate = "Yes" Then Dim strArrayCountry strArrayCountry = split(Request.Form("ShipCountry"), ":", -1) strShipCountryCode = strArrayCountry(0) strShipCountry = strArrayCountry(1) End If If Request.Form("B1") <> "" And Request.Form("ShipAlternate") = "No" Then Response.Redirect "error.asp?Error=You must choose Yes to alternate address if you use the Alternate Address Button." Response.End End If If strShipAlternate = "Yes" Then If Request.Form("ShipFName") = "" Then Response.Redirect "error.asp?Error=You must enter a First Name in the shipping area if you choose Yes to alternate address." Response.End ElseIf Request.Form("ShipLName") = "" Then Response.Redirect "error.asp?Error=You must enter a Last Name in the shipping area if you choose Yes to alternate address." Response.End ElseIf Request.Form("ShipAddress") = "" Then Response.Redirect "error.asp?Error=You must enter an Address in the shipping area if you choose Yes to alternate address." Response.End ElseIf Request.Form("ShipCity") = "" Then Response.Redirect "error.asp?Error=You must enter a City, Town or Province in the shipping area if you choose Yes to alternate address." Response.End ElseIf Request.Form("ShipState") = "Select State" Then Response.Redirect "error.asp?Error=You must enter a State in the shipping area if you choose Yes to alternate address." Response.End ElseIf Request.Form("ShipZipCode") = "" Then Response.Redirect "error.asp?Error=You must enter a Postal Code in the shipping area if you choose Yes to alternate address." Response.End End If End If DIM mySQL2, objRS2 Set objRS2 = Server.CreateObject("ADODB.Recordset") mySQL2 = "SELECT * FROM Cart Where CartId ='"& strCartId & "' Order By ListNum" objRS2.Open mySQL2, objConn %>
<%=objRS("FName")%>,
|
| Account Information |
|
Account Number: <%= strCustNumber %> <%= strFName %> <%= strMName %> <%= strLName %> <%= strCoName %> <%= strAddress %> <%= strAddress2 %> <% If (strCountryCode = "US") Then %><%= strCity %>, <%= strState %> <%= strZipCode %> <%= strCountry %> <% Else %><%= strCity %> <%= strZipCode %> <%= strCountry %> (<%= strCountryCode %>) <% End If %><%= strEmail %> <% If (strPhoneEx <> "") Then %><%= strAreaCode %>-<%= strPhoneEx %>-<%= strPhoneNum %> <% End If %> <% If (strPhoneEx2 <> "") Then %><%= strAreaCode2 %>-<%= strPhoneEx2 %>-<%= strPhoneNum2 %> <% End If %> <% If (strInternationalPhone <> "") Then %><%= strInternationalPhone %> <% End If %> |
| Update Account Info Here |
|
Item # |
Quantity |
Options |
Description |
Each |
Amount |
| <%=objRS2("ItemNum")%> | <%=objRS2("Quantity")%> | <%= strOpt1 %> <%= strOpt2 %> <%= strOpt3 %> | <%=objRS2("Description")%> | <%= strCurrencySymbol %><%= FormatNumber(objRS2("Price"),2)%> | <%= strCurrencySymbol %><%= FormatNumber(objRS2("Price") * objRS2("Quantity"),2) %> |
|
Subtotal: VAT: <%If strShippingMethod = "UPS" Then: Response.Write strShippingType & " ": End If%>Shipping: Total: |
<%= strCurrencySymbol %><%= FormatNumber(strCartTotal,2)%> <%= strCurrencyCode %> <%= strCurrencySymbol %><%= FormatNumber(strTaxTotal,2)%> <%= strCurrencyCode %> <%= strCurrencySymbol %><%= FormatNumber(strShipping,2)%> <%= strCurrencyCode %> <%= strCurrencySymbol %><%= FormatNumber(strOrderTotal,2)%> <%= strCurrencyCode %> |