Change destination of "continue shopping" link - Dawn theme

Dawn theme: https://www.yellowathleticcbd.com/collections/all

When adding a product to your cart, you get a popup that includes the link “continue to shopping” below the “check out now” button. Currently, that link just closes the window and returns to the product that was just added to the cart. I want to redirect that to the /collections/all page.

I found a few suggestions for this redirect here in the discussions, but none of them worked for me. Any other suggestions out there?

Hi @kgpolicy ,

To achieve the desired URL

  • From Shopify dashboard, go to Online store > Themes > Edit code
  • In the search box, search for the file named cart-notification.liquid
  • Scroll to the line no. 26 in my file, and paste this code:
[{{ 'general.continue_shopping' | t }}](https://gitagshop.myshopify.com/collections/all)

Change https://gitagshop.myshopify.com with your current domain URL.

Below is the screenshot for your reference

1 Like

Thanks! That worked well- I just had to delete line 27 after I added this on line 26. Before I deleted line 27, I had 2 “continue shopping” links, once removed, everything now works perfectly! Thanks so much.

Hello–

I am doing some development on a client’s website. We are trying to modify the location that the continue shopping link leads you to on the cart page when either empty or when it displays below your cart total on the cart page. I have tried using the code above.

I am wondering if there is an update since your last post as I am not able to get this to work properly. No changes appear to apply when this code is added. Attached is a screenshot of what I have done.

Help would be greatly appreciated.

Thanks,
Natalie

Hi,

Seems you missed the attachment you can also share the code of your file to check.

Hi it doesn’t work for because i cherch to relate the page that i want at this button “continue shopping” you gave solutions to return at the page we seen before but not code to choose the page that we want to go in clicking on this button. I dont no if is possible so i wait your answer