A space to discuss online store customization, theme development, and Liquid templating.
I'm using the Taste theme and need to change the destination of the Continue Shopping link in the cart page to go back to the page the customer was previously on instead of taking them to the "all products" collection.
Solved! Go to the solution
This is an accepted solution.
Hi @JSmms,
Please go to main-cart-items.liquid file and add code here:
Code:
onclick="history.back();return false;"
Hope it helps!
This is an accepted solution.
Hi @JSmms,
Please go to main-cart-items.liquid file and add code here:
Code:
onclick="history.back();return false;"
Hope it helps!
Thank you so much that helped!
I know you wrote this reply a while ago but I'm having the same issue as @JSmms however the code you kindly shared doesn't seem to work for me. The continue shopping button always takes me to the All Products collection.
I tried to get the button to take me to a specific collection to see if that would work:
<a href="{{ routes.all_products_collection_url }}" onclick='https://kweeniestudio.com/collections/the-whole-line-up' class="button"><a id="continue-shopping" href="" title="Continue shopping">Continue shopping</a>
{{ 'general.continue_shopping' | t }}
</a>
But still I get taken to the all products collection?
Are you able to help me at all please? Ideally I'd like to go to the previously viewed when clicking the Continue Shopping button.
Like JSmms I am using the Taste 2.0 Template
thank you
K