How to reset query in cart?

I want to reset my cart so the products wont stay there, because if i refresh or close and open the cart page the products are still there

just set $cart = null;

I get trying to keep topics isolated to one thing, but this also means the code that contributes isn’t brought along with the new topic.

You are storing the cart in the session. You can clear the session, but thats the point behind doing it, to store it. Is this for a clear cart action? Or to get rid of the cart completely?

Sponsor our Newsletter | Privacy Policy | Terms of Service