Chrome Triggering Double Action On Buy Now Button
On our website if a customer clicks on Buy Now on any of our products (example https://www.nutricentre.com/p-53682-advanced-brain-nutrients.aspx) it adds a quantity of 1 in Firefox
Solution 1:
I might be missing something glaringly obvious, but I'm wondering if the issue is on the backend rather than the front end? Throw in some console.log()'s along your function path and see what is being sent to the backend. Is it a 2 (despite '1' in the box), or does your server receive a '1' from the client and yet it's turned into a 2 by the time the cart loads?
Your '== 0' code works fine, so your .val() is being read.
Post a Comment for "Chrome Triggering Double Action On Buy Now Button"