Brooklyn Theme: Add to Cart button on homepage/collection pages

All okay, the code is great, it just needs to be put in the right part of the product-grid-item.liquid code. for me it was below this code around line 100:

+ {% else %} {{ product.price | money_without_trailing_zeros }} {% endif %}
1 Like

@GBSshop

Do you have a fixed issue?

Yes, issue all fixed thanks

1 Like

@GBSshop

great thanks for update

hey, how yo fix the problom that the add to cart is not on center?

@GBSshop

@Elad1

can you please share store url

hey

parisunglasses.com

@KetanKumar

1 Like

@Elad1

try this

From Shopify Admin select Online Store and click on Themes Choose your main theme Click the . . . on the top left-right (see below) and hit Edit code Open Snippets → product-card-grid.liquid File and paste below code at the end of the page.

Hey this breaks my page, I’m using a 3 collumn layout could you help?

Hi I am having a few issues with the code. Firstly the - 1 + part of the add to cart is not central on either mobile or web version. Also it is putting the brand/tag text underneath. How do I sort both please?

I have managed to remove the tag text, I just need to centralise the -1+ part.

Also do you know how once added it can stay on the page rather than keep going to the cart page, and making users go back.

Maybe with a prompt to say ‘Added’

Hi @sms_3000 , check out this YouTube tutorial for a simple guide on adding an “Add to Cart” button to your Shopify collection pages: https://www.youtube.com/watch?v=s98l1bUZe6k