I am using the sense 2.0 theme want to show Add to cart button on the Collage section’s product in sense theme on the home page.
1 Like
- Go to Online Store-> Theme->Edit code
- Snippets->product-card. liquid now here search for this code
{% render 'price', product: product_card_product, price_class: '' %}
Once you found it then just before of it add this code
Next under ‘Layout’ edit the theme. liquid and add this code just before the tag
{% if template == 'collection' %}
{% endif %}
Thanks!
1 Like
@dmwwebartisan It works perfectly for the home page,but how can I make it work for collection page?
@dmwwebartisan I have the same problem as @kymyk ,works like a charm on the home page but whenever I enter a collection and press ‘add to cart’ it does nothing.
My pleasure to help you.
Welcome to the Shopify community!
Please share your store URL!
I will check out the issue and provide the correct solution to you!
Thanks!
@dmwwebartisan that would be great my shop is https://lenjeriioutlet.com/
