Hicashop cart module quantity counter wouldn't update automatically in mobile

  • Posts: 43
  • Thank you received: 3
4 months 2 days ago #362196

-- HikaShop version -- : 5.0.2
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.1.13
-- Browser(s) name and version -- : firefox

Hi,
In the mobile view "HikaShop Cart Module" wouldn't update the number(The number that quantity of products in the cart) automatically when adding the product to the cart or removing it, what should I do to fix this?
Thanks in advance

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
4 months 2 days ago #362200

Hi,

This is typical of when the cart module is displayed twice on the pages. Once for the desktop and once for the mobile.
Since both display use the same module id, the javascript refreshing the cart module only see one of the two modules and thus it works on desktop and not on mobile, or vice versa based on the order of display in the HTML of the page.
The solution is to not display the same cart module instance in both places. Configure two cart module instances in the Joomla modules manager, one for mobile devices and one for desktops. You might need to check with your template provider what they recommend.

The following user(s) said Thank You: diacotm

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

  • Posts: 43
  • Thank you received: 3
4 months 1 day ago #362210

Perfect!
Thanks tons of time!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum