When the cart is empty and you click on the “continue shopping” it currently takes you to the collections page which shows all of our products. How can I change the URL that button directs users to? As that page shows products not meant for the public, so I want to take them to a certain product instead
Thanks for your help
Joe
Hello @mrjoemorgan
Where do you want to redirect that “continue shopping” link?
1 Like
Hi @mrjoemorgan ,
You can make this change by adjusting your theme’s code. Before doing so, I do suggest trying this out in a duplicate version of your theme, just to be on the safe side.
-
From your Shopify admin, go to Online Store > Themes.
-
Find the theme you want to edit, and then click Actions > Edit code.
-
In the Sections directory, click **main-**cart-items.liquid.
-
Look for the “continue shopping” code. If you’re having trouble finding it, you can hit CTRL + F or CMD + F if you’re on a Mac and type in “continue” to find the code.
-
Replace {{ routes.all_products_collection_url }} with the URL that you want it to redirect to.
I hope this answer helps.
2 Likes
Thank you so much for your help.