I have a Color metafield:
- Single Line
- Value List
Where I want to put the product colors in.
Sometimes only one, sometimes 5 colors per product.
Now I want to display the color(s) to the customer in a single line seperated by a “/”.
This is the output if you render the metafield like :
{{ product.metafields.custom.color.value }}
![]()
Both tags have no space in-between
And this is the output if I´m trying to use the “Split” function:
{{ product.metafields.custom.color.value | Split:“/” }}
![]()
Why does it render the “(” brackets?
This is how the metafield is set up
The Code that renders the Color Variant:
{{ block.settings.heading }} Farbe: {{ product.metafields.custom.color.value }}
Any ideas how to solve my issue?
