# Dropshipping

# Prerequisites

An order contains different products from different manufacturers, e.g. manufacturer A and manufacturer B.

# Task

When an order is placed, the manufacturers should each receive their own information about the order.

# Implementation

# Rulebuilder

Create one rule for each manufacturer in the Shopware RuleBuilder. Please note that the rule must be assigned the TYPE "ExportOnEvent".

RuleBuilder

# Export Profile

Create an export profile for the desired checkout event, e.g. "checkout.order.placed" with the desired template. If the event is of the TYPE "checkout.order.XYZ", the previously created filter rule can be selected here.

ExportProfile

Attention

Please note that the LineItems are filtered - i.e. in a mixed basket only the products from Manufacturer A are filtered and passed to the export template.

Use filter from action

If the export templates are identical for each manufacturer, do not select any filter rule here, but activate "Inherit filter from action" - then the rule defined in the actions will also be used to filter the line items. This saves unnecessary many export profiles that have to be created.

# Tasks

  • Edit or create a task and select the same event as in the export profile, e.g. "checkout.order.placed".
  • Select an action, e.g. "Email with attachment" and configure the fields for Manufacturer A and select the Rulebuilder rule "Manufacturer A" here.
  • Select another action, e.g. "e-mail with attachment" and configure the fields for manufacturer B and select the rule builder rule "manufacturer B" here.

Actions

TIP

The respective actions are now only executed if the corresponding rules apply. By activated inheritance in the export profile, the articles are filtered.