Skip to main content
All CollectionsAdvanced
Hiding line item properties (starting with _)
Hiding line item properties (starting with _)
Spencer Davies avatar
Written by Spencer Davies
Updated over a month ago

Line item properties on the Cart page

Depending on your theme, you may see additional information on your Cart page called 'line item properties'. These are required by the Kitenzo app to be able to adjust the prices on the Cart page correctly.
โ€‹

Example:

By default, Shopify hides line item properties starting with _ (normally called an underscore). However, it's your theme, rather than Kitenzo, that decides whether these show or not.


Hiding line item properties in themes

If you wish to hide the line item properties, we recommend you create a backup of your theme before you make any changes.

Inside either the cart-template.liquid or cart.liquid file, find the line which looks similar to:

{%- for p in properties -%}

Immediately below that line, paste these two lines:

{% assign first_character_in_key = p.first | truncate: 1, '' %}
{% unless p.last == blank or first_character_in_key == '_' %}

Find the corresponding {%- endfor -%} for the loop and immediately above that line, paste:

{%- endunless -%}

Your code should now look something like this:

Did this answer your question?