# Eigenes Rechnungstemplate, welcher Pfad im Backend?

**URL:** https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764
**Category:** Themes & Design
**Created:** [4. Dezember 2015 um 10:25 UTC](https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764 "2015-12-04T10:25:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [4. Dezember 2015 um 10:25 UTC](https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764/1 "2015-12-04T10:25:20Z")

</div>

Hallo Gemeinde, nutze noch die documents/index.tpl im Bare-Theme für Rechnungen. Wie muss der Pfad lauten, den ich unter PDF-Belegerstellung -\> Template angeben muss, wenn ich das Rechnungstemplate in meinem Theme unter documents/ ablege? Bekomme es leider nicht hin… Vielen Dank im Voraus. Grüße Michael

---

<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: [4. Dezember 2015 um 10:54 UTC](https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764/2 "2015-12-04T10:54:52Z")

</div>

Hallo, einen Pfad musst du da nicht angeben. Sobald die Datei in deinem Theme-Ordner im Ordner Documents liegt, wird das auch von da gezogen. Also einfach den Dateinamen angeben. Moritz

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [4. Dezember 2015 um 15:02 UTC](https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764/3 "2015-12-04T15:02:06Z")

</div>

Hallo Moritz, danke. Wenn ich das so mache erhalte ich folgende Fehlermeldung: `Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Unable to load template snippet 'documents/index\_sun.tpl' in Smarty/sysplugins/smarty\_internal\_templatebase.php on line 127 Stack trace: #0 Shopware/Components/Document.php(244): Smarty\_Internal\_TemplateBase-\>fetch('documents/index...', Object(Smarty\_Data)) #1 Shopware/Controllers/Backend/Document.php(66): Shopware\_Components\_Document-\>render() #2 Enlight/Controller/Action.php(158): Shopware\_Controllers\_Backend\_Document-\>indexAction() #3 Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('indexAction') #4 Enlight/Controller/Front.php(227): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #5 Shopware/Kernel.php(148): Enlight\_Controller\_Front-\>dispatch() #6 vendor/symfony/http-kernel/HttpCache/HttpCache.php(492): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #7 Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #8 vendor/symfony/http-kernel/HttpCache/HttpCache.php(263): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #9 Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #10 shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #11 {main}` Daher hatte ich nachgefragt. Wo liegt der Fehler? Danke und Grüße Michael

---

<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: [4. Dezember 2015 um 15:19 UTC](https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764/4 "2015-12-04T15:19:00Z")

</div>

[quote=„Tanny“]Hallo Moritz, danke. Wenn ich das so mache erhalte ich folgende Fehlermeldung: `Ups! Ein Fehler ist aufgetreten! Die nachfolgenden Hinweise sollten Ihnen weiterhelfen. Unable to load template snippet 'documents/index\_sun.tpl' in Smarty/sysplugins/smarty\_internal\_templatebase.php on line 127 Stack trace: #0 Shopware/Components/Document.php(244): Smarty\_Internal\_TemplateBase-\>fetch('documents/index...', Object(Smarty\_Data)) #1 Shopware/Controllers/Backend/Document.php(66): Shopware\_Components\_Document-\>render() #2 Enlight/Controller/Action.php(158): Shopware\_Controllers\_Backend\_Document-\>indexAction() #3 Enlight/Controller/Dispatcher/Default.php(523): Enlight\_Controller\_Action-\>dispatch('indexAction') #4 Enlight/Controller/Front.php(227): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #5 Shopware/Kernel.php(148): Enlight\_Controller\_Front-\>dispatch() #6 vendor/symfony/http-kernel/HttpCache/HttpCache.php(492): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #7 Shopware/Components/HttpCache/AppCache.php(255): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #8 vendor/symfony/http-kernel/HttpCache/HttpCache.php(263): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #9 Shopware/Components/HttpCache/AppCache.php(103): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #10 shopware.php(101): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #11 {main}` Daher hatte ich nachgefragt. Wo liegt der Fehler? Danke und Grüße Michael[/quote] Hallo Michael, hast du unter „Einstellungen“ -\> „Grundeinstellungen“ -\> „Shopeinstellungen“ -\> „Shops“ bei deinem Standard-Shop bei „Dokumenten-Template“ auch dein Theme ausgewählt? index\_sun.tpl gibt es ja im Standard-Theme nicht. Beste Grüße Sebastian

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [4. Dezember 2015 um 15:39 UTC](https://forum.shopware.com/t/eigenes-rechnungstemplate-welcher-pfad-im-backend/32764/5 "2015-12-04T15:39:57Z")

</div>

Hatte ich nicht… :oops: Danke :thumbup:
