Knowledgebase: Form Code & Javascript
Empty Shopping Cart
Posted by Kyle on 10 December 2008 10:37 AM
Cart has a special method for allowing your customer to remove all items from their cart at once. There are two methods for doing this: an HTML form (POST) or a link (GET). Below are examples of both. In our example we will use a cart located at http://www.Cart32.com/cgi-bin/cart32.exe and we will use the client TEST.

Empty Cart (Link/GET)
<a href="http://www.Cart32.com/cgi-bin/cart32.exe/TEST-Empty">Empty Your Cart</a>


Empty Cart (Form/POST)
<form method="post" action="http://www.Cart32.com/cgi-bin/cart32.exe/TEST-Empty">
<input type="submit" value="Empty Cart" />
</form>
(104 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: