Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

Learn more about...


Multiple products added if customer multi-clicks Add to Cart

Hi, we have a customized store that a vendor put together for us. We have a problem where our customers double-click Add to Cart so the product gets added twice. The cart page takes up to 10 seconds to show up so sometimes impatient customers click three or four times.

Is there a built-in way to make the button register only one click? How can I help prevent our users from getting multiple of the same product in their cart?


asked Apr 20, 2016 in ML by pakalolo (110 points)

1 Answer

0 votes
If you have source then you can modify the javascript and html on GetAddToCartForm. Bacily the javascript basicly being document.getElementById("AddToCartButtonid").disabled = true; and editing the add to cart button to have a unique id. The reason you want to to the button to be a unique id is you want to disable after the javascript valdiation has passed. Other wise you lock the customer out from adding to the cart till they reload the page if validation from javascript failed (for example the customer didn't choose a color so the validation doesn't do a submit).
answered Apr 20, 2016 by mmcgeachy (5,045 points)