# E-Mail-Vorlagen verfügbare Variablen in SW6?

**URL:** <https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667>\
**Category:** Administration\
**Created:** [15. Juni 2020 um 12:05 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667 "2020-06-15T12:05:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![develissimo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/develissimo/32/12974_2.png) [@develissimo](https://forum.shopware.com/u/develissimo)\
**Post date:** [15. Juni 2020 um 12:05 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/1 "2020-06-15T12:05:53Z")

</div>

Hallo Leute,

Thema “E-Mail-Vorlagen” in Shopware 6.x:

Email-Vorlagen wie kommt man zu einer Liste verfügbarer Variablen in SW6?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [15. Juni 2020 um 15:57 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/2 "2020-06-15T15:57:43Z")

</div>

Eine einfache Lösung gibt es da aktuell nicht. Was genau suchst du denn?

Im Prinzip kann man sich das aus dem Quellcode auslesen, wenn du mir sagst, was du brauchst, schau ich mal.

---

<div class="post-metadata">

**Author:** ![mluebcke](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mluebcke/32/19129_2.png) [@mluebcke](https://forum.shopware.com/u/mluebcke)\
**Post date:** [24. Juni 2020 um 07:31 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/3 "2020-06-24T07:31:48Z")

</div>

Ach das würde mich auch interessieren. Und zwar seh ich das Artikelbild nicht und würde es gern einbinden.

---

<div class="post-metadata">

**Author:** ![m23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/m23/32/13275_2.png) [@m23](https://forum.shopware.com/u/m23)\
**Post date:** [28. Oktober 2020 um 11:22 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/4 "2020-10-28T11:22:38Z")

</div>

Ja, das Artikelbild fehlt mir auch, ebenso die Möglichkeit, bei Vorkasse die Bankverbindung anzeigen zu lassen.

[https://forum.shopware.com/discussion/72623/e-mail-template-bestellbestaetigung-bei-vorkasse-bankdaten-anzeigen](https://forum.shopware.com/discussion/72623/e-mail-template-bestellbestaetigung-bei-vorkasse-bankdaten-anzeigen)  
[https://forum.shopware.com/discussion/72019/e-mail-template-bestellbestaetigung-produktbilder-einfuegen](https://forum.shopware.com/discussion/72019/e-mail-template-bestellbestaetigung-produktbilder-einfuegen)

&nbsp;

---

<div class="post-metadata">

**Author:** ![miking](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@miking](https://forum.shopware.com/u/miking)\
**Post date:** [1. November 2020 um 08:48 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/5 "2020-11-01T08:48:26Z")

</div>

ich suche konkret nach den Adressdaten (Strasse, PLZ, Wohnort) im Template “Customer registration”.

Zwar kann ich beispielsweise einfügen: {{&nbsp;customer.defaultBillingAddress.street }}, dieser Wert ist aber NULL (wie aus dem Logfile ersichtlich). Die Mail wird gar nicht verschickt, weil ein Error erzeugt wird.

&nbsp;

---

<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:** [1. November 2020 um 09:15 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/6 "2020-11-01T09:15:01Z")

</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:** ![miking](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@miking](https://forum.shopware.com/u/miking)\
**Post date:** [1. November 2020 um 10:08 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/7 "2020-11-01T10:08:58Z")

</div>

ah, super und danke für den Tipp!

so, ich sehe das was ich suche:&nbsp;

customer

…

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [addresses] =\> Array  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =\> Array  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (

…  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [street] =\> Mühlweg 39

wenn ich im Template folgendes einfüge {{ customer.addresses[0].street }} oder auch {{ customer.addresses.0.street}} bekomme ich wieder eine Error / keine Mail wird versandt.

Was mach ich falsch?

---

<div class="post-metadata">

**Author:** ![miking](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@miking](https://forum.shopware.com/u/miking)\
**Post date:** [3. November 2020 um 17:52 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/8 "2020-11-03T17:52:09Z")

</div>

Erster Erfolg - Adresse erscheint mit …

{% set address = customer.addresses.first %}

{{ address.street }}

{{ address.zipcode }} {{ address.city }}

&nbsp;

jetzt fehlt nur noch das Land. Hier ist nur die Referenz-ID vorhanden …

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [addresses] =\> Array  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [0] =\> Array  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [countryId] =\> b8f6397b898944eaa24c350bf5c1cdf7

Jemand eine Idee?

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [3. November 2020 um 18:25 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/9 "2020-11-03T18:25:02Z")

</div>

In welcher Mail willst du das denn ändern? Weil es ja bspw. in der Bestellbesätigung schon drin ist.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![miking](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@miking](https://forum.shopware.com/u/miking)\
**Post date:** [3. November 2020 um 18:53 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/10 "2020-11-03T18:53:34Z")

</div>

bei der Kundenregistrierung - also in der customer - Umgebung

Hier ist lediglich die countryID vorhanden (lt&nbsp;Dump:&nbsp;[countryId] =\> b8f6397b898944eaa24c350bf5c1cdf7)

In der Bestellbestätigung ist explicit das Land verfügbar&nbsp;&nbsp;{{ billingAddress.country.name }} …

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [3. November 2020 um 19:15 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/11 "2020-11-03T19:15:46Z")

</div>

Soweit ich das sehe, wird das hier nicht mit geladen:&nbsp;[NEXT-9714 - Merchant Registration · shopware/platform@dec0b22 · GitHub](https://github.com/shopware/platform/commit/dec0b2272f26219ecad36f7887b4c977d97224fd#diff-261b6c980aefb9d69668be961015b2966a7f60be21aec9d1c105461db808ea8fR48)

Wirst du also nicht so einfach hinbekommen

---

<div class="post-metadata">

**Author:** ![miking](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@miking](https://forum.shopware.com/u/miking)\
**Post date:** [3. November 2020 um 19:18 UTC](https://forum.shopware.com/t/e-mail-vorlagen-verfugbare-variablen-in-sw6/67667/12 "2020-11-03T19:18:52Z")

</div>

Vielen Dank für die Info - dann bleibt das Land erst mal weg 🙂  
Noch einen schönen Abend
