- Posts: 26
- Thank you received: 1
Empty cart in show_default.php
- fernandoIncerco
-
Topic Author
- Offline
Less
More
7 years 3 months ago #309656
by fernandoIncerco
Empty cart in show_default.php was created 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?
-- 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
Replied by nicolas on topic Empty cart in show_default.php
Hi,
You would have to do:
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.
- fernandoIncerco
-
Topic Author
- Offline
Less
More
- Posts: 26
- Thank you received: 1
7 years 3 months ago #309681
by fernandoIncerco
Replied by fernandoIncerco on topic Empty cart in show_default.php
Thanks Nicolas,
Finally I add this code and it works:
You saved me again!!
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.052 seconds