- Posts: 47
- Thank you received: 3
Hicashop cart module quantity counter wouldn't update automatically in mobile
2 years 2 months ago #362196
by diacotm
Hicashop cart module quantity counter wouldn't update automatically in mobile was created by diacotm
-- 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
-- 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.
2 years 2 months ago #362200
by nicolas
Replied by nicolas on topic Hicashop cart module quantity counter wouldn't update automatically in mobile
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.
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.
2 years 2 months ago #362210
by diacotm
Replied by diacotm on topic Hicashop cart module quantity counter wouldn't update automatically in mobile
Perfect!
Thanks tons of time!
Thanks tons of time!
Please Log in or Create an account to join the conversation.
Time to create page: 0.193 seconds