Can anyone please help me what I am missing? because I have tried every possibility to compare the values but didn’t find any.
{%- for option in card_product.options_with_values -%}
{% if option.name == "Kleur" %}
<div class="circles">
{% assign title_words = settings.other_colors_name | newline_to_br %}
{% assign title_words = title_words | split: "<br />" %}
{%- for value in option.values -%}
{% if forloop.first %}
{% for word in title_words -%}
{% assign title_word = word | split: "-" %}
{% if title_word[0] == value %}
<div class="circle" style="background-color: {{ title_word.last }} "></div>
{% endif %}
{%- endfor %}
{% else %}
{% assign transalteValue = forloop.index | times: 10 %}
<div class="circle" style="background-color: {{ value | remove: " " }}; transform: translateX(-{{ transalteValue }}px); z-index: 2;"></div>
{% endif %}
{%- endfor -%}
</div>
{% endif %}
{%- endfor -%}
Thanks