I want to assign the purple button to a certain collection, now it is set to lead to all products by default by Shopify. I am using the Shopify Sense Theme, just in case. What do I need to do to change the collection of the purple button?
That button is the empty cart “Continue shopping” button, and in the Sense theme it usually points to the All Products collection by default. If there’s no option to change it in the theme customizer, you’ll need to edit the theme code. Search for routes.all_products_collection_url or /collections/all in your theme files and replace it with the URL of the collection you’d like the button to open instead
The purple Find your apartment button on the empty cart page is usually linked to Shopify’s default All Products page through the cart/empty cart template. To make it open a specific collection instead, you would need to update the button link in your theme code.
What to do
In Shopify admin, go to Online Store → Themes
Click Edit code on your Sense theme
Search for the empty cart template/section. In most cases, it will be inside a file related to the cart, such as:
main-cart-items.liquid
Look for the button/link that is currently pointing to something like:
{{ routes.all_products_collection_url }}
Replace that with your desired collection URL, for example:
By default, the “Continue shopping” button in the Sense theme usually links to your All Products page. There isn’t a theme setting to change this link.
To point it to a specific collection, you’ll need to edit the theme code:
Go to Online Store → Themes → Edit code.
Search for the cart drawer file (such as cart-drawer.liquid or a similar file, depending on your theme version).
Find the “Continue shopping” button or link.
Replace its URL with your desired collection URL, for example:
Replace your-collection-handle with the handle of your collection.
If you’re using the latest version of the Sense theme and can’t find the file, let me know your Sense theme version, and I can point you to the exact file and code to update.