Hide Properties on Cart Page

Some themes mistakenly display all the line item properties on the cart page, so you may want to hide this text.

Step 1: On the cart.liquid file, look for the code that prints the items properties like such:

{% unless p.last == blank %}<br>

Note: If you can’t find the code listed above in the cart.liquid template, it is possible that your theme may have a different title for this. In that case, check if instead your theme has a section titled cart-template.liquid or line-items-cart.liquid. If you still don’t find any of these files, please let us know and we would be happy to find this code and hide the properties for you.

Step 2: Within the 'unless' statement, add this:

{% unless p.last == blank or p.first == 'subscription_id' or p.first == 'shipping_interval_frequency' or p.first == 'shipping_interval_unit_type'%}<br>

Some themes don't have the line  {% unless p.last == blank %} into the cart page. If this is your case, you have to look into the cart page and check which file is added to print the item's properties, it is usually a snippet.

Step 3: When you find the file, open it and copy the code shown above to hide the properties.

Still stuck? How can we help? Still stuck? How can we help?