Answer the question
In order to leave comments, you need to log in
How to fix the problem of duplicate links in a project?
The code:
<label class="frt-checkbox-color {{ class }} " style="background: {{ colorMap[child.vars.value]|default('#808080') }};" title="{{ child.vars.label }}">
<input class="frt-checkbox-color__input" style="display: block !important;"
type="checkbox" onclick="{{ onClick }}" {% if child.vars.value is defined %} value="{{ child.vars.value }}"{% endif %}{% if child.vars.checked %} checked="checked"{% endif %} />
{% if child.vars.countOfFilterAttributes is same as(0) and child.vars.productsCount is defined and child.vars.productsCount >= 3 %}
<a class="frt-checkbox-color__title" href="{{ child.vars.filterUrl }}">
<span>{{ child.vars.value|capitalize }}</span>
</a>
{% else %}
<span class="frt-checkbox-color__title">{{ child.vars.value|capitalize }}</span>
{% endif %}
</label>
<label class="frt-checkbox-color " style="background: #A52A2A;" title="Brown">
<input class="frt-checkbox-color__input" style="display: block !important;"
type="checkbox" onclick="javascript:window.location .href='/bedroom-furniture/beds/sleigh-beds/filter-brown'; return false;" value="brown" />
<a class="frt-checkbox-color__title" href="/bedroom-furniture/beds/sleigh-beds/filter-brown">
<span>Brown</span>
</a>
</label>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question