add to cart

lowogolf
New Member
1 0 0

How do I add an add to cart button at the bottom of all of my products in the 'Motion' theme? I tried adding the following code in snippet product section and the add to cart button messed up the formatting on my page and placed the button at the top of the photos along with a quantity field that was not wanted. Thanks in advance.

 

<form method="post" action="/cart/add">
  <input type="hidden" name="id" value="{{ product.variants.first.id }}" />
  <input min="1" type="number" id="quantity" name="quantity" value="1"/>
  <input type="submit" value="Add to cart" class="btn" />
</form>
0 Likes