Quantity Field - Prevent Enter/Return button from "adding to cart"

mattyfloor
New Member
3 0 0

On my websites, when a person want to buy a product, they can update the quantity by:

- using +/- button

- typing value into input field.

This seems to be common on many themes I've found. Here is an example

The problem is that on ALL these types of input fields, if you type a value in with your keyboard and hit enter... everything gets added to the cart. 

This makes no sense to me!

What I need is a way to hit enter (without activating the "add to cart" function), I then want to click "Add to cart" when I'm ready.

Does anyone know how to prevent this from happening?

0 Likes