plus and subtract buttons not working

shaunsnaith
Tourist
29 0 1

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?

0 Likes
Ninthony
Shopify Partner
2240 337 895

They're working just fine for me. What device are you using? I'm on a desktop, using Chrome

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
shaunsnaith
Tourist
29 0 1

I'm on iPhone and mac, both with the same issue

 

0 Likes
Ninthony
Shopify Partner
2240 337 895

I see in your script.min.js where this is triggered:

Ninthony_0-1631822163889.png

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.

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
shaunsnaith
Tourist
29 0 1

Strange thing is I haven't touched that file.  This must be a recent change.

0 Likes
Ninthony
Shopify Partner
2240 337 895

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?

If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
0 Likes
shaunsnaith
Tourist
29 0 1

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.

0 Likes
shaunsnaith
Tourist
29 0 1

just tried it on windows, edge, works fine!

 

must be an iOS or safari issue?

0 Likes
shaunsnaith
Tourist
29 0 1

Firefox on mac works fine too.

0 Likes
shaunsnaith
Tourist
29 0 1

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 

0 Likes