Open Cart Drawer on collection page (Brooklyn theme)

Highlighted
Shopify Partner
3 0 0

Hi there - using the Brooklyn theme, I'm trying to get the cart drawer to open on the product collection page, the same way it does on the product page.

This code below works but directs the user to the cart page.  What I want is that it opens the drawer and stays on the collection page.    

 

<form method="post" action="/cart/add" />
<input type="hidden" name="id" value="{{ product.variants.first.id }}" />
<input type="submit" value="ADD TO CART" class="btn btn--add-to-cart btn--secondary-accent is-added" />
</form>

 Thanks in advance for your help!

0 Likes
Highlighted
Shopify Partner
3 0 0

If it helps, here's the site in development:

https://rethink-packaging.myshopify.com

password: rethink

Thanks!

0 Likes
Highlighted
Excursionist
58 2 1

How did you manage to get it working?

0 Likes
Highlighted
Shopify Partner
3 0 0
I actually hired a contractor on upwork for that and a few other custom improvements. Quite happy with the result. Not sure there is a private message system in here where I can give you the name of the guy that helped me out...
0 Likes
Highlighted
New Member
8 0 0

Hi!

Could you send me the name of the consultant that helped you earlier?

Thank you in advance!

0 Likes