# Umsatzsteuer-Id als Array in Mail-Bestätigung?

**URL:** https://forum.shopware.com/t/umsatzsteuer-id-als-array-in-mail-bestaetigung/104207
**Category:** Shopware 6 (German)
**Created:** [6. Juni 2024 um 08:09 UTC](https://forum.shopware.com/t/umsatzsteuer-id-als-array-in-mail-bestaetigung/104207 "2024-06-06T08:09:34Z")
**Posts on this page:** 4
**Page:** 1

<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: [6. Juni 2024 um 08:09 UTC](https://forum.shopware.com/t/umsatzsteuer-id-als-array-in-mail-bestaetigung/104207/1 "2024-06-06T08:09:34Z")

</div>

Bei SW 6.5.8.9 ist mir bei der Bestellbestätigung aufgefallen, dass die Umsatzsteuer-Id als Array ausgegeben wird.

Kopiert man die Variable, die rechts angezeigt wird

```auto
{{ order.orderCustomer.vatIds }}

```

bekommt man Array in der Mail-Bestätigung angezeigt.

Wieso ist das so? Die Umsatzsteuer-Id kann man ja nur einmal bei der Registrierung angeben!?

---

<div class="post-metadata">

### Author: ![Anotherone](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Anotherone](https://forum.shopware.com/u/Anotherone)
#### Post date: [6. Juni 2024 um 10:13 UTC](https://forum.shopware.com/t/umsatzsteuer-id-als-array-in-mail-bestaetigung/104207/2 "2024-06-06T10:13:35Z")

</div>

Ganz klar ist mir das auch nicht, das Id **s** zeigt aber schon Mehrzahl an. Ist anscheinend ein JSON-Feld. Funktioniert ein

```auto
{{ order.orderCustomer.vatIds.first }}

```

---

<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: [6. Juni 2024 um 10:17 UTC](https://forum.shopware.com/t/umsatzsteuer-id-als-array-in-mail-bestaetigung/104207/3 "2024-06-06T10:17:38Z")

</div>

Keine Ahnung wie man darauf gekommen ist. Ich habe jetzt …

> {{ order.orderCustomer.vatIds[0] }}

---

<div class="post-metadata">

### Author: ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)
#### Post date: [6. Juni 2024 um 10:23 UTC](https://forum.shopware.com/t/umsatzsteuer-id-als-array-in-mail-bestaetigung/104207/4 "2024-06-06T10:23:12Z")

</div>

Das sollte „besser“ sein: [join - Documentation - Twig - The flexible, fast, and secure PHP template engine](https://twig.symfony.com/doc/3.x/filters/join.html)

Viele Grüße
