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.
- Go to Theme actions
- Edit the code
- Select the template:
cart-template.liquid
- Search the code for the string:
{% unless p.last == blank %}
- 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 == '_' %}
- Save the code, close the editor.
Updated about 1 year ago