# Welche Variablen bei E-Mail Templates

**URL:** <https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987>\
**Category:** Programmierung\
**Created:** [9. Januar 2021 um 09:23 UTC](https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987 "2021-01-09T09:23:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![frezno](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frezno/32/7801_2.png) [@frezno](https://forum.shopware.com/u/frezno)\
**Post date:** [9. Januar 2021 um 09:23 UTC](https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987/1 "2021-01-09T09:23:55Z")

</div>

Ich würde gerne versch. email-Templates bearbeiten/ändern.  
Gibt es irgendwo ein Aufstellung der möglichen Variablen, die dort verwendet werden können?  
also z.B.&nbsp;order.orderDateTime|date,&nbsp;lineItem.unitPrice|currency(currencyIsoCode, usw.  
aber wenn ich z.B. die gewählte Zahlungsart mit aufführen möchte, wie finde ich heraus, wie diese Variable heißt?

---

<div class="post-metadata">

**Author:** ![sschreier](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sschreier/32/23296_2.png) [@sschreier](https://forum.shopware.com/u/sschreier)\
**Post date:** [9. Januar 2021 um 15:15 UTC](https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987/2 "2021-01-09T15:15:33Z")

</div>

Hallo,

Moritz hat dazu schon ein Plugin geschrieben, siehe:&nbsp;[https://github.com/mnaczenski/MNLogMailVariables](https://github.com/mnaczenski/MNLogMailVariables)&nbsp;.

Grüße

Sebastian

---

<div class="post-metadata">

**Author:** ![frezno](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/frezno/32/7801_2.png) [@frezno](https://forum.shopware.com/u/frezno)\
**Post date:** [9. Januar 2021 um 16:11 UTC](https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987/3 "2021-01-09T16:11:54Z")

</div>

danke, @sschreier‍&nbsp;

wenn ich das richtig verstehe, logged das Plugin lediglich die Variablen, die verwendet/übertragen werden/wurden  
und nicht alle, die grundsätzlich zur Verfügung stehen würden.  
aber ich probiere es mal aus.

---

<div class="post-metadata">

**Author:** ![AlexBS](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@AlexBS](https://forum.shopware.com/u/AlexBS)\
**Post date:** [12. Januar 2021 um 15:22 UTC](https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987/4 "2021-01-12T15:22:26Z")

</div>

Schade, dass es für sowas wieder mal keine Dokumentation gibt&nbsp; ![Foot-in-Mouth](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/foot-in-mouth.png "Foot-in-Mouth")

---

<div class="post-metadata">

**Author:** ![jnuricumbo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/jnuricumbo/32/13321_2.png) [@jnuricumbo](https://forum.shopware.com/u/jnuricumbo)\
**Post date:** [13. Mai 2021 um 16:19 UTC](https://forum.shopware.com/t/welche-variablen-bei-e-mail-templates/71987/5 "2021-05-13T16:19:40Z")

</div>

Ich habe einen custome filter erstellt:  
[https://developer.shopware.com/docs/guides/plugins/plugins/administration/add-filter](https://developer.shopware.com/docs/guides/plugins/plugins/administration/add-filter)

Leider funktioniert nur auf admin Twig files. Wie kann ich das für Email Templates registrieren? genau wie order.orderDateTime|date, lineItem.unitPrice|currency(currencyIsoCode, usw.

das hier funktioniert nicht auf EmailTemplates  
{{ ‚swag-example.general.myCustomText‘|example }}

Vielen Dank
