Page 1 of 1

clearing the cart in calguys 'cart'

Posted: Wed Jan 06, 2010 6:23 pm
by scotch33
Hi,

CMSMS 1.6.6, Cart 1.4.2

I am using the cart as a way to generate a quote which I am then using formbuilder to send to the individual who has added items to the quote.  This is all working great, but I have one issue - if the person then goes back to create a second quote in the same session, the cart has not cleared.

Thus I need a UDT that will give me a button to 'clear the cart' which I can place on the submission template page in the form. 

Has anyone tried anything like this, or have any ideas about how I can clear the cart?

Thanks!

john

Re: clearing the cart in calguys 'cart'

Posted: Mon Apr 26, 2010 7:23 am
by cisco
Same question.

Cart is great module, but its weird that there is no action="clearcart" or some other option to manage cart items.

Re: clearing the cart in calguys 'cart'

Posted: Mon Apr 26, 2010 9:01 am
by uniqu3
Actually don't you have ('empty_cart') in your View Cart Template?

Re: clearing the cart in calguys 'cart'

Posted: Mon Apr 26, 2010 10:32 am
by cisco
You're right. My apologies.

Seems that in 1.6 version of Cart module we now have "Remove All Items".

Awesomeness, thanks Callguy for adding the option ;)