Rule-based media
Description
Highlights
About the Extension
With “Rule-based media”, a product shows different images as soon as a rule from the Shopware Rule Builder matches. At Christmas the product appears in a festive look, on Black Friday with the campaign image, in autumn in autumn colours. When the date range ends, the shop shows the standard images again. Nobody has to swap images on the day.
How it works
On the product tab “Rule-based media” you assign a rule and images to a product. The rule alone decides when the images appear. It combines Rule Builder conditions such as a date range, a sales channel and a customer group.
For recurring periods the plugin adds the rule condition “Annual date range”, for example “1 December to 26 December”. It applies every year; you do not enter a year. When first activated, the plugin creates four season rules for spring, summer, autumn and winter as templates.
The shop picks the images when it loads the product, based on the matching rules. Switching images writes nothing to the database and needs no cron job. The HTTP cache takes the date into account and serves the new images after midnight.
Three display modes
- Replaces standard images: The shop shows only the images of the assignment; the first one is the cover.
- Adds before standard images: The first image of the assignment becomes the cover, the standard images stay in the gallery.
- Adds after standard images: The images extend the gallery, the cover stays.
The images appear on the product page, in listings, in search, in product sliders, in cross-selling and in the Store API. By default, listings, search and sliders show only the cover.
For editors
- Priority by drag and drop when several rules match at the same time
- Variant assignments take precedence over parent product assignments
- Copy assignments from another product
- Preview: select rules and see cover and gallery as the shop would show them
- Notice in the media card once a product has rule-based images
- Separate permissions for viewing, editing, creating and deleting
For developers
A documented import gateway accepts assignments from ERP or PIM systems. The import never changes manual assignments. The documentation ships with the plugin.
Requirements
- Shopware 6.7, from version 6.7.1, self-hosted
- PHP 8.2 to 8.5
Details
- Available: English, German
- Latest update: 25 November 2026
- Version: 1.0.1
- Category: Detail Page
About the Extension Partner
Sharpness Solutions GmbH
Partner Status
-
Shopware
Extension Partner
Details
- Partner since: 2025
- Extensions: 1
Support
- Based in: Germany
- Speaks: German, English
- Response time: Very quickly