Skip to main content Skip to search Skip to main navigation
Diese Seite ist auch auf Deutsch verfügbar.
great2gether

AND Filter Logic for Property Groups + Variant Color in Search

Rating: no rating ( write a review )
Downloads: <10

Description

Highlights

  • - Switch any property group from OR to AND logic — no code changes needed
  • - Mixed mode: AND and OR groups work side by side in the same listing
  • - Variant color swatches displayed in the search suggest dropdown
  • - Variant color swatches on the search results page for instant recognition
  • - Per-group configuration via a simple custom field — works out of the box

Features

  • - AND filter logic per property group, individually configurable
  • - Mixed AND + OR filter mode in the same listing request
  • - Variant color swatches in the live search suggest dropdown
  • - Variant color swatches on the search results page (frontend.search.page)
  • - Hex color code support with graceful fallback to color name
  • - Filter Logic custom field added to every property group
  • - Only active filters are patched — zero overhead for OR-only setups
  • - Twig template inheritance — no core file overrides
  • - Clean uninstall removes all custom fields and data

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:

  1. Go to Catalogues > Properties in the Shopware Administration.
  2. Open the property group you want to switch to AND logic (e.g. "Material", "Features").
  3. Scroll to the GreatPropertyAndFilter custom field section.
  4. Set Filter Logic to AND.
  5. 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)

Write a review

If you downloaded this extension you can write a review in the Shopware Account.

Write a review

About the Extension Partner

Partner Status

  • Shopware Bronze Partner Shopware
    Bronze Partner
  • Shopware Extension Partner Shopware
    Extension Partner

Details

  • Ø-Rating: 5

    Average rating of 5 out of 5 stars

  • Partner since: 2015
  • Extensions: 26
  • Certifications: 1

Support

  • Based in: Germany
  • Speaks: German, English
  • Response time: Quickly
Shopware 6 certified This Extension Partner has been certified by our Academy for Shopware 6.