Change destination for continue browsing here in empty shopping basket

Hi there,

Please could somebody help me redirect my ‘continue browsing here’ in an empty shopping basket/cart to the homepage rather than to all products? I know the code needs to be amended to /, however I just need help on which bit to add it too.

Thank you so much!

Hi @ringswithgrace !

What Theme are you using for this?

Let me know!

1 Like

Hi @JHKCreate

It’s the theme Minimal!

Thank you!

For the Minimal Theme do the following:

  1. Online Store
  2. Edit
  3. Edit Code
  4. Search for “cart-template”
  5. Go to Line 231
  6. Remove This
{{ 'cart.general.continue_shopping' | t }}
​
  • Add This Instead
{{ 'cart.general.continue_shopping' | t }}​

That should do the trick!

1 Like

Hi @JHKCreate

Thanks so much! It works for when I have an item in my basket, but I want to do it for when the basket is empty and the continue browsing comes up if you click on the basket with nothing in it.

Do I need to do something here?

Thank you!!

Find this piece of code:


{{ 'cart.general.continue_browsing_html' | t: link: routes.all_products_collection_url }}

And replace it with:

{{ 'cart.general.continue_shopping' | t }}​

That should do it! Let me know

1 Like

All resolved, that’s perfect! Thanks so much @JHKCreate

You’re Welcome!

Hi! My theme is Dawn…can you point me to the correct section to edit? And the correct code to get me back to my main product page?

Hi. How do I do this in the dawn theme but return to the product page instead?