Filter werden für Katalog --> Eigenschaften zur Verfügung gestellt nicht für Custom Fields.
Du kannst dann in deinem Theme filter-panel.html.twig überschreiben:
{% sw_extends ‘@parent/storefront/component/listing/filter-panel.html.twig’ %}
{% block component_filter_panel %}
{{parent()}}
{% endblock %}
{% block component_filter_panel_item_properties %}
{# @var listing \Shopware\Core\Framework\DataAbstractionLayer\Search\EntitySearchResult #}
{# {{ dump(listing.aggregations.get(‘properties’)) }}#}
{% if listing.aggregations.get(‘properties’) %}
{% set properties = listing.aggregations.get(‘properties’) %}
{% for property in properties.entities %}
{% if property.name == “Geschlecht” %}
{% sw_include ‘@parent/storefront/component/listing/filter/filter-property-select.html.twig’ with {
elements: property.options,
sidebar: sidebar,
name: ‘properties’,
displayName: property.translated.name,
displayType: property.displayType,
pluginSelector: ‘filter-property-select’
} %}
{% endif %}
{% endfor %}
{% for property in properties.entities %}
{% if property.name == “Sortiment” %}
{% sw_include ‘@parent/storefront/component/listing/filter/filter-property-select.html.twig’ with {
elements: property.options,
sidebar: sidebar,
name: ‘properties’,
displayName: property.translated.name,
displayType: property.displayType,
pluginSelector: ‘filter-property-select’
} %}
{% endif %}
{% endfor %}
{% for property in properties.entities %}
{% if property.name == “Marke” %}
{% sw_include ‘@parent/storefront/component/listing/filter/filter-property-select.html.twig’ with {
elements: property.options,
sidebar: sidebar,
name: ‘properties’,
displayName: property.translated.name,
displayType: property.displayType,
pluginSelector: ‘filter-property-select’
} %}
{% endif %}
{% endfor %}
{% for property in properties.entities %}
{% if property.name == “Material” %}
{% sw_include ‘@parent/storefront/component/listing/filter/filter-property-select.html.twig’ with {
elements: property.options,
sidebar: sidebar,
name: ‘properties’,
displayName: property.translated.name,
displayType: property.displayType,
pluginSelector: ‘filter-property-select’
} %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
{% block component_filter_panel_item_manufacturer %}{% endblock %}
{% block component_filter_panel_item_price %}{% endblock %}
{% block component_filter_panel_item_rating %}{% endblock %}
{% block component_filter_panel_item_shipping_free %}{% endblock %}