Why is my add to cart button missing after changing themes?

starspears
Visitor
1 0 2

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.

Replies 3 (3)

Zworthkey
Shopify Partner
5581 642 1569

Kindly

Check out this link it may be helpful for u. 

https://help.productcustomizer.com/article/174-boundless-theme-install-basic

Deebella
Shopify Partner
16 0 4

@starspears 

 

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;
}

Zworthkey
Shopify Partner
5581 642 1569

@starspears 

<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