# Bestellbestätigung E-Mail Vorlage für Custom Products Artikel anpassen?

**URL:** <https://forum.shopware.com/t/bestellbestatigung-e-mail-vorlage-fur-custom-products-artikel-anpassen/61072>\
**Category:** Plugins\
**Tags:** offizielle-shopware-\
**Created:** [14. August 2019 um 10:09 UTC](https://forum.shopware.com/t/bestellbestatigung-e-mail-vorlage-fur-custom-products-artikel-anpassen/61072 "2019-08-14T10:09:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lisa88](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@Lisa88](https://forum.shopware.com/u/Lisa88)\
**Post date:** [14. August 2019 um 10:09 UTC](https://forum.shopware.com/t/bestellbestatigung-e-mail-vorlage-fur-custom-products-artikel-anpassen/61072/1 "2019-08-14T10:09:57Z")

</div>

Liebe Community,

ich habe das Custom products Plugin im Einsatz und bin mit der Darstellung in der Bestellbestätigung gar nicht zufrieden. Diese wirkt sehr unübersichtlich und lang.&nbsp;Gibt es eine Möglichkeit, die Bestellbestätigung so anzupassen, dass nur ausgewählte Informationen zu den Custom products Artikeln angezeigt werden?&nbsp;

Anbei meine Template Variablen, die ich verwendet habe:

Plaintext:

```
{foreach item=details key=position from=$sOrderDetails} 
Artikel	Anzahl	Stückpreis	Summe
{if $details.image.src.0}{else} {/if}	{$details.quantity|fill:6}	{$details.price|padding:8}{$sCurrency}	{$details.amount|padding:8} {$sCurrency}
{$details.articlename|wordwrap:80|indent:4}{/foreach}

```

Optisches Ergebnis:

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/4/42dd80906444c449c41efd9fb772aa12649b895b.png)

&nbsp;

HTML:

```
{foreach item=details key=position from=$sOrderDetails} 
	
		
			Artikel
			Anzahl
			Stückpreis
			Summe
		
		
			{if $details.image.src.0}{else} {/if}
			{$details.quantity|fill:6}
			{$details.price|padding:8}{$sCurrency}
			{$details.amount|padding:8} {$sCurrency}
		
		
			{$details.articlename|wordwrap:80|indent:4}
		
    {/foreach}

```

Optisches Ergebnis:

&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/9/929cdacda84bcfd7a96e31c423dcd973c69ef7d5.png)

Es ist wirklich sehr verwirrend. Idealerweise sollte das ganze ungefähr so angepasst werden:&nbsp;

&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/c/c7f3efa8125c7ab9444793e1e0633096b9a3fbb0.png)

&nbsp;

Ich freue mich über jeden Tipp.

&nbsp;

Besten Dank im Voraus & viele Grüße,

Lisa

---

<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:** [14. August 2019 um 10:23 UTC](https://forum.shopware.com/t/bestellbestatigung-e-mail-vorlage-fur-custom-products-artikel-anpassen/61072/2 "2019-08-14T10:23:27Z")

</div>

Die Darstellung ist allgemein etwas unglücklich eingestellt, das hat mit dem Plugin jetzt nicht ganz so viel tun tun. Im Plaintext macht so z.B. diese Abfrage

```
{if $details.image.src.0}{else} {/if}	

```

überhaupt keinen Sinn. Da hier keine Bilder zu sehen sind, weg damit. Zudem wird die erste Zeile

```
Artikel	Anzahl	Stückpreis	Summe

```

eigentlich über der foreach Schleife gesetzt. Also in etwa so:

```
Pos. Art.Nr. Beschreibung Menge Preis Summe
{foreach item=details key=position from=$sOrderDetails}
{{$position+1}|fill:4} {$details.ordernumber|fill:20} {$details.articlename|fill:49} {$details.quantity|fill:6} {$details.price|padding:8|currency|unescape:"htmlall"} {$details.amount|padding:8|currency|unescape:"htmlall"}
{/foreach}

```

Ähnlich das ganze auch in HTML.

---

<div class="post-metadata">

**Author:** ![Lisa88](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@Lisa88](https://forum.shopware.com/u/Lisa88)\
**Post date:** [14. August 2019 um 10:48 UTC](https://forum.shopware.com/t/bestellbestatigung-e-mail-vorlage-fur-custom-products-artikel-anpassen/61072/3 "2019-08-14T10:48:23Z")

</div>

Danke! Also im Plaintext sieht das schonmal sehr viel besser aus!!&nbsp;

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/e/ee2d83585153327bba7d3d7a57b36308656b19a6.png)

&nbsp;

Nur im HTML komme ich damit leider nicht weit, das sieht jetzt so aus:

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/7/77bb01017c8915f32b2d8957f2d922b4bf805c0d.png)

---

<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:** [14. August 2019 um 10:51 UTC](https://forum.shopware.com/t/bestellbestatigung-e-mail-vorlage-fur-custom-products-artikel-anpassen/61072/4 "2019-08-14T10:51:47Z")

</div>

Ja, mein Beispiel war auch nur aus der Plainversion. Da fehlt ja jetzt auch die komplette HTML-Formatierung. Die übliche Shopware Version für HTML sieht so aus:

```
                    Pos.
                    Artikel
                    Bezeichnung
                    Menge
                    Preis
                    Summe
                

                {foreach item=details key=position from=$sOrderDetails}
                
                    {$position+1|fill:4} 
                    {if $details.image.src.0 && $details.modus == 0}{else} {/if}
                    
                      {$details.articlename|wordwrap:80|indent:4}
                      Artikel-Nr: {$details.ordernumber|fill:20}
                    
                    {$details.quantity|fill:6}
                    {$details.price|padding:8|currency}
                    {$details.amount|padding:8|currency}
                
                {/foreach}

```

Kann man so machen, muss man aber nicht 🙂

&nbsp;
