|
<%=langGenVerifyOrder%>
|
<%=langGenStep3%>
|
|

| |
<%=langGenBillAddr%> |
<%=langGenShipAddr%> |
| <%=langGenFullName%> |
<%=Name & " " & LastName%> |
<%=emptyString(shippingName,Name) & " " & emptyString(shippingLastName,LastName)%> |
| <%=langGenAddress%> |
<%=address%> |
<%=emptyString(shippingAddress,address)%> |
| <%=langGenCity%> |
<%=city%> |
<%=emptyString(shippingCity,city)%> |
| <%=langGenLocation%> |
<%
'If there is a state or alternate state, display it
if len(trim(locState)) > 0 or len(trim(locState2)) > 0 then
Response.Write getStateDesc(locCountry,locState,locState2) & ", "
end if
'Display country
Response.Write getCountryDesc(locCountry)
%>
|
<%
'If shipping state/country is blank, use billing state/country
if len(shippingLocCountry) = 0 and len(shippingLocState) = 0 and len(shippingLocState2) = 0 then
'If there is a state or alternate state, display it
if len(trim(locState)) > 0 or len(trim(locState2)) > 0 then
Response.Write getStateDesc(locCountry,locState,locState2) & ", "
end if
'Display country
Response.Write getCountryDesc(locCountry)
else
'If there is a state or alternate state, display it
if len(trim(shippingLocState)) > 0 or len(trim(shippingLocState2)) > 0 then
Response.Write getStateDesc(shippingLocCountry,shippingLocState,shippingLocState2) & ", "
end if
'display country
Response.Write getCountryDesc(shippingLocCountry)
end if
%>
|
| <%=langGenZip%> |
<%=zip%> |
<%=emptyString(shippingZip,zip)%> |
| <%=langGenPhone%> |
<%=Phone%> |
<%=emptyString(shippingPhone,Phone)%> |
| <%=langGenCompany%> |
<%=CustomerCompany%> |
| <%=langGenShipping%> |
<%=shipmentMethod%> |
| <%=langGenPayment%> |
<%=paymentMsg(paymentType, total, cardNumber)%> |
| <%=langGenComments%> |
<%=emptyString(generalComments,langGenNotApplicable)%> |
| <%=langGenQty%> |
<%=langGenItemDesc%> |
<%=langGenSubTotal%> |
<%
'Get all rows for this cart
mySQL = "SELECT idCartRow,idProduct,quantity," _
& " unitPrice,description,sku," _
& " discAmt " _
& "FROM cartRows " _
& "WHERE cartRows.idOrder = " & validSQL(idOrder,"I") & " " _
& "ORDER BY idCartRow "
set rsTemp = openRSexecute(mySQL)
do while not rstemp.eof
'Assign record values to local values
IDCartRow = rstemp("idCartRow")
IDProduct = rstemp("idProduct")
Quantity = rstemp("quantity")
unitPrice = rstemp("unitPrice")
Description = rstemp("description")
SKU = rstemp("sku")
discAmt = rstemp("discAmt")
if isNull(discAmt) then
discAmt = 0.00
end if
%>
| <%=Quantity%> |
<%
if SKU = "" then
'Use idProduct
response.write IDProduct
else
'Use sku
response.write SKU
end if
'Write cartRow line (main item)
response.write " " & Description & " - " & pCurrencySign & moneyS(unitPrice) & " "
'Write Discount (if any)
if discAmt > 0 then
Response.Write "* " & langGenDiscount & " - " & pCurrencySign & moneyS(discAmt) & " "
end if
'Get all options for this row
optionGroupsTotal = 0
mySQL = "SELECT optionPrice, optionDescrip " _
& "FROM cartRowsOptions " _
& "WHERE idCartRow = " & validSQL(IDCartRow,"I")
set rsTemp2 = openRSexecute(mySQL)
do while not rstemp2.eof
'Assign record values to local values
optionDescrip = rstemp2("optionDescrip")
optionPrice = rstemp2("optionPrice")
'Write cartRowOptions line(s) (options)
Response.Write "* " & optionDescrip
if optionPrice <> 0 then
Response.Write " - " & pCurrencySign & moneyS(optionPrice)
end if
Response.Write " "
'Calculate options Sub Total
optionGroupsTotal = optionGroupsTotal + optionPrice
rstemp2.movenext
loop
call closeRS(rsTemp2)
%>
|
<%=pCurrencySign & moneyS(Cdbl(Quantity * (optionGroupsTotal + unitPrice - discAmt)))%>
|
<%
rstemp.movenext
loop
call closeRS(rsTemp)
%>
|
<%=langGenSubTotal%>:
|
<%=pCurrencySign & moneyS(subTotal)%>
|
<%
'If there's a discount, show discount and sub-total row
if discTotal > 0 then
%>
|
<%=discCode%> (<%=formatNumber(discPerc,2)%>%) -
<%=langGenDiscCode%>:
|
<%=pCurrencySign & moneyS(discTotal)%> (-)
|
|
<%=langGenSubTotal%>:
|
<%=pCurrencySign & moneyS(subTotal - discTotal)%>
|
<%
end if
%>
|
<%=langGenShipping%>:
|
<%=pCurrencySign & moneyS(shipmentTotal)%>
|
<%
'If there's a handling fee, show handling fee row
if handlingFeeTotal > 0 then
%>
|
<%=langGenHandlingFee%>:
|
<%=pCurrencySign & moneyS(handlingFeeTotal)%>
|
<%
end if
'If there are other fees, show other fee row
if otherFeeTotal > 0 then
%>
|
<%=langGenOtherFees%>:
|
<%=pCurrencySign & moneyS(otherFeeTotal)%>
|
<%
end if
%>
|
<%=langGenTax%>:
|
<%=pCurrencySign & moneyS(taxTotal)%>
|
|
<%=langGenTotal%>:
|
<%=pCurrencySign & moneyS(Total)%>
|
|