Viewing the Shopping Cart

Users will make purchases by selecting items, and adding them to their shopping cart. Once they have done some shopping, the users will often want to review their shopping cart, and potentially change the quantity of items in the cart.

Viewing the Shopping Cart

To display information about the shopping cart items, use the following variables anywhere in your web pages. An example would be:
You have selected <!-- CART: Items_Selected --> items.
The total cost of these items is: <!-- CART: Total_Product_Price -->
The total cost to ship these items is: <!-- CART: Total_Shipping_Price -->
The handling charge for this order is: <!-- CART: Handling_Charge -->
The total discount for this order is: <!-- CART: Total_Discount -->
The total tax for this order is: <!-- CART: Tax -->
The total charge to your card will be: <!-- CART: Total_Price -->
To display a list of the products selected, use the following tags to access this information. The section between the CART_LIST and /CART_LIST is repeated once per item, creating a list of the items.
<TABLE><
<TR><TH> Product </TH><TH> Quantity </TH><TH> Price </TH></TR>
<!-- CART_LIST -->
<TR>
<TH> <!-- SELECTION: Product_Description --> </TH>
<TH> <!-- SELECTION: Product_Quantity --> </TH>
<TH> <!-- SELECTION: Product_Price --> </TH>
</TR>
<TR>
<td colspan="2"> Custom:   <!-- SELECTION_Options: KeyValue sep=", " --> </td>
</TR>
<!-- /CART_LIST -->

Changing the Quantity of a Selection

To change the quantity of a product in the shopping cart, use a form with the Selection_ID form element, and an Action of Change Quantity
<!-- CART_LIST -->
<FORM action="/Store/ShowItems" method="POST">
Product:  <!-- SELECTION: Product_Description -->
Quantity: <INPUT name="Product_Quantity" value="<!-- SELECTION: Product_Quantity -->">
<INPUT type=HIDDEN name="Selection_ID" value="<!-- SELECTION: Selection_ID -->">
<INPUT type=SUBMIT value="Change Quantity">
</FORM>
<!-- /CART_LIST -->

Removing Product Selections

To remove a product from the shopping cart, add a form with the Selection_ID form element, and an Action of Remove Item

Current Shopping Cart:
<!-- CART_LIST -->
<FORM action="/Store/ShowItems" method="POST">
<INPUT type=HIDDEN name="Action" value="Remove Item">
Product:  <!-- SELECTION: Product_Description -->
<INPUT type=HIDDEN name="Selection_ID" value="<!-- SELECTION: Selection_ID -->">
<INPUT type=SUBMIT value="Remove Item">
</FORM>
<!-- /CART_LIST -->

To remove ALL items from the shopping cart, use a form with an Action of Remove All

<FORM action="/Store/ShowItems" method="POST">
<INPUT type=HIDDEN name="Action" value="Remove All">
<INPUT type=SUBMIT value="Remove All Items">
</FORM>
Main Menu Next Page