add to cart button does not work

Solved
Autumnlight
Tourist
6 0 0

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>

 

0 Likes
IttantaTech
Shopify Partner
400 39 69

@Autumnlight 

can you please share store url.

Thanks,
Ittanta Technologies Pvt. Ltd. | Shopify Expert
If reply is helpful, please Like and Accept Solution.
To hire us, contact us at info@ittanta.com
Autumnlight
Tourist
6 0 0

https://rap27fzz3qlorgll-52638875845.shopifypreview.com Here is the link, also I'm so thankful that someone is looking over this!

0 Likes
Autumnlight
Tourist
6 0 0

I forgot to add to that message the password b_b, password is: preupa

0 Likes
IttantaTech
Shopify Partner
400 39 69

@Autumnlight 

Thanks 

i can't see add to cart button please share us image 

Thanks,
Ittanta Technologies Pvt. Ltd. | Shopify Expert
If reply is helpful, please Like and Accept Solution.
To hire us, contact us at info@ittanta.com
Autumnlight
Tourist
6 0 0

Autumnlight_0-1608979362647.png

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.

 

0 Likes
IttantaTech
Shopify Partner
400 39 69

This is an accepted solution.

@Autumnlight 

Thanks 

it can be done some custom code so please more details PM

Thanks,
Ittanta Technologies Pvt. Ltd. | Shopify Expert
If reply is helpful, please Like and Accept Solution.
To hire us, contact us at info@ittanta.com
Autumnlight
Tourist
6 0 0

Could mayby someoen else also look over it?

0 Likes