Hello there! on the Internet, I found a button that creates add to cart function, but oddly, when I use it it’s adding the item and it’s bringing me to the checkout page, any ideas on how I can fix this?
Thanks in advance
<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>
@Autumnlight
can you please share store url.
1 Like
https://rap27fzz3qlorgll-52638875845.shopifypreview.com Here is the link, also I’m so thankful that someone is looking over this!
I forgot to add to that message the password b_b, password is: preupa
@Autumnlight
Thanks
i can’t see add to cart button please share us image
1 Like
The entire thing is the add to cart button, the plan was to have a long page, on which you can simply press on a product and it’s adding it to the cart, so each product is one item.
@Autumnlight
Thanks
it can be done some custom code so please more details PM
1 Like
Could mayby someoen else also look over it?