I would like to make "add to cart" button work in a way so that a person stays on the same page once they click on it, but that the items still gets added to their cart. How can I make that? Does it have to be ajaxified, and if yes then how? Here is the button code itself:
<div id="custom-buttons">
<div id="custom-cart">
<a href="ShoppingCart.asp">
<input class="vCSS_input_addtocart" type="image"
src="/v/vspfiles/templates/248/images/buttons/btn_addtocart.gif"
name="btnaddtocart" alt="Add to cart" border="0"
data-image-path="/v/vspfiles/templates/248/images/buttons/btn_addtocart.gif"/>
</a>
</div>
The question you need to ask yourself is whether you're fine with the page reload after a new cart item is added, or not.