Liquid, JavaScript, themes, sales channels
Hi, I recently changed the theme to my store to the boundless theme. But I do not have the add to cart button. How can I add it? I've tried adding it to the codes but it's not working.
Kindly
Check out this link it may be helpful for u.
https://help.productcustomizer.com/article/174-boundless-theme-install-basic
Add this to product-grid-item-liquid:
(Remove the third line if you don't want the quantity field to show)
<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>
Add this to theme.scss.liquid to center it:
.add-to-cart{
text-align: center;
}
<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>
Add this code it will work
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024