Shopify add to cart button - Worddes
441
post-template-default,single,single-post,postid-441,single-format-standard,bridge-core-2.1.4,ajax_fade,page_not_loaded,,qode_grid_1300,qode-content-sidebar-responsive,qode-child-theme-ver-1.0.0,qode-theme-ver-20.1,qode-theme-bridge,disabled_footer_bottom,qode_header_in_grid,wpb-js-composer js-comp-ver-6.1,vc_responsive

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