Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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