# Einbindung von Code für Shopware2Go Formular

**URL:** <https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413>\
**Category:** Allgemein\
**Created:** [11. Juni 2018 um 15:34 UTC](https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413 "2018-06-11T15:34:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![buchhenne](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@buchhenne](https://forum.shopware.com/u/buchhenne)\
**Post date:** [11. Juni 2018 um 15:34 UTC](https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413/1 "2018-06-11T15:34:02Z")

</div>

Hallo,  
Hat jemand schon erfolgreich Snippet Code von Shopware2Go zur Modifikation von Newsletteranmeldungs-/Abmeldungsformularen eingebunden ?  
A la&nbsp;

&nbsp;

Lt. Shopware2Go soll das in das&nbsp;body tag rein, aber ich kann das ja schlecht in /Frontend/CustomTemplate\index\index.tpl reinpacken ?  
Und wenn ich es als custom js mit in die Auslieferung des kompilierten JS mit reinnehme, geht die id von&nbsp;

---

<div class="post-metadata">

**Author:** ![BestShopPossible](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@BestShopPossible](https://forum.shopware.com/u/BestShopPossible)\
**Post date:** [12. Juni 2018 um 07:53 UTC](https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413/2 "2018-06-12T07:53:10Z")

</div>

Na das kommt in frontend/newsletter/index.tpl&nbsp;

---

<div class="post-metadata">

**Author:** ![buchhenne](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@buchhenne](https://forum.shopware.com/u/buchhenne)\
**Post date:** [12. Juni 2018 um 08:19 UTC](https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413/3 "2018-06-12T08:19:43Z")

</div>

Hab ich probiert, gab nen Smarty-Fehler

&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:** [12. Juni 2018 um 08:23 UTC](https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413/4 "2018-06-12T08:23:00Z")

</div>

Javascript musst du in Smarty in {literal}{/literal}-Tags packen.

---

<div class="post-metadata">

**Author:** ![buchhenne](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@buchhenne](https://forum.shopware.com/u/buchhenne)\
**Post date:** [12. Juni 2018 um 08:36 UTC](https://forum.shopware.com/t/einbindung-von-code-fur-shopware2go-formular/53413/5 "2018-06-12T08:36:27Z")

</div>

Ah Danke. Hab aber mittlerweile den Verdacht, dass der Snippet-Code nur für die Veränderung von Newsletter2Go-Formularen gedacht ist, nicht jedoch für die Veränderung  
vom Standard-Shopware-Newsletterformular
