AND Filter Logic for Property Groups + Variant Color in Search
Description
Highlights
About the Extension
Smarter Filters. Better Search. Fewer Mis-clicks.
Shopware's default property filter uses OR logic — select "Red" and "Blue" and you get products that are either red or blue. GreatPropertyAndFilter lets you switch any property group to AND logic, so customers who select "Red" and "Blue" only see products that genuinely have both attributes. No code changes. No template overrides. Just one custom field per property group.
On top of that, the plugin surfaces variant color information right inside the search suggest dropdown and the search results page — so customers see the available color variants at a glance, before they even click on a product.
Why This Plugin?
- AND filter logic per property group — The default Shopware filter is always OR. With this plugin you can switch individual groups (e.g. Material, Features, Certifications) to AND, so only products matching every selected option are shown.
- Mixed AND / OR in one request — Groups without the AND flag keep their default OR behavior. You can have AND groups and OR groups active at the same time in the same listing — they combine naturally.
- Variant color swatches in search suggest — The live search dropdown now shows small color circles next to each product, pulled from the product's variant options. Customers identify the right variant instantly.
- Variant color swatches on the search results page — The same color display appears on the full search results listing (frontend.search.page), keeping the experience consistent.
- Configurable per property group via Custom Field — No global switch that affects everything. Each property group has its own "Filter Logic" custom field (OR / AND) that you set once in the admin.
Features at a Glance
- AND filter logic for property groups, configurable individually
- Mixed AND + OR mode: different groups can use different logic simultaneously
- Variant color swatches in the search suggest dropdown
- Variant color swatches on the search results page (frontend.search.page)
- Hex color codes used when available, with graceful fallback
- Filter Logic custom field added to every property group in the admin
- No impact on listing performance — only active filters are patched
- Compatible with Shopware 6.6
How It Works
AND Filter Logic
The plugin subscribes to Shopware's ProductListingCollectFilterEvent. When a customer applies a property filter, the plugin checks whether the relevant property group has the great_property_filter_logic custom field set to AND. If it does, the standard EqualsAnyFilter (OR) is replaced with a MultiFilter AND, requiring every selected option to be present on the product. Groups without the AND flag are left completely untouched.
Variant Color in Search
The plugin extends Shopware's search suggest template and product card template. Color variations are detected by checking the variation group name for "color", "colour" or "farbe" (German). The corresponding hex code is read directly from the product option's colorHexCode field. If no hex code is available, the color name is used as a CSS color value fallback.
Configuration
After installing and activating the plugin:
- Go to Catalogues > Properties in the Shopware Administration.
- Open the property group you want to switch to AND logic (e.g. "Material", "Features").
- Scroll to the GreatPropertyAndFilter custom field section.
- Set Filter Logic to AND.
- Save. The change takes effect immediately for all listings using that property group.
Groups left at the default OR value behave exactly as before — nothing changes for them.
Technical Details
- Compatible with Shopware 6.6
- Event-subscriber architecture — zero performance impact when no AND groups are active
- Custom field set great_property_filter added to property_group entity via database migration
- Storefront templates extended via Twig inheritance (no core file overrides)
- Clean uninstall: the custom field set and all field data are removed when uninstalling with the "Delete data" option
Support & Updates
We provide regular updates to ensure compatibility with the latest Shopware versions. If you encounter any issues, simply open a support ticket through the Shopware Store.
Details
- Available: English, German
- Latest update: 29 May 2026
- Publication date: 12 June 2026
- Version: 1.66.02
- Category: Search & Filter
Resources
Reviews (0)
About the Extension Partner
great2gether
Partner Status
-
Shopware
Bronze Partner -
Shopware
Extension Partner
Details
- Ø-Rating: 5
- Partner since: 2015
- Extensions: 26
- Certifications: 1
Support
- Based in: Germany
- Speaks: German, English
- Response time: Quickly