Cart "Delete" button doesn't remove items

  • Posts: 5
  • Thank you received: 0
8 years 2 months ago #249512

I have 1 item in my cart (quantity x2). When I proceed to the check-out page & use the "Delete" button next to the item in the cart, the page refreshes but the cart's contents does not change.
The same item is still in the cart with the same quantity.

I can not get the item out of the cart.
Thanks for any assistance.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #249540

Hi,

Can you please provide more details about your issue and a link so we can try to reproduce your problem ?

Please check, before that, that you do not have any cache enable in your website ; if your checkout page is stored in the Joomla cache ; you won't have any dynamic content in your website but just a fixed cache page provided by Joomla.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 5
  • Thank you received: 0
8 years 2 months ago #249557

Hi Jerome.
Thanks for your response.

Not much details to provide. I add a couple items to the Cart, then on the checkout page I try to remove them but they remain in the cart.. I've reproduced the issue using a different browser that I've never accessed the site with.

Here is a link to my store: http://www.tek9promotions.com/store/categories
I also checked Global Config > System > Cache Settings: & Cache is disabled

Regards.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #249605

Hi,

I tried on your website with Chrome. I had the problem at first. Then, I opened the developer tools and under "network" I checked the "disable cache" checkbox and then I didn't had the problem.
So it seems that your problem is a caching problem.
I would recommend to check with your hosting company whether you would have some kind of hosting caching, or CDN system. Or maybe a system plugin activating the browser cache ?

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

  • Posts: 5
  • Thank you received: 0
8 years 2 months ago #249637

Hi Nicolas.
I contacted my host (Godaddy) and they stated that I'm on a cPanel host and that they do not run any sever-side caching whatsoever.

I'm running a pretty new installation of Joomla with a custom template & no cache plugins.
I'm not sure where to go from here.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #249663

Hi,

Then what if you use the default template of Joomla ? Do you still have the problem ?
If no, then it's likely originating from the template. Maybe there is some caching mechanism in the template or something to activate the browser caching ?

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

  • Posts: 28
  • Thank you received: 1
8 years 2 months ago #249827

nicolas wrote: Hi,

Then what if you use the default template of Joomla ? Do you still have the problem ?
If no, then it's likely originating from the template. Maybe there is some caching mechanism in the template or something to activate the browser caching ?


I have this problem as well.
Caching in Joomla is turned on - progressive caching

I could not find to turn off caching for hikashop- cart module or whatsoever
If I turn off global caching I expect system to work fine, but I want to use caching in Joomla for performance reasons.
I am using Template recommended by Hikashop (RN Explorer)
Any help is appriciated

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

  • Posts: 28
  • Thank you received: 1
8 years 2 months ago #249848

I have tested this in Chrome.
Turned off caching in dev tools and indeed the problem does not happen.
Seems like when caching is turned in Joomla, the cart module is cached.
Maybe the template does this but again this is RN Explorer template recommended by Hikashop
Is there a way to turn off the caching for cart module specifically?

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

  • Posts: 5
  • Thank you received: 0
8 years 2 months ago #249865

Hi. When I switch to the default Joomla template, there is no issue.
How will i tell what is causing this?

And to repeat magnahifi's question "Is there a way to turn off the caching for cart module specifically?"

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #249856

Hi,

HikaShop has specifically some code to clear the caching of the website whent he cart is changed, and the cart module doesn't have a caching option so that it doesn't get cached.

Try adding the line:
hikashop_nocache();
after the line:
parent::__construct($config,$skip);
in the file components/com_hikashop/controllers/checkout.php
That might be enough to help.

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

  • Posts: 28
  • Thank you received: 1
8 years 2 months ago #249938

nicolas wrote: Hi,

HikaShop has specifically some code to clear the caching of the website whent he cart is changed, and the cart module doesn't have a caching option so that it doesn't get cached.

Try adding the line:
hikashop_nocache();
after the line:
parent::__construct($config,$skip);
in the file components/com_hikashop/controllers/checkout.php
That might be enough to help.


Wow, this seems to do the job! :woohoo:
Problem is solved.
You do need to delete your browser cache first (of course)
Thanks!

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

  • Posts: 5
  • Thank you received: 0
8 years 2 months ago #249946

No such luck on my end.
I added the line of code, replaced the file & cleared the cache on both Chrome & FireFox. I even tried Microsoft Edge for the first time.
Same issue.

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 2 months ago #249951

Hi,

In your case, the problem comes from the template's caching system which overrides the no cache directives given by the hikashop_nocache() function.
You'll have to check the settings of your template and see if you can disable that. Otherwise, I recommend to contact your template provider so that they can tell you what to do.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum