Shopify add to cart button

Shopify add to cart button

go to snippets and paste this code at the bottom

<code>
{% if product.available %}</code>
<div class=”card-grid-pro”><form action=”/cart/add” method=”post”><input name=”id” type=”hidden” value=”{{ product.variants.first.id }}” />
<input id=”quantity” min=”1″ name=”quantity” type=”number” value=”1″ />
<input class=”btn” type=”submit” value=”Add to cart” />
<input name=”return_to” type=”hidden” value=”back” /></form></div>
{% endif %}</code>

for add to cart page stay, the same page follow these links

https://community.shopify.com/c/Shopify-Design/Product-pages-Stay-on-the-product-page-after-adding-products-to/m-p/616440

No Comments

Post A Comment