Allow CMS Element and Section Visibility Based on Specific Categories
Currently, Shopware allows CMS elements and sections to be displayed conditionally using Rule Builder conditions. However, there is no suitable standard condition to control their visibility based on the currently viewed category.
It would be useful to introduce a condition that allows merchants to select specific categories and control the visibility of CMS elements and sections accordingly.
Ideally, this functionality should support:
- Category selection: Display CMS content only when a visitor is browsing one of the selected categories.
- Subcategory inclusion: Optionally include all subcategories of a selected parent category, regardless of hierarchy depth.
- Product detail pages: Optionally display CMS content on product detail pages when the currently viewed product belongs to one of the selected categories or their subcategories.
- Combination with existing rules: Allow category-based visibility to be combined with other Rule Builder conditions, such as “Date range”, to support temporary campaigns.
Use case:
A merchant wants to display a promotional banner on a specific category and all its subcategories, as well as on the product detail pages of products belonging to that category tree.
The banner should only be visible during a defined campaign period.
Currently, this requires manually assigning dedicated Shopping Experiences layouts to individual categories or implementing a custom extension.
Introducing category-based CMS visibility would allow merchants to manage targeted promotional content more efficiently without additional development or manual layout assignments.