Is there any way to empty or clear the cart when a user adds a new product?
I'm aware of the clear_cart
tag but this doesn't work when using the browser's back button, allowing users to add multiple products (or multiple types of products) to the cart.
I think this is happening because the page does not fully reload when using the back button so the clear_cart
tag is not fired.
Expresso Store has a empty_cart
parameter for it's product tag that empties the cart when a product is added as opposed to when the page loads.
I was wondering if there was anything similar for Cartthrob? Or a workaround that achieves the same thing?
I've thought about forcing the page to reload when using the back button but I'd prefer to avoid this if possible.