Solved

Change destination for continue browsing here in empty shopping basket

ringswithgrace
Excursionist
18 2 5

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!

Accepted Solution (1)
JHKCreate
Shopify Expert
3571 639 916

This is an accepted solution.

Find this piece of code:

 

<p class="cart__continue-btn">{{ 'cart.general.continue_browsing_html' | t: link: routes.all_products_collection_url }}</p>

 


And replace it with:

 

<a class="btn btn--secondary" href="/">{{ 'cart.general.continue_shopping' | t }}</a>​

 

 

That should do it! Let me know

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com

View solution in original post

Replies 9 (9)

JHKCreate
Shopify Expert
3571 639 916

Hi @ringswithgrace !

What Theme are you using for this?

Let me know!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
ringswithgrace
Excursionist
18 2 5

Hi @JHKCreate 

It's the theme Minimal!

Thank you!

JHKCreate
Shopify Expert
3571 639 916

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 

 

<a class="btn btn--secondary" href="{{ routes.all_products_collection_url }}">{{ 'cart.general.continue_shopping' | t }}</a>
​

 

  • Add This Instead

 

<a class="btn btn--secondary" href="/">{{ 'cart.general.continue_shopping' | t }}</a>​

 

That should do the trick!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
ringswithgrace
Excursionist
18 2 5

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?

ringswithgrace_1-1611068944908.png

Thank you!!

 

 

JHKCreate
Shopify Expert
3571 639 916

This is an accepted solution.

Find this piece of code:

 

<p class="cart__continue-btn">{{ 'cart.general.continue_browsing_html' | t: link: routes.all_products_collection_url }}</p>

 


And replace it with:

 

<a class="btn btn--secondary" href="/">{{ 'cart.general.continue_shopping' | t }}</a>​

 

 

That should do it! Let me know

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
ringswithgrace
Excursionist
18 2 5

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

JHKCreate
Shopify Expert
3571 639 916

You're Welcome!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
bolt23
Visitor
3 0 0

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

lisamaddox
Visitor
1 0 0

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?