Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Templates

What templates are in Cross Selling Pro, where they take effect and how to manage the template list.

Templates are the central building blocks of Cross Selling Pro. In a template you define once which products are recommended, how they are selected and sorted, and how many appear. You then pick that template wherever recommendations should show up. When you change the template, every place that uses it changes too.

A template on its own shows nothing in the shop. It only becomes visible once you embed it in a Shopping Experience or at a placement (for example in the cart).

Two kinds of templates

Kind
Purpose
Plan

Recommendation template

Controls one recommendation block: recommendation type, where the products come from, filters, weighting, count and button.

from plan Basic (some types and features only in higher plans)

Bundle/set template

Groups several products that shoppers select next to a main product and add to the cart together.

from plan Expert

This page and the following sub-pages cover recommendation templates. Bundle/set templates have their own page.

Where recommendation templates take effect

One recommendation template can be in use in several places at once:

Place
How to embed the template
Plan

Shopping Experiences (product page, home page, category pages, custom pages)

Add a block from the “AI CrossSelling” category and choose the template in the element field “Recommendation template”

type and layout determine the plan

Off-canvas cart

Placements, sub-item “Offcanvas”, field “Recommendation template”

from plan Starter

Cart page

Placements, sub-item “Cart”, field “Recommendation template”

from plan Starter

Customer account

Placements, sub-item “Customer account”, field “Select recommendation template”

from plan Expert

As a fallback in another template

In the other template under “5. Display”, set “Fallback type” to “Other template”

same as the template itself

To fill up a bundle/set template

In the bundle/set template, card “Recommendations”

from plan Expert

The checkout interstitial page shows a Shopping Experience. Which templates run there is decided by the elements in that Shopping Experience.

It also works the other way round: a bundle/set template can be the source of a recommendation template. The recommendation block then shows the products of that bundle/set template.

The template list

In the Shopware Administration open Content → InsightSearch and then, in the sidebar, Delivery → Recommendation templates.

List of recommendation templates with name and type

The list shows for each template:

Column
Content

“Name”

The internal name. A click opens the template.

“Type”

The recommendation type in plain text, for example “Bestsellers”.

“Updated at”

When the template was last saved.

The menu at the end of each row offers “Edit” and “Delete”. To create a new template, use “Create template” at the top right.

If there is no template yet, you see “No templates yet”. The overview of the plugin dashboard then also offers the setup wizard.

Structure of a recommendation template

The template form is split into cards from top to bottom. The numbered sections follow the order in which InsightSearch calculates: first where the products come from, then the filters, then the order, and finally the display.

Card
What you set there
Details

“Quick start”

A “Preset” sets proven starting values for one use case.

“General”

Name, recommendation type, internal description

“1. Source”

Where the products come from, fixed products, reference product in the cart

“2. Filters”

Which products qualify at all, rule builder

“3. Weighting”

The order in which the remaining products appear

“4. Boosters”

Extra points for the same brand or category (expert mode only)

“5. Display”

Count, button action, fallback when there are too few results

“Preview”

Test the result of the template before it goes live (only after the first save)

Simple or detailed: the expert mode

At the top right of a template page you find the switch “Show expert mode”. Without it you see only the most important fields. With it you also see the rule builder, the fine-tuning of the weighting, the section “4. Boosters” and further switches and number fields.

The expert mode does not change the template, it only shows more fields. It is not saved and is off again the next time you open the template. Values you set in expert mode stay saved and keep working when the switch is off.

Three ways to your first template

  1. Setup wizard: In the plugin dashboard at the top right, “Setup wizard”. It creates several templates with simplified settings in one go and can assign templates to the cart.

  2. Preset: Create a new template and pick a “Preset” in the “Quick start” card, for example “Accessories (product page)” or “Bestsellers”. Every value can be changed afterwards.

  3. By hand: Create a new template and fill in the sections yourself. A new template starts with the type “Similar products (alternatives)”, “Limit” 6 and the button action “Add to cart”.

One template, many places

Because one template can be attached to many places, a clear approach pays off:

  • Meaningful names: The name is only visible in the Administration. Name the place and purpose, for example “PDP accessories” or “Cart add-ons”.

  • Use the description: In the “Description” field note where the template is embedded. This helps before deleting it or making larger changes.

  • One template per purpose: If you want to try something in one place, create a copy with a new name instead of changing a template that runs in many places.

  • Plan a fallback: Types that need order or visitor data deliver little in new shops at first. Under “5. Display”, set a fallback template, for example one with the type “Bestsellers”.

When does a change take effect?

Saved changes to a template apply from the next recommendation the shop requests. Cached Shopping Experience pages that use the template are discarded automatically when you save, so you do not need to clear the cache for this.

Changes to product data (price, stock, category) only take effect once InsightSearch has read in the product data again.

Read more

Creating recommendation templatesRecommendation typesBundle and set templatesPlacements

Last updated