# Lieferdatum in E-Mailausgabe

**URL:** <https://forum.shopware.com/t/lieferdatum-in-e-mailausgabe/103175>\
**Category:** Shopware 6 (German)\
**Tags:** administration, programming, templates--design\
**Created:** [1. März 2024 um 10:42 UTC](https://forum.shopware.com/t/lieferdatum-in-e-mailausgabe/103175 "2024-03-01T10:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinnedha](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sinnedha](https://forum.shopware.com/u/sinnedha)\
**Post date:** [1. März 2024 um 10:42 UTC](https://forum.shopware.com/t/lieferdatum-in-e-mailausgabe/103175/1 "2024-03-01T10:42:17Z")

</div>

Hallo,

ich habe das Problem das wir die Artikel als Vorbesteller zu einem fixen Datum anbieten. Diese Datum wurde bisher im Warenkorb und in der Bestellbestätigung per E-Mail ausgegeben. Dies funktioniert so nun nicht mehr und ich weiß nicht wieso.

Ausgabe im E-Mail Template:

```auto
{% if nestedItem.payload.customFields is defined and nestedItem.payload.customFields.free1 is defined %}
                                        <p style="font-weight: bold;">Voraussichtliche Lieferung ab dem {{ nestedItem.payload.customFields.free1 }}</p>
                                    {% else %}
                                        <p style="color: #1baa3a">sofort Verfügbar</p>
                                    {% endif %}

```

Wir „füllen“ quasi im Backend per import das Freifeld1 mit dem Datum und dieses gibt er nun nicht mehr aus.

Übergabe von ERP in Shopware  
 ![Bildschirmfoto 2024-03-01 um 10.26.48](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/3/5/353fb53750626d0321c69e406176cac61da48aa0.png)

Shopware Backend  
 ![Bildschirmfoto 2024-03-01 um 10.27.42](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/a/5/a50d65a7325ab42ff79318059d4cb917a6cd8da3.png)

Vielleicht kann mir jemand helfen, würde mich sehr freuen.

Viele Grüße  
Dennis

---

<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:** [1. März 2024 um 10:52 UTC](https://forum.shopware.com/t/lieferdatum-in-e-mailausgabe/103175/2 "2024-03-01T10:52:51Z")

</div>

Ich hätte vermutlich nur

```auto
{% if nestedItem.payload.customFields.free1 %}

```

geschrieben.

---

<div class="post-metadata">

**Author:** ![sinnedha](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@sinnedha](https://forum.shopware.com/u/sinnedha)\
**Post date:** [18. März 2024 um 14:17 UTC](https://forum.shopware.com/t/lieferdatum-in-e-mailausgabe/103175/3 "2024-03-18T14:17:09Z")

</div>

Danke dir. Also lautet die Zeile so:

```auto
{% if nestedItem.payload.customFields.free1 %}
                                        <p style="font-weight: bold;">Voraussichtliche Lieferung ab dem {{ nestedItem.payload.customFields.free1 }}</p>
                                    {% else %}
                                        <p style="color: #1baa3a">sofort Verfügbar</p>
                                    {% endif %}

```

? 🙂
