cart issues

Autumnlight
Tourist
6 0 0

Hey there, I've created a post earlier but I think that people are looking for the newer post and so I hope that someone can help me, 
Currently, I have the issue that my button on my Homepage opens the cart page, it's adding the product to it too, but I only want that it's adding the product to the cart and that it's not opening it, anyone has a solution for that?

<form method="post" action="/cart/add">
<button id="AddToCart-{{ product.id }}" name="add" type="submit">
</button> <input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<input style="display:none" min="1" type="number" id="quantity" name="quantity" value="1"/> </form>

 

0 Likes