Deutsch Demo shop Store

A form on the product page

There is no block here. When the page is called the plugin looks up the matching assignment - and when several match, a fixed order applies.

Three positions, three display modes

Both apply per sales channel, not per form.

Position

Below buy boxright next to the buy area, the factory setting
Below descriptionbelow the description text
Own tabas another tab next to description and reviews

Display mode

Collapsed buttona button opens the form, the factory setting
Directly visiblethe form stands there open
Collapsed linka text link instead of a button
Product
Enquiry
Below buy box
Product
Enquiry
Below description
Product
Enquiry
Own tab

The same product page three times: on the left below the buy box, in the middle below the description, on the right in a tab of its own. Exactly one of them applies.

The chosen combination lands as a class on the form's wrapper. Whoever wants to adjust the look in the theme has a hook there, without overriding a template.

The assignment

It answers: which form, for which products, under what circumstances.

Form

Which form should appear.

Products

Either individual products, down to the variant, or a dynamic product group.

Rule

Optionally a rule from the Shopware rule builder. If it does not apply at that moment, the assignment drops out.

Priority

A number. It decides when several assignments match the same product.

When two assignments match

Exactly one always wins, and it does so in this order.

  1. 01 Active Inactive assignments do not even enter the count.
  2. 02 Rule applies If a rule is stored, it has to apply at the moment of the call.
  3. 03 Higher priority The bigger number wins.
  4. 04 On a tie The individual assignment beats the dynamic product group. If those match too, the most recently created one wins.

An assigned parent product covers the whole variant family. The lookup uses the product id and the parent id, so variants that are nowhere listed individually get the form as well.

An example from the demo shop

Two assignments, two different forms, and the priority decides.

Product Form Kind Priority
SWDEMO10005 and all variants Request product advice individual products 100
SWDEMO10001 Contact form dynamic product group 10

The product group covers both articles. On SWDEMO10005 the advice form still wins, because 100 is greater than 10.

The three places

Product page

Three positions, three display modes, one assignment.

Order

In the customer account, with the order number as context.