Shopify cart error - massive exclamation mark in "cart", please help!

Topic summary

A large exclamation mark unexpectedly appeared in a Shopify store’s cart page. The issue is visible in Microsoft Edge but disappears when Chrome’s developer console is opened.

Two solutions were provided:

  1. Theme.liquid modification (marked as accepted): Add specific code above the </head> tag in the theme.liquid file
  2. CSS override: Add .cart-item__error {display: none !important;} to base.css to hide the error element

Current status: The original poster confirmed the first solution worked. However, a follow-up question emerged about the exclamation mark reappearing on the second item when multiple products are in the cart, suggesting the issue may not be fully resolved for all scenarios. The root cause of why the error displays remains unclear.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

This massive exclamation mark has appeared out of nowhere. Everything was working fine and then I spotted this, I’m not sure whether any changes I’ve made caused it to happen. I tried to figure out how to fix it myself using the dev console and researching but I can’t figure it out, if someone could please help.

Bear in mind when I open Chrome’s dev console the exclamation mark goes invisible. The screenshot is from Edge.

Hi @AlloyRamps

You can follow the following steps:

  1. Please go to the Online Store
  2. Then Edit Code
  3. Please find the theme.liquid file
  4. And add the following code in theme.liquid file above the tag

If this solution is worked, then please Like this and Mark this as accepted solution!

Laddi

Amazing, thank you for the quick help.

I’m assuming that the error has no major impact on the page as a general?

Hi,

  1. Go to online store

  2. Edit Code

  3. Open your base.css

  4. Add the following code:

.cart-item__error {display: none !important;}

  1. Save

This should resolve the issue but I prefer if you can give me access to the store so I can understand the reason why it is showing.

Have a nice day.

1 Like

@AlloyRamps

No it will not effect anything.

What Do you do when you have more than one Item in cart and the exclamation mark goes away on one of the items but keeps showing with second item?