Is the plugin active in the sales channel?
The Activate plugin switch in the plugin configuration applies per sales channel.
You need a rule from the Rule Builder and an item in the plugin. You set up both in the administration, without writing a line of code. This page shows which fields are required and what is preset.
After installing from the Shopware Store, the administration shows the new menu item Pseudo products under Catalogues. All items live there, each with its own rule.
The plugin configuration has a single switch: Activate plugin. It is on by default and can be switched off per sales channel. If it is off, the plugin adds nothing to the cart in that channel.
To try it without installing: Four items are set up in the demo shop. Put a product into the cart there and you will see the result of this guide. Open the demo shop
A rule consists of conditions joined by And or Or. It applies to the customer and their cart as they are at that moment.
RuleRule Builder
Transport insurance +10%
You will find the Rule Builder under Settings › Automation › Rule builder. For items in the cart, these conditions are especially useful:
If an item should be in every cart, the rule "Always valid (Default)", which Shopware creates on installation, is enough. The demo shop uses it.
For value thresholds: Use "Subtotal of goods (excl. discounts/fees)". The "Cart total (incl. shipping)" also counts shipping and the plugin's items, so a surcharge can switch its own rule off again.
Under Catalogues › Pseudo products › Add pseudo product. The internal name is required, plus either the title and number or the product, depending on the type.
General
Activeon
Internal nameTransport insurance AT/CH
Position1
Product typePseudo product
Removableoff
Maximum purchase per customeroff
Surcharge/discount
Type of surcharge/discountPercental
Surcharge/discount10%
Active is preset, Position is 1, Product type is Pseudo product. The internal name is required but only visible to you.
Title and number are required. The type of surcharge/discount is set to Percental. If you switch to Absolute, you enter gross or net and choose a tax rate, which is then required.
If you set the type to Shopware product, the Shopware Product tab is active. On this tab only the product is required. Product free of charge is off; the name in the checkout comes from the product.
The Basic Data tab has the Rules card. There you choose the rule from step 1 and the sales channels the item applies to. Both are required; without a rule you cannot save.
Everything else is optional and off when you create the item:
Under Settings › Automation › Rule builder you create a rule or use an existing one. It describes when the item should be added.
Under Catalogues › Pseudo products you click Add pseudo product and enter an internal name on the Basic Data tab.
Pseudo product with title, number and surcharge/discount, or Shopware product from the catalogue, free of charge if you like.
On the Basic Data tab, in the Rules card, you pick the rule and at least one sales channel.
After saving, go to the shop and put a product that matches the rule into the cart. The item is there right away.
The plugin checks the first seven points before it adds an item to the cart. The eighth is a trap with value thresholds.
The Activate plugin switch in the plugin configuration applies per sales channel.
An empty cart gets no item, even if the rule would apply.
Active must be on, and the sales channel must be selected on the Rules card.
Every condition counts; with And, all of them must be met at once. Check them for exactly this customer and this cart.
A removed item stays away for the running session. In a new session it comes back.
With Maximum purchase per customer the plugin counts previous orders. If nothing is left, the item is not added.
When orders are created or edited in the administration, no new items are added. Existing ones stay.
The cart total counts the item itself. A surcharge can switch its rule off that way; use the subtotal of goods instead.
Put a product into the cart in the demo shop and watch four items appear. Or try it free for 30 days in your own shop.