Skip to main content

Empty cart in show_default.php

7 years 3 months ago #309656 by fernandoIncerco
-- HikaShop version -- : 4.1
-- Joomla version -- : 3.9

Hello,
I need to clean the cart every time the user enter into the product page, I did it in the past but I can't remembre how I did it :(((

I think that I added a comand like this :
$this->removeCart = true;

But it doesn't works... Can you help me?

Please Log in or Create an account to join the conversation.

7 years 3 months ago #309659 by nicolas
Hi,

You would have to do:
Code:
$class = hikashop_get('class.cart'); $class->resetCart();
The following user(s) said Thank You: fernandoIncerco

Please Log in or Create an account to join the conversation.

7 years 3 months ago #309681 by fernandoIncerco
Thanks Nicolas,
Finally I add this code and it works:
Code:
$cart = hikashop_get('class.cart'); $cart->resetCart(false);

You saved me again!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum