Hello, i’m looking for items in the cart with a _Property to not display. i’ve tried adding the following:
{% if property.first == ‘_’ %}
{% continue %}
{% endif %}
Below
{% for property in item.properties %}
But it does not seem to work. If anyone can help out that would be awesome! Store is yvrcookie.com
Hello @YVRCookie
Examine how the dawn reference does it:
https://github.com/Shopify/dawn/blob/main/sections/main-cart-items.liquid#L141
{%- assign property_first_char = property.first | slice: 0 -%}
{%- if property.last != blank and property_first_char != '_' -%}
Depending on theme you may need to add such guard logic in multiple places such as themes that have separate code for the cart page and cart-drawers.
Hi! Thank you for taking the time to reply.
I tried adding it but it did not work unfortunately. Would you be able to take a look at my site and see what I could do to fix it? Thank you very much!