Email templates
The plugin ships with several email templates that can be customized in the Shopware administration.
Available templates
After installing the plugin, the following email templates are available:
1. Dropshipping Partner Delivery Note v2 (recommended)
Technical name:
huebert_dropshipping_sw6_dropshipping_partner_v2Usage: Default template for supplier notifications
Selection in plugin configuration: "Dropshipping Partner Delivery Note v2"
2. Dropshipping Partner Delivery Note (legacy)
Technical name:
huebert_dropshipping_sw6_dropshipping_partnerUsage: Older version, for compatibility with existing customizations
3. Dropshipping Partner Delivery Note mpXgastronomy
Technical name:
huebert_dropshipping_sw6_dropshipping_partner_mpxUsage: Specifically for shops using the mpXgastronomy plugin
4. Dropshipping Customer Delivery Status Note
Technical name:
huebert_dropshipping_sw6_dropshipping_delivery_statusUsage: Customer-facing notification about the delivery status
Customizing templates
Templates can be found and edited in the administration under: Settings > Content > Email templates
Search for the technical name or for "Dropshipping".
Available template variables
The following variables are available in all dropshipping email templates:
Order data (order)
order.orderNumber
Order number
10042
order.orderDate
Order date
2024-03-15 14:30:00
order.price.netPrice
Net total price
84.03
order.price.totalPrice
Gross total price
100.00
order.price.calculatedTaxes
Tax information (array)
–
order.lineItems
All order line items
–
Customer data (customer)
customer.firstName
First name
customer.lastName
Last name
customer.email
Email address
customer.customerNumber
Customer number
Delivery note data (deliveryNote)
The deliveryNote object contains the line items relevant for this specific supplier. Use deliveryNote.items in a loop to access each position.
Product data per line item (item)
item.label
Product name
"T-Shirt Blue XL"
item.quantity
Quantity
2
item.productNumber
Shopware product number
"SW10042"
item.productManufacturerNumber
Manufacturer number
"MNR-001"
item.variant
Variant information (array)
–
item.purchaseNetPrice
Purchase price (net)
84.03
item.supplier.translated.name
Supplier name
"Supplier Ltd"
item.cover.url
URL of the product cover image (optional)
–
Product cover image in the email
Since not every product has a cover image, a check should be performed before output:
For information on using the supplier name in the storefront (product page, cart, checkout, documents), see Using the supplier in the storefront.
Order confirmation email: Additional variables
The following variables are available in the standard Shopware order confirmation email and can be used for custom modifications.
Separate house number field (DHL integration)
When the DHL plugin uses a separate house number field, it can be output in the order confirmation as follows:
Shipping address:
Billing address:
Manufacturer number and quantity of a line item
Using the index n (zero-based), individual order positions can be accessed:
{{ order.lineItems.at(n).payload.manufacturerNumber|default('') }}
Manufacturer number of the item
{{ order.lineItems.at(n).quantity }}
Ordered quantity of the item
Example for the first line item (index 0):
Example: Simple email template
Subject
HTML content
Selecting a template
In the plugin settings you can define which template is used for all supplier notifications:
Settings > Plugins > Huebert Dropshipping > Email template
Select the desired template from the dropdown list.
Multilingual support
Email templates can be customized separately for each language. Shopware automatically sends the email in the language of the sales channel associated with the order.
Important notes
Always test template changes in test mode first to verify the output
The test mode in the plugin settings redirects all emails to a test address
The "v2" template is the recommended current version
After plugin updates, customized templates should be reviewed for new variables
Zuletzt aktualisiert