iisCART™ Documentation

 

iisCART SHOWTOTAL.ASP

ShowTotal.asp Source
<% Set Cart = Session("Cart") %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Developer Studio">
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>Document Title</TITLE>
</HEAD>
<body link="#000000" bgcolor="#57C4D2" vlink="#000000" alink="#FFFFFF">

<h1>Your Total Order:</h1>

<% Cart.DisplayCartReadOnly "description" %>
<P>

<TD>State Tax: </TD><TD><% = formatcurrency(Cart.Tax) %></TD><TR>
<TD>Country Tax: </TD><TD><% = formatcurrency(Cart.CountryTax) %></TD><TR>
<TD>Shipping by: </TD><TD><% = Cart.Info.ShippingType %></TD><TR>
<TD>S&H:</TD><TD><% = formatcurrency(Cart.Shipping) %></TD><TR>
<TD>Total:</TD><TD><% = formatcurrency(Cart.Total) %></TD><TR>

<%
    Cart.SaveOrder
%>
<P>

Click this button to pay for your order
<FORM METHOD=POST ACTION="https://www.yourdomain.com/Billing.asp">
<INPUT TYPE=HIDDEN NAME=ORDERID VALUE=<% = Cart.OrderID %>>
<INPUT TYPE=SUBMIT NAME=PAY VALUE="Pay for the Order">
</FORM>

</BODY>
</HTML>

 
Methods / Properties / Objects used:
Cart.DisplayCartReadOnly
Cart.SaveOrder
Cart.Info
Cart.Shipping
Cart.Total
Cart.Tax
Cart.CountryTax
 
Description / Comments:
ShowTotal.asp first displays a read-only version of the cart by calling the DisplayCartReadOnly property.   In addition, calculated shipping, tax and a grand total are displayed.  A link is provided to billing.asp.  This can be specified through an SSL virtual mapping if you do not have your own certificate.  The orderID is passed to billing.asp so that the order information can be retreived from the database should this stage occur through a virtual mapping.

 

© Corporate Web Solutions 1998, 1999.