How can I modify the 'Continue Shopping' button to close the Cart Drawer?

Hi everyone,
Hope you’re all doing well. I’m trying to make the “Continue Shopping” simply close the Cart Drawer, not going to the “All products” page. If only you could help me with this.
Here is the code for the button

Continue shopping

I also attach the picture so you could easily consider the situation

Thank you very much! I’m looking forward to hearing from you soon.

Hi @DK7 ,

Please change:

javascript:location.reload();

=>

javascript:void(0)

Hope it helps!

Hi @LitCommerce ,
Thank you for your response. I tried the code but I did nothing when I clicked on the button. I’m looking for another code.
Hope you’re doing well. Thank you very much!

Hi @DK7 ,

Please change code:

Continue shopping

=>

Continue shopping

Hope it helps!

Hi @LitCommerce ,
Your code did its work really well. Thank you so much! Wish you all the best!

1 Like

Hi, this is exactly what I’m trying to achieve as well, can I ask where you added the above code? I can’t seem to find a liquid file for the cart drawer, just for the main full screen cart. Thanks!

Never mind, found the liquid file! I’ve tried both solutions mentioned above, but neither of these close the drawer when you click them. Any ideas what the issue might be?

Thanks.

Continue shopping

Continue shopping

I’ve tried both solutions mentioned above, but neither of these close the drawer when you click them. Any ideas what the issue might be?

Thanks.

Continue shopping

Continue shopping

Hi @bamboom ,

You can create a question on the community and send me the link. I will check it.
Because this will help build a better community.
Thank you.

Hello i have the same problem, but my code for the button is looking different and i already pasted your code in but nothing changed (i am a beginner). What can i do?