Remove Line Item properties in Cart

How to remove line items hidden properties from the shopify cart

🚧

Good to know

Since this issue is not directly related to AnyTrack and affects many stores, Shopify provides a helpful guide that gives instructions on how to hide all hidden parameters from your store.

  1. Go to Theme actions
  2. Edit the code
  3. Select the template: cart-template.liquid
  4. Search the code for the string:
{% unless p.last == blank %}
  1. Select it and replace it with the following string:
{% assign first_character_in_key = p.first | truncate: 1, '' %}  
{% unless p.last == blank or first_character_in_key == '_' %}
  1. Save the code, close the editor.