Change 'Continue Shopping' destination

Solved
Highlighted
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
Highlighted
Shopify Staff
Shopify Staff
754 42 146

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

 

 

Katy | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

1 Like
Highlighted
Shopify Expert
1381 111 206

Please share a store url 

0 Likes
Highlighted
Tourist
7 0 0

That's great.

 

Thanks!

0 Likes
Highlighted
Tourist
8 1 1

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
Highlighted
Tourist
8 1 1

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