# Zusatzfeld wird nicht im Frontend angezeit

**URL:** <https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495>\
**Category:** Shopware 6 (German)\
**Created:** [31. März 2024 um 16:41 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495 "2024-03-31T16:41:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![f.michl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/f.michl/32/25862_2.png) [@f.michl](https://forum.shopware.com/u/f.michl)\
**Post date:** [31. März 2024 um 16:41 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495/1 "2024-03-31T16:41:49Z")

</div>

Hallo zusammen,

meine description.twig sieht so aus:

 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/e/c/ec992aa37e769ea53c1200a3c31b6890c155d473.png)

Aber egal, was ich versuche, es wird im Frontend immer nur eine 0 angezeigt:

 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/5/a/5ad2120da683d06193b59662cabd6352b10c9f26.png)

Das Zusatzfeld sollte eine URL sein, was kann im Code falsch sein?

LG Flo

---

<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. April 2024 um 18:24 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495/2 "2024-04-01T18:24:08Z")

</div>

Hallo,

erst einmal fehlt ganz am Ende des Codes ein **%}**. Darüber hinaus kommt es auch darauf an, ob ein Produktseiten-Layout zugewiesen wurde oder nicht (ab Shopware 6.6 gibt es das verwendete Template nämlich nicht mehr, siehe: [shopware/src/Storefront/Resources/views/storefront/page/product-detail/description.html.twig at trunk · shopware/shopware · GitHub](https://github.com/shopware/shopware/blob/trunk/src/Storefront/Resources/views/storefront/page/product-detail/description.html.twig#L1) ).

Was zeigt denn ein {{ dump() }} an?

Ein Shopware-Beispiel findet man hier: [Add Custom Field in the Storefront | Shopware Documentation](https://developer.shopware.com/docs/guides/plugins/plugins/storefront/using-custom-fields-storefront.html#storefront-usage-of-custom-fields) .

Vielleicht liegt es auch an dem Bindestrich im Namen?

Grüße  
Sebastian

---

<div class="post-metadata">

**Author:** ![f.michl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/f.michl/32/25862_2.png) [@f.michl](https://forum.shopware.com/u/f.michl)\
**Post date:** [2. April 2024 um 10:09 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495/3 "2024-04-02T10:09:27Z")

</div>

Hi Sebastian,

danke für deine Antwort. Ich habe das mittlerweile in die buy-widget.html.twig eingebaut, funktioniert dort aber auch nicht:  
 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/5/6/567a03472db18d53ecae0fcc39177b433473a09b.png)

Anstatt der URL wird trotzdem eine „0“ ausgeben.  
Ich denke, an dem technischen Name wird es nicht liegen weil - ich habe ein Plugin installiert, in dem man Zusatzfelder in neuen Tabs anzeigen lassen kann in der Detail-Ansicht- und wenn ich dort das besagte Zusatzfeld auswähle:  
 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/c/7/c72496912c01b1a0790db65885ced6645e38c59d.png)

Dann wird die URL im Frontend ausgegeben:  
 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/a/8/a83af403428194bd450e69bae5501d9474e2c40e.png)

Aber genau diese URL brauch ich halt in meinem a-Tag oben 🙂

LG Flo

---

<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:** [2. April 2024 um 10:31 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495/4 "2024-04-02T10:31:44Z")

</div>

Vielleicht so:  
``  
{{ name\_vom\_feld|trans|raw }}

```auto
Also "trans" mit rein.
```

---

<div class="post-metadata">

**Author:** ![f.michl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/f.michl/32/25862_2.png) [@f.michl](https://forum.shopware.com/u/f.michl)\
**Post date:** [2. April 2024 um 10:46 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495/5 "2024-04-02T10:46:20Z")

</div>

leider nein 😕

 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/8/5/8574da2e4a51d705d646dd7e2d9ed5d433dba342.png)

 ![grafik](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/6/7/67ae4682ff5896589decf7209158242e55e85e30.png)

LG Flo

---

<div class="post-metadata">

**Author:** ![hw07](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/hw07/32/24044_2.png) [@hw07](https://forum.shopware.com/u/hw07)\
**Post date:** [18. Juni 2024 um 12:02 UTC](https://forum.shopware.com/t/zusatzfeld-wird-nicht-im-frontend-angezeit/103495/6 "2024-06-18T12:02:47Z")

</div>

Probier es mal mit:

{{ page.product.translated.customFields[`migration\_beftechSW5-beftechSW6\_product\_attr12´] }}

Gruß  
Frank
