") ' Page position table start ...
' Display the page header. This page is used in three different ways ...
Select Case True
Case (MerchantRequest) AND (GetURLValue("OrderID") <> "")
Call DisplayPageHeader("", IIF(PackingSlip, "Packing Slip", "Receipt"), "tac")
Case MerchantRequest
Call DisplayPageHeader("", IIF(PackingSlip, "Packing Slip", "Receipt"), "ac")
Case Else
Call DisplayPageHeader("50", "", "")
End Select
' If there was an error, display it
If ErrorMsg <> "" Then
wl("")
wl(ErrorMsg)
If (Session("ReturnTo") = "") Then
Call DisplayLink(cstHomeURL, ResourcePath & "custom/images/Home.gif", "Home")
Else
Response.Write("[ Back ]" & " " & vbCrLf)
End If
wl("")
Response.End
End If
' No errors, clean up database before continuing
Call dbCleanUp()
%>
<% If (Not PackingSlip) Then %>
 |
| Payment/Shipping: |
 |
 |
| Payment Method: |
|
<%=txtPaymentMethod%> |
<% If (Trim(rstOrders("CreditCardNumber")) <> "") Then %>
| Credit Card #: |
|
<%=GreekCCNum(FormatCC(Crypt(rstOrders("CreditCardNumber"), cstEncryptionKey, "dec")), "")%> |
| Card Holder Name: |
|
<%=rstOrders("CardholdersName")%> |
| Expiration Date: |
|
<%=Crypt(rstOrders("CreditCardExpDate"), cstEncryptionKey, "dec")%> |
<% If (cstCSCEnabled) Then %>
| Card Security Code: |
|
<%=Crypt(rstOrders("CVV2"), cstEncryptionKey, "dec")%> |
<% End If %>
<% End If %>
<% If (cstPONumberEnabled) Then %>
| Purchase Order #: |
|
<%=rstOrders("PurchaseOrderNumber")%> |
<% End If %>
| Shipping Method: |
|
<%=txtShippingMethod%> |
| <%=cstShipNote%>: |
|
<%=Replace(rstOrders("Notes") & "", "~", " ")%> |
<%
If ((MerchantRequest) AND (Trim(cstSurveyQuestions) <> "")) Then
wl("")
wl(" | ")
wl(" ")
arySurvey = GetParms(cstSurveyQuestions)
For iSurvey = 0 To UBound(arySurvey) Step 1
wl("")
wl("| | ")
wl(" | ")
wl("" & arySurvey(iSurvey) & " " & rstOrders("Survey" & (iSurvey + 1)) & "
| ")
wl(" ")
Next
End If
%>
 |
|
<% End If ' If (Not PackingSlip) %>
 |
| Code |
Description |
Qty |
<% If (Not PackingSlip) Then %>
Price |
Total |
<% End If %>
 |
 |
<%
iSubtotal = 0
Do While Not rstOrderDetails.EOF
%>
| <%=rstOrderDetails("ProductCode")%> |
<% response.write (rstOrderDetails("ProductName"))
if rstOrderDetails("NSN") <> "" and rstOrderDetails("NSN") <> " " then %>
NSN: <% response.write(rstOrderDetails("NSN"))& ""
end if
if rstOrderDetails("SKU") <> "" and rstOrderDetails("SKU") <> " " then %>
SKU: <% response.write(rstOrderDetails("SKU"))& ""
end if
if rstOrderDetails("Packaging") <> "" and rstOrderDetails("Packaging") <> " " then %>
Packaging: <% response.write(rstOrderDetails("Packaging"))& ""
end if
%>
<%=GetShortDescription(rstOrderDetails("ProductDescription"), "") & "" & FormatOptions(rstOrderDetails("Options"))%>
<%
'************coded inserted august 27,2005**********start
dim tmplar
tmplar=""
'Session("tequilaOrderID")=OrderID
tmplar=Trim(rstOrderDetails("StampParams"))
if tmplar<>"" then%>
View Your Stamp<%
end if
'************coded inserted august 27,2005**********end
%>
|
<%=rstOrderDetails("Quantity")%> |
<% If (Not PackingSlip) Then %>
<%=OurFormatCurrency(rstOrderDetails("UnitPrice"))%> |
<%=OurFormatCurrency(rstOrderDetails("TotalPrice"))%> |
<% End If %>
<%
iSubTotal = iSubtotal + rstOrderDetails("TotalPrice")
rstOrderDetails.MoveNext
Loop
iSubTotal = IIF(iSubTotal < 0, 0, iSubTotal)
'************coded inserted august 26,2005**********start
%>
<%
Dim larrycart,arr,arr1,arr2,ilar,jlar,arr3
Dim larSQL,larrstOrders
larSQL = "SELECT OrderDetailID,ProductCode,StampParams FROM OrderDetails WHERE OrderId = "& OrderId
set larrstOrders = Server.CreateObject("ADODB.Recordset")
larrstOrders.Open larSQL, Conn, adOpenKeyset, adLockOptimistic
Do While not larrstOrders.EOF
'For ilar = 1 to iCount
larrycart=""
larrycart=Trim(larrstOrders("StampParams"))
if larrycart<>"" then%>
<%
'Next
larrstOrders.MoveNext
loop
'************coded inserted august 26,2005**********end
%>
<% If (Not PackingSlip) Then %>
| Subtotal: |
<%=OurFormatCurrency(iSubTotal)%> |
<% End If %>
<%
If ((Not cstHideSalesTax) And (Not PackingSlip)) Then
iTax1 = IIF(isNullOrZero(rstOrders("SalesTax1")), 0, rstOrders("SalesTax1"))
iTax2 = IIF(isNullOrZero(rstOrders("SalesTax2")), 0, rstOrders("SalesTax2"))
If (isInstalled("Feature:Advanced Tax")) Then
' Advanced tax processing ...
Set pAdvTax = FeatureInstalled("Feature:Advanced Tax")
If (pAdvTax.Tax1InUse) Then
wl("")
wl("| " & _
" " & _
GetParmToken(cstSalesTaxName, 1, "Sales Tax 1") & ": | ")
wl(" " & _
"" & OurFormatCurrency(iTax1) & " | ")
wl(" ")
End If
If (pAdvTax.Tax2InUse) Then
wl("")
wl("| " & _
" " & _
GetParmToken(cstSalesTaxName, 2, "Sales Tax 2") & ": | ")
wl(" " & _
"" & OurFormatCurrency(iTax2) & " | ")
wl(" ")
End If
Else
wl("")
wl("| " & _
" " & _
"Sales Tax: | ")
wl(" " & _
"" & OurFormatCurrency(iTax1) & " | ")
wl(" ")
End If
Else
iTax1 = 0
iTax2 = 0
End If
%>
<% If (Not PackingSlip) Then %>
<% iShipping = RoundCurrency(rstOrders("FreightCharge")) %>
| Shipping
and Handling: |
<%=IIF(rstOrders("FreeShipping") = "Yes", "Free!", OurFormatCurrency(iShipping))%>
|
<% End If %>
<% If (Not PackingSlip) Then%>
<% iGrandTotal = iSubTotal + iShipping + iTax1 + iTax2%>
| Grand
Total: |
<%=OurFormatCurrency(iGrandTotal)%> |
<% Else %>
| |
<% End If %>
|
<%
' Show on merchant and customer ...
If ((Not strIsEmpty(cst50FooterMsg)) And (Not PackingSlip)) Then
wl("")
End If
%>
<%
' Decide how to end this shopping cart session ...
Select Case True
' Suppress on merchant requests, allows for cleaner printing of receipts/packing lists
Case MerchantRequest
' Pop-up from mTest ...
Case Session("CartInPopUp") = "yes"
wl("[ Close ]")
' No ReturnTo supplied ...
Case Session("ReturnTo") = ""
Call DisplayLink(NonSecureURL("50Finish.asp?Home=1"), ResourcePath & "custom/images/Home.gif", "Home")
Case Else
' ReturnTo is supplied ...
Call DisplayLink(Session("ReturnTo"), "", "Return")
End Select
%>
|
<%
wl(" |