I want add a add to cart button on product page

after the product name, I want to add to cart button option in all products, we use fashionpolism theme

Hi @aristavault ,

Please follow below steps to add “Add to cart” button on Shopify collection pages for each product.

From your Shopify admin, to to Online Store > Theme.
Find the theme you want to edit and then click Action > Edit code.
In the online code editor of collection page find to the loop {% for product in collection.products %} add the below code.

{% if product.variants.size == 1 %} {% else %} {% endif %}
Add to cart

Hit Save, and you’re done!

we add this code but my alignment is disturbed please check the attachment.
I want to add to cart option button after the title of product

Share your site url

https://www.aristavault.com/

But my website layout is disturbed now and I won’t add to the cart option after the title of the product

Hi @aristavault ,

search this div add below it where it ends…

we add here but the product section will open in list way not a grid way