|
Clearcart is used to clear all items from a shopping cart. It is used on the subtotal page to give your customers the option of removing everything that has been added to the shopping cart all at once, instead of item by item. It can be set up as either a text hyperlink, a button or an image:
ASP:
=Shopping.ClearCart()
or Post to ClearCart.ASP
Hyperlink:
<a href="/cgi-bin/clearcart.exe?nextpage=/subtotal.htm">Clear Cart</a>
Image:
<a href="/cgi-bin/clearcart.exe?nextpage=/subtotal.htm">
<img border="0" src="/images/clearcart.gif" width="80" height="30" alt="Clear Cart">
</a>
Note - You would substitute your own path and filename in the example above.
Button:
<FORM METHOD="POST" ACTION="/cgi-bin/clearcart.exe">
<input type="hidden" name="nextpage" value="/subtotal.htm">
<input type="submit" value="Clear Cart">
</FORM>
|
|
|
|