Help Index >> Cart 32 Help >> Empty Cart Method back to Item List Methodforward to Adding Multiple Itemsup a level to Cart 32 Helptable of contents

Cart32 Help
Empty Cart Method

This will empty all of the items out of a user's shopping cart. It can be invoked in HTML in one of two ways.

1. GET Method
Using this method the user can click on a link to empty items in his/her shopping cart. Here is the syntax.
<a href="/cgi-bin/cart32.exe/clientcode-emptycart>Empty Shopping Cart Text</a>

2. POST Method
Using this method the user can click on a button to get a list of items in his/her shopping cart. Here is the syntax.


<form method=post action="/cgi-bin/cart32.exe/clientcode-emptycart">
<input type=submit value="Empty Shopping Cart Text">
</form>

You can also pass the referer variable to the ItemList method so you can specify the “Click here to continue link". Here is the syntax for the referer variable.

POST Method:
<input type=hidden name="Referer" value="/mypage.html">
or
<input type=hidden name="Referer" value="http://www.mysite.com/mypage.html">

GET Method: (Make sure there are no spaces in the link text)
<a href="/cgi-bin/cart32.exe/clientcode-emptycart?Referer=/mypage.html">View Shopping Cart Text</a>