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.


On the cart.liquid file, look for the code that prints the items properties:

{% 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.


Within the unless statement, add the following:

{% 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.


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?