Preventing “Hidden” Line Item Properties from Displaying on Your Store

Hidden line item properties can have a back-end appearance that may not look the best on your store front. Hiding these is straightforward.

The “_gcp_recipient_email”, and“_gcp_delivery_date”, etc. properties are referred to as “hidden” line item properties, since they start with an underscore. They are hidden during the Shopify checkout, and themes usually have the code built in to ensure that these are not displayed, but sometimes this needs to be added in manually.

To fix this, all we need to do is add a condition to the line item property loop in your cart.liquid template.

Within your cart.liquid template, find this line:

{% for p in item.properties %}

Paste this directly beneath it:

{% if p.first.first == "_" %}{% continue %}{% endif %}

Can't find the answer in our documentation?
Contact Support