Introduction
P2Lab Advanced Layouts Assigner is a Shopware 6 plugin that lets you serve different CMS layouts for the same category, product or landing page based on Shopware’s rule builder. It is built for shops that want to vary their visual presentation across sales channels, customer groups, languages, currencies, dates, or any combination of those, without duplicating the category tree.
The problem
Section titled “The problem”Out of the box, Shopware binds one CMS layout to one category (or product, or landing page). That works as long as every visitor sees the same homepage and the same listing pages. As soon as you need:
- two sales channels sharing the same category tree but with different homepages,
- a different product page layout for B2B customers,
- a Black Friday homepage that auto-activates on a date range,
- a country-specific listing page driven by currency or language,
…the one-layout-per-category model stops fitting. You’d otherwise have to clone categories, manage assignments by hand, or hack the storefront templates.
How this plugin solves it
Section titled “How this plugin solves it”The plugin introduces a replacement step that runs after Shopware has loaded the base layout. The base layout (the one you assign normally to the category, product or landing page) is what the plugin then replaces at request time when a rule matches:
- The visitor opens a page. Shopware loads the base layout as usual.
- The plugin checks every layout that has rules assigned to it (under Shopping Experiences → Layout assignment → Rules tab).
- If a rule matches the current request, the plugin swaps the base layout for the alternative and renders it instead.
- If no rule matches, the base layout stays.
You decide which base layouts are eligible for replacement and which alternative page types can replace them, via plugin settings.
What it is not
Section titled “What it is not”- Not a layout builder. You still use Shopware’s Shopping Experiences to build layouts. This plugin only decides which one to show.
- Not a content rule engine. It doesn’t change individual blocks inside a layout. It swaps the whole CMS page.
- Not a duplicator. It does not clone categories or migrate assignments. It works alongside Shopware’s native CMS page assignment.
Who it is for
Section titled “Who it is for”- Shops with multiple sales channels that share a category tree but need different visuals per channel.
- B2B / mixed B2B+B2C setups that want a different product page layout for logged-in business customers.
- Marketing teams running scheduled / seasonal campaigns who want layouts to switch on a date without a deploy.
- Agencies delivering multi-tenant Shopware setups where the same instance powers several visual identities.
What you need
Section titled “What you need”- Shopware 6.7 (the plugin’s
composer.jsonconstrainsshopware/coreto>=6.7 <6.8) - The standard Shopware Storefront and Administration bundles (the plugin registers UI on both)
- Familiarity with Shopware’s rule builder — every layout assignment is driven by a rule