Some times we can see that the cart contains a lot of repeated lines that represents the tab name like this:
- Customize your watch - Dial Colour: Red
- Customize your watch - Minute Hand Colour: White
- Customize your watch - Hour Hand Colour: Green
- Customize your watch - Belt Material: Vegetarian Leather
- Customize your watch - Buckle Colour: Gold
To remove it you need to do the following steps.
1. Go to Settings.
2. Switch the third trigger to disable panels titles in the Cart.
You can also remove titles that are showing up excessively using Shopify liquid.
For example by using "remove" liquid code.
Removes all occurrences of a substring from a string.
{{ p.first | remove: "Customize your watch - " }}:
Or, if the repeating words exist in the option name, you may use this code to remove repeating:
{{ p.last | split: '(' | first | remove: "Leather "
}}
Comments
0 comments
Please sign in to leave a comment.