Set filter foreach categories

main-collection-product-grid.liquid
line 110
 {% render 'facets',
            results: collection,
            enable_filtering: section.settings.enable_filtering,
            enable_sorting: section.settings.enable_sorting,
            filter_type: section.settings.filter_type,
            paginate: paginate,
            attr: section.settings.collections_list,
          %}

line 340 
   {
      "type": "text",
      "id": "collections_list",
      "default": "Category,Farben,Price",
      "label": "Filters List Attr",
    },

facets.liquid
line 132 
 {% assign allowed_filters = attr | split: ","  %}
  {% case filter.type %}
   {% when 'boolean', 'list' %}  
  {% if allowed_filters contains filter.label %}
     <details>___ </details>
   {% endif %}
   {% endcase %}
line 306 
    {% when 'price_range' %} 
   {% if allowed_filters contains filter.label %}
 <details> _____ </details>
 {% endif %}

Leave a Reply

Your email address will not be published. Required fields are marked *