# eMail Template - bestimmte Variablen verhindern Mail Versand

**URL:** <https://forum.shopware.com/t/email-template-bestimmte-variablen-verhindern-mail-versand/104299>\
**Category:** Shopware 6 (German)\
**Created:** [16. Juni 2024 um 17:02 UTC](https://forum.shopware.com/t/email-template-bestimmte-variablen-verhindern-mail-versand/104299 "2024-06-16T17:02:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moondog](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Moondog](https://forum.shopware.com/u/Moondog)\
**Post date:** [16. Juni 2024 um 17:02 UTC](https://forum.shopware.com/t/email-template-bestimmte-variablen-verhindern-mail-versand/104299/1 "2024-06-16T17:02:16Z")

</div>

Hallo,  
ich würde gerne wissen, warum bestimmte Variablen nicht in allen eMail Templates funktionieren. Ich würde z.B, gerne im Template „Eintritt Bestellstatus: In Bearbeitung“ nochmals die bestellten Produkte ausgeben. Kopiere ich die Produkt-Tabelle aus der Bestellbestätigung, wird keine Mail versendet. Hinweise im Log gibt es nicht.  
Folgende Zeile funktioniert z.B. nicht im besagten Template: {{ order.price.totalPrice|currency(currencyIsoCode,decimals=order.totalRounding.decimals) }} - deaktiviert den Versand.  
Folgendes funktioniert: {{ order.price.totalprice }}

Weiß hier jemand evt .eine Lösung?

Beste Grüße!

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [17. Juni 2024 um 07:46 UTC](https://forum.shopware.com/t/email-template-bestimmte-variablen-verhindern-mail-versand/104299/2 "2024-06-17T07:46:45Z")

</div>

Ja zumindest in SW 6.5.x ist das mit den Variablen eine Katastrophe:

> [@Mail-Template, Mail-Vorschau - reinste Shopware Katastrophe](https://forum.shopware.com/t/mail-template-mail-vorschau-reinste-shopware-katastrophe/103599):
>
> Sorry, aber ich muss mir hier doch mal etwas Luft machen, denn so geht das nicht. Das Bearbeiten von Mail-Template mit der Mail-Vorschau ist eine Katastrophe und hat nichts mit den Shopware Zitaten wie „maximaler Flexibilität” zu tun. Seit Tagen sitze ich daran die Mail-Templates anzupassen, also keine 0-8-15 Vorlagen, sondern nach Kundenwusch angepasste Mails. Mich wundert, dass diese Thema hier im Forum kaum behandelt wird. Scheinen wohl wenig Wert darauf zu legen. Wie dem auch sei, da geht …

Bei uns ist das aber durchaus so im Einsatz:

```auto
{% set currencyIsoCode = order.currency.isoCode %}
{{ order.price.totalPrice|currency(currencyIsoCode) }}

```

---

<div class="post-metadata">

**Author:** ![Moondog](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Moondog](https://forum.shopware.com/u/Moondog)\
**Post date:** [18. Juni 2024 um 17:55 UTC](https://forum.shopware.com/t/email-template-bestimmte-variablen-verhindern-mail-versand/104299/3 "2024-06-18T17:55:51Z")

</div>

> [@R4M](#):
>
> ```auto
> {% set currencyIsoCode = order.currency.isoCode %}
> {{ order.price.totalPrice|currency(currencyIsoCode) }}
> 
> ```

Vielen Dank für die Rückmeldung! Dann bin ich wohl nicht allein mit dem Problem 🙂

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [19. Juni 2024 um 06:06 UTC](https://forum.shopware.com/t/email-template-bestimmte-variablen-verhindern-mail-versand/104299/4 "2024-06-19T06:06:52Z")

</div>

> [@Moondog](#):
>
> Dann bin ich wohl nicht allein mit dem Problem

Ne auf Fälle nicht. Habe mich damit auch schon stundenlang herum schlagen müssen.
