Problem with: Liquid error - Could not find asset snippets/icon-cart-empty

Topic summary

A user encountered a Liquid error after installing and uninstalling the PageFly app while attempting to hide the cart icon by deleting theme assets. The error message indicates a missing snippet file: snippets/icon-cart-empty.liquid referenced on line 725 of the header section.

Root Cause:
Deleting theme assets (likely the icon-cart-empty.liquid snippet) while the header code still references it.

Proposed Solution:

  1. Navigate to Online Store > Themes > Actions > Edit code
  2. Open sections/header.liquid and locate line 725
  3. Comment out or remove the problematic code referencing the missing snippet:
{% comment %}
{% include 'icon-cart-empty' %}
{% endcomment %}

Status: The original poster requested clarification on where to paste the code, but no follow-up guidance was provided. The issue remains unresolved in the thread.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

When I downloaded App name PageFly. (I think it have some connect with it because when i uninstall it, some of assets are still here.) I wanted to hide cart icon so I started to deleting some of assets. It’s telling me there’s a problem. I found where is the problem in website but I cannot find it in code in Shopify. When I deleted it in Google explorer, it was ok.

This showing me up right now on my website:

Liquid error (sections/header line 725): Could not find asset snippets/icon-cart-empty.liquid

Anyone help please ? I will be so grateful!

Hi @Lucas00000 ,

I can help you with this. But for that, I need to check your theme code to solve this error.

How can I give you access ? Do you mean that I need to give you access on my Shopify Store to edit theme code ?

Or do you need some of screenshots for it ?

The error message you’re encountering indicates that there is a problem with the header section in your Shopify theme’s Liquid code. Specifically, it mentions an issue on line 725 related to the asset snippet icon-cart-empty.liquid.

To address this issue, you can follow these steps:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme you’re currently using and click on the “Actions” button.

  3. Select “Edit code” from the dropdown menu to access the theme’s code editor.

  4. In the code editor, navigate to the sections directory and locate the header.liquid file.

  5. Open the header.liquid file and go to line 725 to find the problematic code related to the icon-cart-empty asset snippet.

  6. Either remove or modify the code causing the issue. If you want to hide the cart icon, you can comment out the code by adding {% comment %} at the beginning and {% endcomment %} at the end of the code block. For example:

{% comment %}
{% include 'icon-cart-empty' %}
{% endcomment %}
3 Likes

Hi, its such a helpful tip but where I need to paste this code ?

“Thank you so much for providing the correct solution with clear step-by-step guidance! Your detailed explanation made everything easy to understand, and I truly appreciate your help.”