create a collection filter

MehmetKarahan
New Member
1 0 0

Hello,

I cannot filter in the menu on the left in the collection pages. The whole collection is coming. How can I change it. The code is as follows. Only collections of the relevant page come.

 

{% if settings.show_sidebar_categories %}
<div class="filter-attribute-container filter-categories">
<label>{{ 'collections.sidebar.categories' | t }}</label>
<div class="list-group-item">
<div id="filter-group0">
{% for collection in collections limit:settings.category_count %}
{% unless collection.handle == 'frontpage' or collection.handle == 'all' %}
<a class="a-filter add-filter" href="{{ collection.url }}">{{ collection.title }} ({{ 'collections.general.items_with_count' | t: count: collection.all_products_count }})</a>
{% endunless %}
{% endfor %}
</div>
</div>
</div>
{% endif %}

0 Likes