Internal Order Email – Cart Upload Pro Shopware 6
From version 2.5.0: use
upload.downloadUrlinstead of a hand-built pathDo not assemble the link from the shop path yourself any more – use
{{ upload.downloadUrl }}. The plugin then always returns a link to the file's actual storage location, even if you later switch on private storage.Before
{{ rawUrl('frontend.home.page') }}uploads/final/{{ upload.qquuid }}/{{ upload.filename }}After
{{ upload.downloadUrl }}As long as private storage is switched off,
downloadUrlproduces exactly the same public path as before. Making the change is therefore risk-free and can be done at any time.
1. Add a new email template
Define it as follows:
| Field | Value |
|---|---|
| Type | Order confirmation |
| Description | Internal email with order data |
| Subject | Order data - {{ order.orderNumber }} |
| Sender | {{ salesChannel.name }} |
Mail text
Text
Order number: {{ order.orderNumber }}
{% for lineItem in order.nestedLineItems %}
{% if lineItem.extensions.uploads %}
Übertragene Daten<br/>
{% for upload in lineItem.extensions.uploads %}
{{ upload.filename }}
{{ upload.downloadUrl }}
{% endfor %}
{% endif %}
{% endfor %}HTML
<div style="font-family:arial; font-size:12px;">
Order number: {{ order.orderNumber }}<br>
<br>
<table border="0" style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">
{% for lineItem in order.nestedLineItems %}
{% if lineItem.extensions.uploads %}
<tr>
<td colspan='5'>
Übertragene Daten<br/>
<ul>
{% for upload in lineItem.extensions.uploads %}
<li><a href="{{ upload.downloadUrl }}" class="cart-item-label" target="_blank">{{ upload.filename }}</a></li>
{% endfor %}
</ul>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>2. Create a new flow in the Flow Builder
| Field | Value |
|---|---|
| Name | Internal Email |
| Active | enabled |
Flow
- Trigger → Order placement / Order / Receipt
- Add action (THEN)
- Select action → Send email
- Use different sender address: Default
- Recipient: Administrator or Other recipient
- Email template: Internal email with order data
Was this page helpful?
Support
Rented Plugins (Shopware Store)
For support with plugins rented from the Shopware Store, please open a support ticket in your Shopware account.
Create Shopware Ticket