Color Filter Taste Theme Bug?

Hi there,

i want the colour filter checkboxes in the Taste theme to be coloured in the colour swatch of the variant. see attachement.

For this purpose, I have changed the file facets.liquid on a test basis to see if this works. I am using Taste Theme version 8.0.0. In line 168, I have inserted the following code.

{%- for product in results.products -%}
{%- for variant in product.variants -%}
{% for option in variant.options -%}
{% if option == value.value or variant.option1 == value.value or variant.option2 == value.value%}
{% assign hex = variant.metafields.color.swatch %}

<input
type=“checkbox”
name=“{{ value.param_name }}”
value=“{{ value.value }}”
id=“Filter-{{ filter.param_name | escape }}-{{ forloop.index }}”
style=“{% if filter.param_name contains ‘farbe’ %} background-color: {{ hex }} {% endif %}”
{% if value.active %}
checked
{% endif %}
{% if value.count == 0 and value.active == false %}
disabled
{% endif %}
>
{% break %}
{% endif %}
{%- endfor -%}

{%- endfor -%}
{%- endfor -%}

The problem is that option,option1 or option2 do only return a value some products and not for all, which means that the background colour for this checkbox remains white. See attachement. The products are all created the same and do not differ. So there is no real reason why there should be no option for this product - maybe someone can help.

regards steffen

SOLVED