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! 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?
User | RANK |
---|---|
26 | |
20 | |
16 | |
13 | |
8 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By