Refreh does not work on mini cart

  • Posts: 719
  • Thank you received: 3
3 years 3 weeks ago #330163

Hi, I noticed that on my minicart does not work the refresh/update button.
The refresh/update works fine on the check-out cart.
Could you help me, please?
Thanks a lot
Best regards


my site with Hikashop
www.lacasettabio.it
Attachments:
Last edit: 3 years 3 weeks ago by lacasetta.

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
3 years 3 weeks ago #330170

Hi,

The refresh actually works there if you enter the new value in the input field and click on the refresh button.
From what I can see, it only doesn't work when you use the - and + buttons to change the quantity before pressing it.

And if I check the console of my browser when I do so, I can see some javascript error when using the refresh button.
And I can also see that the javascript of this button has been customized (which is why you get that error) :
i.imgur.com/UlUfyi9.png
Apparently, that cart module is customized by your template or something else.
I suppose that if you rename the file templates/YOUR_TEMPLATE/html/com_hikashop/product/cart.php via FTP, it will then work fine, which will confirm that the issue comes from some customization in that view file override.

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

  • Posts: 719
  • Thank you received: 3
3 years 3 weeks ago #330225

Hi,
thanks for your help.
In templates/MY_TEMPLATE/html I have any com_hikashop folder.
Also I checked into hikashop > display > views and set my frontend template
and there is any customization.
Could you help me to find where could be the customization you said?
Thans a lot
Best regards


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
3 years 3 weeks ago #330257

Hi,

Sorry, I tried to look into the issue today but I'm not able to access your frontend. I'm getting this error:
i.imgur.com/yLDd9l6.png
It seems to come from your template trying to load bootstrap.

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

  • Posts: 719
  • Thank you received: 3
3 years 3 weeks ago #330258

Hi,
I see this issue and I thought that you were working.
I saw that you started to work this morning and then, in the late morning, I saw the issue.
I haven't touched anything.
But it doesn't matter, at this point I'll restore the site from yesterday's backup.
I'm going to give you notice as soon as done
Best regards


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 719
  • Thank you received: 3
3 years 3 weeks ago #330263

Hi,
OK, the site is working again


my site with Hikashop
www.lacasettabio.it

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
3 years 3 weeks ago #330334

Hi,

Thanks.

Replace the code:

<a class="hikashop_no_print" href="#" onclick="<?php echo $script; ?>" title="<?php echo JText::_('HIKA_REFRESH'); ?>">
by:
	<a class="hikashop_no_print" href="#" onclick="var input = document.getElementbyId('<?php echo $id; ?>'); if(input.form.onsubmit && !input.form.onsubmit()) return; input.form.submit();" title="<?php echo JText::_('HIKA_REFRESH'); ?>">
in the file components/com_hikashop/views/layouts/tmpl/quantity.php and it should fix the problem.

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

  • Posts: 719
  • Thank you received: 3
3 years 3 weeks ago #330410

Hi,
I'm sorry but there is the same issue always.
In error console browser now I have:
Uncaught TypeError: document.getElementbyId is not a function
onclick


my site with Hikashop
www.lacasettabio.it
Last edit: 3 years 3 weeks ago by lacasetta.

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
3 years 2 weeks ago #330453

Hi

Sorry, there was a typo in my previous message. The text getElementbyId should be getElementById
Please change that and it should be better.

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

  • Posts: 719
  • Thank you received: 3
3 years 2 weeks ago #330460

Hi,
yes, now it works fine!
Many thanks
Best regards


my site with Hikashop
www.lacasettabio.it

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

Time to create page: 0.084 seconds
Powered by Kunena Forum