[ic] Empty cart button

Curt Hauge interchange-users@lists.akopia.com
Fri Jul 20 15:00:00 2001


Quoting Tim Mirecki
>
> I would like the user to be able to empty their cart.
>
> I checked on the developer site, and waded through a bunch of the archives
> but couldn’t seem to find a simple way to just empty the cart.

This code is thanks to Ron Phipps and is from my personal archives:

Here's the code I use to clear the cart, I have this on my basket page.

[button
       text="Clear Basket"
            src="other/clear_basket.gif"
       hidetext=1
       form=basket
      ]
      mv_todo=cancel
      mv_nextpage=index
[/button]

This should work for you.  The mv_todo=cancel should clear the cart and the
mv_nextpage=index will bounce you to index.html.

Good Luck!

Curt Hauge