Which template a product gets
Every product page gets at most one Nova template. The list of templates, their assignment and the check for one product are located on three screens of the section:
- Content → Nova → Product page → List of templates: the templates in the order the shop tries them.
- Content → Nova → Product page → Which template a product gets: the check for one product.
- Content → Nova → Product page → Import and export: templates as JSON files.
The list, the assignment page and the import work as for every document of Nova; this page describes what is specific to the product page. → Documents · Assignment
How the shop chooses the template
Section titled “How the shop chooses the template”For a product page, the shop goes through the assigned templates from the top of the list and takes the first published template whose conditions the product meets. The default template is placed last and, once published, applies to every product that no template above it applies to. A product without any matching published template keeps the product page of Shopware with its Shopping Experiences layout.
Templates apply only in sales channels whose theme is Nova or a theme built on it; a channel with another theme keeps the product page of Shopware.
A template whose assignment has a rule shows only to customers the rule fits; for the other customers the shop goes on to the next template. A template with a time window shows only within that window. Drafts that have never been published take no part.
The conditions of a template’s assignment may name the product’s:
- categories, including their parent categories;
- the product itself or its main product;
- manufacturer;
- dynamic product groups;
- properties and variant options;
- tags.
Each condition may include or exclude. Besides these conditions the assignment takes sales channels, a rule and a time window, as every assignment in Nova.
The list of templates
Section titled “The list of templates”Product page templates lists the templates with the columns Products, Channels and Who sees it. Products summarises the assignment: Every product, Every other product (the default template), the number of included and excluded entries (for example 3 conditions · 1 excluded, or Every product · 1 excluded for a template with exclusions only), or On no product yet. The order of the list determines which of the matching templates is chosen. It is changed with Move up and Move down in the row’s ”…” menu; the default template always stays last.
The default template
Section titled “The default template”The default template has fixed conditions: it is shown on every product that no other template applies to. Its assignment cannot be opened, and it cannot be deleted until another template is made the default. The shop’s first template becomes the default automatically.
When a template is deleted, its published versions are deleted with it; its products get the next matching template or their Shopping Experiences layout.
Check a product
Section titled “Check a product”Content → Nova → Product page → Which template a product gets shows the card Check a product. After a Product is chosen, and for a product with variants a Variant, the card shows for the chosen Sales channel which template a customer sees on the product page and why. The channel picker starts on the first channel (by name) the product is visible in, or on the first storefront channel if there is none. A channel once chosen stays when another product is picked.
The shop opens a product with variants on one of them, and the templates are matched on that variant. With Variant left empty (As the shop opens it) the card checks the variant the channel’s product page opens, picked as Shopware picks it: the main variant set for listings, otherwise the variant that is available and cheapest among those the channel shows. The card then says Checked as the variant …: the shop opens the product’s page on it in this sales channel. A main product with no variant in the channel is checked as itself.
In a channel whose theme is neither Nova nor built on it the result is No Nova template, with The sales channel uses the theme ’…’, not Nova: Shopware’s product page shows, with the product’s own Shopping Experiences layout. Where a template matches, the card adds With Nova as the channel’s theme, the template ’…’ would show., and the list below shows the verdicts as with Nova.
The result names the template (Shows: …) with the reason, for example the conditions that fit or The default template: it shows where nothing above matches. Below it, every template assigned in the channel is listed in the order of the list, each with its verdict:
| Verdict | Meaning |
|---|---|
| Matches and wins. | The template the product gets. |
| Only for some customers: … | The template matches, but its rule decides; for the other customers the list goes on. |
| Matches, but shows only …; not now. | The template matches, but its time window is not open. |
| Left out for this product — … | An excluded entry or a missing included type leaves the product out. |
| Draft — takes no part. | The template has never been published. |
| Would show if nothing above matched. | The default template below the one shown. |
| Would match too, but the template above comes first. | A template below the one shown whose conditions also fit. |
| Not reached, and would not match — … | A template below the one shown whose conditions do not fit. |
Without any matching template the result is No Nova template: Shopware’s product page shows, with the product’s own Shopping Experiences layout. For a product not visible in the chosen channel the card adds The product is not visible in this sales channel: customers there cannot open its page.
When a Nova template shows, the card also states whether the product’s own Shopping Experiences layout reaches the page. A layout of its own is one other than the channel’s default product layout. It shows only through the block Content from Shopping Experiences of the template, and the card says so where the template has no such block. A product without a layout of its own gets The product has no Shopping Experiences layout of its own, so the block ‘Content from Shopping Experiences’ shows nothing. → Blocks of the product page
The Nova tab of a product
Section titled “The Nova tab of a product”In Catalogues → Products → select product Nova adds the tab Nova after the Shopware tabs, for users with the right to view Nova. The tab holds two cards:
- Product infos: the product infos the product gets. → Product infos
- Nova template, marked read only: in one sentence which template renders the product’s page and why, for the channel chosen as in Check a product. Where the product’s visible channels get different answers, the sentence names the channel, for example Automatic in …: …. In a channel on another theme the sentence ends with — the sales channel uses the theme ’…’, not Nova. The link Change the assignment in Nova → opens the list of templates. The card is shown only for a product that has been saved, because the templates are matched on the saved product.