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

Empty Category Messages

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

Description

Highlights

  • - Custom HTML messages per category
  • - Image upload with flexible size and alignment
  • - Automatic inheritance to subcategories
  • - No template editing needed — all via custom fields
  • - XSS-protected and PHPStan Level 6 verified

Features

  • - Custom HTML messages per category
  • - Image upload via Shopware Media Manager
  • - Three image sizes: Small (150px), Medium (250px), Large (400px)
  • - Separate alignment for image and text
  • - Optional inheritance to subcategories
  • - Recursive inheritance up to 10 levels deep
  • - Custom CSS classes for individual styling
  • - Full multi-language support
  • - XSS protection via CSS class sanitization
  • - HTML sanitization via Shopware sw_sanitize
  • - 43 unit tests with PHPUnit 11
  • - PHPStan Level 6 static code analysis
  • - Efficient DB queries: One query per parent chain
  • - No template editing required
  • - Clean uninstallation with optional data retention

About the Extension

Why this plugin?

Empty categories are a common challenge in Shopware stores: seasonal assortment changes, temporarily sold-out product groups, or planned catalog expansions lead to categories without products. The default "No products found" message is unhelpful and can confuse customers.

With Empty Category Messages, you turn empty categories into informative pages with custom texts and images — directly via category settings, without touching a single template file.


Key Features

  • Custom HTML Messages: Write formatted texts for each empty category
  • Image Support: Choose images from the Media Manager in three sizes (small, medium, large)
  • Flexible Alignment: Align text and image independently — left, center, or right
  • Inheritance: Enable inheritance so subcategories automatically display the parent category's message — up to 10 levels deep
  • Custom CSS Classes: Add your own CSS classes to match your theme's styling
  • Multi-language: The message field supports all languages configured in your store


How It Works

After installation, you'll find a new section in category settings under "Custom Fields". There you configure:

  1. The message as HTML text
  2. Optionally an image with size and alignment
  3. Text alignment
  4. Optionally a CSS class
  5. Whether subcategories should inherit this message


Whenever a category contains no products, your custom message is displayed instead of the default notice.


Use Cases

  • Seasonal Assortments: "Our winter collection will be available again in October"
  • Coming Soon: "We're stocking this category — check back soon!"
  • Assortment Cleanup: "We've updated our range. Check out our alternatives" — with a link to other categories
  • B2B Stores: Customer-group-dependent messages using Rule Builder in combination with category assignments


Important Notes

  • The plugin overrides the Twig block element_product_listing_col_empty. Conflicts may occur if other plugins override the same block.
  • Inheritance is limited to 10 levels to prevent performance issues with deep category trees.
  • HTML content is sanitized via Shopware's sw_sanitize filter — unsafe tags are automatically removed.


Quality and Security

  • 43 unit tests with PHPUnit 11
  • PHPStan Level 6 — strict static analysis
  • XSS protection for CSS classes via whitelist regex
  • Efficient database queries: parent chain and media are each loaded in a single query


Documentation

Full documentation with installation guide, configuration examples, and styling tips is available in our online documentation.

Details

  • Available: English, German
  • Latest update: 17 April 2026
  • Publication date: 17 April 2026
  • Version: 1.0.2
  • Category: Shopping Experiences

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

Markus Michalski

Markus Michalski

Partner Status

  • Shopware Extension Partner Shopware
    Extension Partner

Details

  • Partner since: 2026
  • Extensions: 2

Support

  • Based in: Germany
  • Speaks: German, English
  • Response time: Very quickly