Cart icon collection

Hello everyone!

I have clicked the cart icon on the top right corner of the home page and the following appears to me:

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

Hi Jason,

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

  1. In Shopify admin, go to Online Store → Themes

  2. Click Edit code on your Sense theme

  3. 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
  4. Look for the button/link that is currently pointing to something like:

{{ routes.all_products_collection_url }}

  1. Replace that with your desired collection URL, for example:
{{ 'general.continue_shopping' | t }}

<a href="/collections/your-collection-handle" class="button">
   {{ 'general.continue_shopping' | t }}
</a>

Hi @Jas0n

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:

  1. Go to Online Store → Themes → Edit code.

  2. Search for the cart drawer file (such as cart-drawer.liquid or a similar file, depending on your theme version).

  3. Find the “Continue shopping” button or link.

  4. Replace its URL with your desired collection URL, for example:

href="{{ routes.root_url }}collections/your-collection-handle"

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.

Best regards,
Devcoder :laptop: