Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

"Continue Shopping" Link destination

Solved

"Continue Shopping" Link destination

JSmms
Tourist
3 0 1

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.

Accepted Solution (1)

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hi @JSmms,

Please go to main-cart-items.liquid file and add code here:

Screenshot.png

Code:

onclick="history.back();return false;"

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify

View solution in original post

Replies 3 (3)

LitExtension
Shopify Partner
4877 1003 1169

This is an accepted solution.

Hi @JSmms,

Please go to main-cart-items.liquid file and add code here:

Screenshot.png

Code:

onclick="history.back();return false;"

Hope it helps!

LitExtension - Shopping Cart Migration Expert
Check out our Shopify migration app to migrate your online store to Shopify
JSmms
Tourist
3 0 1

Thank you so much that helped!

kweeniestudio
Tourist
16 0 0

Hi @LitExtension 

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