Liquid, JavaScript, themes, sales channels
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!
Solved! Go to the solution
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
Hi @ringswithgrace !
What Theme are you using for this?
Let me know!
For the Minimal Theme do the following:
<a class="btn btn--secondary" href="{{ routes.all_products_collection_url }}">{{ 'cart.general.continue_shopping' | t }}</a>
<a class="btn btn--secondary" href="/">{{ 'cart.general.continue_shopping' | t }}</a>
That should do the trick!
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!!
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
You're Welcome!
Hi. How do I do this in the dawn theme but return to the product page instead?
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?
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024