Change destination for continue browsing here in empty shopping basket

Solved
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!

0 Likes
JHKCreate
Shopify Partner
2046 331 445

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
ringswithgrace
Excursionist
18 2 5

Hi @JHKCreate 

It's the theme Minimal!

Thank you!

0 Likes
JHKCreate
Shopify Partner
2046 331 445

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
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!!

 

 

0 Likes
JHKCreate
Shopify Partner
2046 331 445

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
ringswithgrace
Excursionist
18 2 5

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

0 Likes
JHKCreate
Shopify Partner
2046 331 445

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
0 Likes