Liquid, JavaScript, themes, sales channels
Hello All,
We've just come across an issue we are getting on our site, the plus and subtract buttons aren't working so people can't add or remove products from the cart. Our web address is www.advancedacoustics-uk.com. We have been doing some work on the site these past few days but not noticed this issue before. I have tried reverting back to an old version of various codes I have been working on. Could some take a look or perhaps let us know if it is a local issue?
They're working just fine for me. What device are you using? I'm on a desktop, using Chrome
I'm on iPhone and mac, both with the same issue
I see in your script.min.js where this is triggered:
You may want to change that to something like:
$(".qtyplus_" + t + ",.qtyplus_multi").on('click tap', function(e) {
I have read that iOS doesn't always handle jQuery click events properly. Though it seems you really shouldn't be having an issue in the sense that you're using a button. Usually these glitches happen when there's not a
cursor: pointer;
Property applied to the CSS. But in this button's case it is. I would give adding that "tap" event a shot. Be sure to duplicate your theme and try it on a duplicate, you can't revert javascript files the way that you can other liquid files.
Strange thing is I haven't touched that file. This must be a recent change.
It's really just a guess, I can't really know or test since I don't have a mac or iphone. So you never had this problem before with any of your iOS devices?
no never before. I can't even increase quantity by changing the qty in the box.
plus and minus doesn't work on the product page either but adding a number in the box does give a result.
just tried it on windows, edge, works fine!
must be an iOS or safari issue?
Firefox on mac works fine too.
panic over, just cleared history and cache on the mac and works fine with safari, how weird is that??! Sorry for wasting your time @Ninthony
Hey no worries, just glad you got it figured out. Have a good one.
So it seems like the problem is still there however having checked through various devices and browsers it looks like the issue only lies when people use Safari Web browser as far as I can tell.
I have tried;
Windows-Edge, all fine:
Mac-Firefox, all fine,
IOS14-Safari, plus and subtract buttons still don't work even when i clear history and cache. It works the first time you load the page but refresh the page or go back to it later and the buttons don't work. Same issue with Mac-Safari.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024