Change 'Continue Shopping' destination

Solved
discount85
Tourist
7 0 0

Hi,

How do I change my 'CONTINUE SHOPPING' link destination. It currently links to the 'COLLECTIONS/ALL' page but I would prefer it to link to the collection in which they had previously been in.

 

For example: User is browsing collection 'Girls 11-12 years' --> Selects a product --> Adds to cart --> Continue Shopping --> 'Girls 11-12 years'

 

I'm using Simple theme

 

Thanks

0 Likes
Katy
Shopify Staff
Shopify Staff
771 43 167

This is an accepted solution.

Hi, @discount85 !

 

Katy here from Shopify. I hope all is well with you!

 

Great question! You can make this change by adjusting your theme's code once again. Before doing so, I do suggest to try this out in a duplicate version of your theme, just to be on the safe side. 

 

We have a help center guide here to help you with the specific steps. As well as following the initial steps (which you may have done already), you will also just need to apply some JavaScript (included in the guide) to direct the user back to the previously viewed collection. 

 

I hope this helps, though if you have any questions or need a hand at all, do feel free to let me know. I am happy to help.

 

Cheers,

Katy

 

 

Please note: This account is no longer regularly monitored.
 - If you need assistance please do start a new topic (referencing an older topic/post if you find this helpful).
 - Thank you for your understanding. We hope you enjoy exploring the Community.
 - To learn more visit the Shopify Help Center or the Shopify Blog.

Qualitycheck
Shopify Expert
1403 114 222

Please share a store url 

0 Likes
discount85
Tourist
7 0 0

That's great.

 

Thanks!

0 Likes
MikeTaylor
Tourist
9 1 2

Hi

I also had an email from a customer asking why the Continue Shopping button didn't take them back to where they came from.

So I followed the tutorial (https://shopify.dev/tutorials/customize-theme-add-back-link#add-a-continue-shopping-link-to-your-car...).

I'm no coder, but the simple instructions made it appear easy.

However, having pasted the code into the right files and in the right places, it doesn't make any difference.

The shopper is taken back to the top of our All Products page.

Any help or advice would be most welcome.

We are using the Minimal theme

Mike
ww.vindinista.com

0 Likes
MikeTaylor
Tourist
9 1 2

I tried moving the code in cart.template.liquid around (before and after the button code but all this did was move the position of the button around.

I was able to get an unbuttoned "continue shopping" link to appear and link back to the correct place, but without styling and also with the exiting "Continue shopping" button still in existance.

I'm no coder, but I think the "how to" piece is making it look a lot easier than it actually is.

M

0 Likes
bansaibottles
New Member
1 0 0

Mike, was this ever resolved?  I'm experiencing this exact same issue still.

0 Likes