Note: If you use Shopware WMS powered by Pickware, you can skip this step. When Shopware WMS powered by Pickware was installed, your email template was already automatically adjusted and extended with the corresponding tracking code for shipment tracking.
Since the shipping adapters store the ident codes of the created shipping labels in Shopware, these can automatically be integrated into a shipping confirmation email. To do this, you first need to prepare the email template for the desired order status. In our example, we use the email for the status Complete delivered:
Open the corresponding template via Settings → Email templates → Status emails → Order status → Complete delivered.
In the Plaintext tab, insert the text below for the respective shipping provider.
In the HTML tab, insert the text below for the respective shipping provider.
Save your changes via Save template.
If multiple shipping labels were generated for an order, all shipments can be tracked in parallel via this link.
Plaintext
Deutsche Post
https://www.deutschepost.de/sendung/simpleQueryResult.html?form.sendungsnummer={$sOrder.trackingcode}&form.einlieferungsdatum_tag={$smarty.now|date_format:"%d"}&form.einlieferungsdatum_monat={$smarty.now|date_format:"%m"}&form.einlieferungsdatum_jahr={$smarty.now|date_format:"%Y"}DHL
https://www.dhl.de/de/privatkunden/dhl-sendungsverfolgung.html?piececode={$sOrder.trackingcode}DPD
https://tracking.dpd.de/status/de_DE/parcel/{$sOrder.trackingcode}GLS
https://gls-group.eu/DE/de/paketverfolgung?match={$sOrder.trackingcode}Austrian Post
https://www.post.at/sv/sendungsdetails?snr={$sOrder.trackingcode}Swiss Post
https://service.post.ch/EasyTrack/submitParcelData.do?formattedParcelCodes={$sOrder.trackingcode}UPS
https://www.ups.com/track?loc=de_DE&tracknum={$sOrder.trackingcode|replace:',':'%0D%0A'}&requester=WT/trackdetails
HTML
Deutsche Post
<a href="https://www.deutschepost.de/sendung/simpleQueryResult.html?form.sendungsnummer={$sOrder.trackingcode}&form.einlieferungsdatum_tag={$smarty.now|date_format:'%d'}&form.einlieferungsdatum_monat={$smarty.now|date_format:'%m'}&form.einlieferungsdatum_jahr={$smarty.now|date_format:'%Y'}">https://www.deutschepost.de/sendung/simpleQueryResult.html?form.sendungsnummer={$sOrder.trackingcode}&form.einlieferungsdatum_tag={$smarty.now|date_format:"%d"}&form.einlieferungsdatum_monat={$smarty.now|date_format:"%m"}&form.einlieferungsdatum_jahr={$smarty.now|date_format:"%Y"}</a>DHL
<a href="https://www.dhl.de/de/privatkunden/dhl-sendungsverfolgung.html?piececode={$sOrder.trackingcode}">https://www.dhl.de/de/privatkunden/dhl-sendungsverfolgung.html?piececode={$sOrder.trackingcode}</a>DPD
<a href="https://tracking.dpd.de/status/de_DE/parcel/{$sOrder.trackingcode}">https://tracking.dpd.de/status/de_DE/parcel/{$sOrder.trackingcode}</a>GLS
<a href="https://gls-group.eu/DE/de/paketverfolgung?match={$sOrder.trackingcode}">https://gls-group.eu/DE/de/paketverfolgung?match={$sOrder.trackingcode}</a>Austrian Post
<a href="https://www.post.at/sv/sendungsdetails?snr={$sOrder.trackingcode}">https://www.post.at/sv/sendungsdetails?snr={$sOrder.trackingcode}</a>Swiss Post
<a href="https://service.post.ch/EasyTrack/submitParcelData.do?formattedParcelCodes={$sOrder.trackingcode}">https://service.post.ch/EasyTrack/submitParcelData.do?formattedParcelCodes={$sOrder.trackingcode}</a>UPS
<a href="https://www.ups.com/track?loc=de_DE&tracknum={$sOrder.trackingcode|replace:',':'%0D%0A'}&requester=WT/trackdetails">
https://www.ups.com/track?loc=de_DE&tracknum={$sOrder.trackingcode|replace:',':'%0D%0A'}&requester=WT/trackdetails
</a>
Sending the shipping confirmation
After you have generated a shipping label for an order, you can now create a shipping confirmation including a link to shipment tracking. To do this, set the order status to the previously chosen status of the email template, e.g. Complete delivered. This opens a window for sending the email, which must be confirmed by clicking Send email.
Note: The tracking URL of a shipping method configured via Settings → Shipping costs is not used for the email template described above. It is only displayed, for example, in the storefront of the shop.
