Skip to content

Assignment

The assignment of a document determines in which sales channels, on which pages, for which customers and in which period it is shown. It is edited on a page of its own, Where ‘name’ shows, which opens from the list of the kind (Assign to pages and channels… in the menu of a row) or from the builder (Assign to pages and channels… in More actions).

The assignment applies to the kinds placed by assignment: headers, footers, banner sets, popups, notice bars, quick views, product page templates, product infos, cart and checkout, and tab bars. Menus, sections and library items are placed in another way. → Documents

For the product infos the assignment is part of the builder itself, on its tab Assignment, and Assign to pages and channels… opens the builder on that tab.

The top bar holds Back, which returns to the list or the builder the page was opened from, and Save. Nothing changes in the shop until the assignment is saved. When the page is left with unsaved changes, the same window opens as in the builders.

For a kind with several places the title names the place too, and the assignment belongs to that place only.

The page has the tab General and one tab per type of record the kind can be limited to, each with the number of its entries: Categories, Products, Manufacturers, Dynamic product groups, Properties, Tags and Landing pages. Which of them a kind offers depends on the kind.

The card Where holds:

  • Sales channels: the channels that show the document.
  • Devices: for the kinds of which every matching document is shown, the devices on which the document is shown.
  • Pages: the page types, in groups, each group with a box that selects the whole group. The kinds shown on one page type only, such as the product page templates, have no page choice.

Without a sales channel, a page or a device the document is shown nowhere, and the card says so: “Without a page, sales channel or device it shows nowhere.”

The card Who and when holds:

  • Who sees it: a rule of the Rule Builder. Without a rule the document is shown to everyone (Everyone); with a rule, customers the rule does not match receive the next matching document.
  • Shows from and Shows until: the time window. An empty field means No limit. The end has to be after the start.

A rule is evaluated when a page is opened. Conditions on the cart, the order or the time are not known at that moment. For a rule with such conditions the card shows a warning that starts with “Partly supported” when some of its conditions are known, and with “Not supported” when none of them is. A rule of the second kind is evaluated against the cart of the first visitor. For dates the time window should be used instead.

Each tab of a record type holds two lists in one table: Show when and Skip when.

  • Add to ‘Show when’ adds records whose pages show the document.
  • Add to ‘Skip when’ adds records whose pages never show it.
  • The menu of a row moves a record to the other list (Move to ‘Show when’, Move to ‘Skip when’) or removes it (Remove). The same actions apply to several selected rows.
  • The search field and the filter Show when and skip when narrow the table.

A type without entries does not limit where the document is shown.

  • Within one type, one entry is enough: a page of any of the categories in Show when shows the document.
  • Different types must all match: with categories and manufacturers both set, a page has to match one of the categories and one of the manufacturers.
  • Skip when always takes precedence: a page matching an entry of Skip when never shows the document, whatever else matches.
  • A category covers its subcategories, and a product covers its variants.

For the kinds of which the first matching document is shown, the default document is shown wherever no other document matches. It has no conditions of its own: its assignment page says “The default shows everywhere nothing else matches.” and its fields cannot be changed. Another document becomes the default with Make default on the list.

The screens Which header shows where, Which footer shows where, Which banners show where, Which popups show where, Which notice bars show where, Which tab bar shows where and Which one shows where (cart and checkout) show the result of the order and the assignments as a table: one row per sales channel, one column per page type.

A cell names the document the page receives. Where documents are shown only under conditions, the cell lists them with their conditions, a rule, a time window, or a number of chosen or skipped entries, followed by “otherwise: name” for the document shown in the remaining cases. A cell where no Nova document matches reads Shopware default: the shop shows the core’s own layout there.

The table leaves drafts out, so a document never published does not appear in it. Refresh in the side bar reads it again.

Which quick view a product gets shows the same table with the product page as its only column.

Which template a product gets and Which infos a product gets answer the question for one product. Their card Check a product has the fields Product, Variant and Sales channel. Variant appears when the chosen product has variants; left empty (As the shop opens it), the check takes the variant the product page opens in each channel, as Shopware picks it: the main variant set for listings, otherwise the variant that is available and cheapest among those the channel shows. The result then says Checked as the variant …. A main product with no variant in the channel is checked as itself. Sales channel offers the Storefront channels and is set first to the first channel, in the order of names, in which the product is visible.

Under the fields the screen shows the result for the selected channel, followed by every document of the kind in the order of its list. Each document has its number, a link to its builder and the reason why it is shown or not: a rule that limits it to some customers, a time window that is not open, a condition that leaves the product out, or, for the templates, a template above it that is shown first. A document never published is listed with “Draft — takes no part.” and does not count.

  • On Which template a product gets the result is Shows: name with the conditions that matched, or No Nova template, in which case Shopware’s product page is shown with the product’s own Shopping Experiences layout. A line under the list says whether the product’s own Shopping Experiences layout is shown in the block ‘Content from Shopping Experiences’ of the template.
  • On Which infos a product gets the result gives the number of infos the product gets (“The product gets n infos”) or reads No product info. Each info of the list also names its place on the product page and the way it is shown on each device.

For a product that is not visible in the selected channel, the screen adds “The product is not visible in this sales channel: customers there cannot open its page.”

In a channel whose theme is neither Nova nor built on it, the result is No Nova template or No product info, naming the channel’s theme; the list below still shows what the channel would get with Nova as its theme. → Product page builder