How to redirect checkout button (Ajax's drawer) to cart page on Brooklyn theme

G’day!

My name is Harry from Melbourne, Australia, I just launched my first Shopify store using Brooklyn.

Could anyone please teach me how to redirect checkout button (on the Ajax’s drawer) to cart page on Brooklyn theme?

It’s going straight to the check out page at the moment when you click the checkout button (on the drawer).

I spent the whole day yesterday looking for a solution but no luck.

Thank you.

Harry

1 Like

Hi,

Did you manage to find a solution for this? I am looking to do this as well but i cant it anywhere on community.

Thanks

Unfortunately no :disappointed_face:

i see :disappointed_face:

Hi guys, did anyone ever manage to solve this issue?

I have the same problem.

I am using Ajax drawer, which slides open whenever you click “add to cart” for any product.

On the drawer menu, I would like the “checkout” button to redirect to the cart page, instead of sending the user directly to the checkout page. How can this be done?

PS: I am using brooklyn theme.

looking for same thing!

Hello! Found the solution!

You need to replace:

<button type=“submit” class=“btn btn–loader cart-drawer__checkout” name=“checkout” data-cart-submit{% if cart.items.size == 0 %} disabled{% endif %}>
{{ ‘cart.general.checkout’ | t }}

with:

{{ ‘cart.general.checkout’ | t }}

yay