Merge pull request #27931 from marination/optimize-get-attribute-filters-hotfix

perf: Optimize get_attribute_filters (#26729)
This commit is contained in:
Marica
2021-10-27 13:31:58 +05:30
committed by GitHub
3 changed files with 29 additions and 38 deletions

View File

@@ -339,15 +339,15 @@
<div class="filter-options">
{% for attr_value in attribute.item_attribute_values %}
<div class="checkbox">
<label data-value="{{ attr_value }}">
<label>
<input type="checkbox"
class="product-filter attribute-filter"
id="{{attr_value.name}}"
id="{{ attr_value }}"
data-attribute-name="{{ attribute.name }}"
data-attribute-value="{{ attr_value.attribute_value }}"
data-attribute-value="{{ attr_value }}"
style="width: 14px !important"
{% if attr_value.checked %} checked {% endif %}>
<span class="label-area">{{ attr_value.attribute_value }}</span>
<span class="label-area">{{ attr_value }}</span>
</label>
</div>
{% endfor %}