All things Shopify and commerce
Hello!
I want to change the destination of the "continue shopping" button from "products" to a chosen collection.
How can I achieve this? Theme Spotlight.
my website: www.elysiumreads.com
Solved! Go to the solution
This is an accepted solution.
If you found it, please follow the guide I provide above
Please follow these steps to change the destination:
1. Go to `Cart.drawer.liquid`.
2. Find the code and replace the part within `{{...}}` with part of the URL after the domain you want to redirect to, as needed https://prnt.sc/JTShfanb_NGH
Best,
Daisy
Hey @starscream911
You will have to change the href link from your theme files if you wanna change the link, I'm not exactly sure about the file name but it should be something like cart.drawer.liquid. Feel free to let me know if you want me to help you out with that and I'll be more than happy to give you a helping hand.
Best Regards,
Moeed
Just tried it and it doesn't work.
Hi @starscream911,
I hope you are doing well
I noticed that you want to change the link when clicking on the "Continue Shopping" button.
I checked on the cart page, and there are two instances:
When the cart is empty, there's this button:
Screenshot 1
The code location is here:
Screenshot 2
When there is an item in the cart, there's this button:
Screenshot 3
The code location is here:
Screenshot 4
Both instances are in the same file: main-cart-items.liquid.
To update the link to the desired collection:
I hope this helps! Let me know if you have any questions!
Best regards,
Daisy
Hello! Did exactly as you told me, but it didn't work.
For some reason the link I paste do not work properly. Check screenshots.
Could you please confirm if I’m editing the correct button? If I'm not mistaken, this is the "Continue" button you mentioned, correct? [Screenshot](https://prnt.sc/NqE9dEDO6w2H).
If that’s correct, please follow these steps to change the destination:
1. Go to `Cart.drawer.liquid`.
2. Find the code and replace the part within `{{...}}` with `/collections/all-products`, as needed https://prnt.sc/JTShfanb_NGH
Hope this helps! Let me know if you have any questions.
Best,
Daisy
Hello!
I don't have code in this section, please check screenshot and suggest me something new.
Hi @starscream911
I see you have 2 cart-drawer.liquid file, could you please find it in the below cart-drawer.liquid?
Best,
Daisy
okay, cart-drawer.liquid. now what?
Hello! Can you respond please?
Do you find the same code here in the second cart-drawer.liquid?
yes. what should i do now?
This is an accepted solution.
If you found it, please follow the guide I provide above
Please follow these steps to change the destination:
1. Go to `Cart.drawer.liquid`.
2. Find the code and replace the part within `{{...}}` with part of the URL after the domain you want to redirect to, as needed https://prnt.sc/JTShfanb_NGH
Best,
Daisy
It worked. Thank you!
Hi there,
I just tried this, I changed:
<a href="{{ routes.all_products_collection_url }}" class="button">
{{ 'general.continue_shopping' | t }}
</a>
to:
<span class="svg-wrapper">
{{- 'icon-close.svg' | inline_asset_content -}}
</span>
</button>
<a href="https://uk.onetime.sport/" class="button">
{{ 'general.continue_shopping' | t }}
</a>
My continue shopping button on the thank you page still goes to https://store.onetime.sport/.
I'm using Dawn - any ideas.
Thanks for the help!
can you please answer me?
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025