I am writing a custom module that deals with the shopping cart. I need to remove the "Update cart" button and add an "Empty cart" button. I can easily hide the "Update cart" button via CSS. My question is:
How can I add an "Empty cart" button and write code to delete all the items from the cart?
- or -
How can I override the functionality of the "Update cart" button to delete all the items from the cart?
I will appreciate being pointed in the right direction!
Thanks.



