# Extending &quot;Bare&quot;-Theme's PDF Template for Invoice?

**URL:** <https://forum.shopware.com/t/extending-quot-bare-quot-themes-pdf-template-for-invoice/33042>\
**Category:** Shopware 3.5\
**Tags:** general\
**Created:** [15. Dezember 2015 um 19:16 UTC](https://forum.shopware.com/t/extending-quot-bare-quot-themes-pdf-template-for-invoice/33042 "2015-12-15T19:16:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psubi](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@psubi](https://forum.shopware.com/u/psubi)\
**Post date:** [15. Dezember 2015 um 19:16 UTC](https://forum.shopware.com/t/extending-quot-bare-quot-themes-pdf-template-for-invoice/33042/1 "2015-12-15T19:16:40Z")

</div>

BS"D I sadly ended up editing the documents/index.tpl template because I couldn’t figure out how to extend it… 1) My active Theme is “XXX” which extends from the “Responsive” Theme. 2) When in the SW Backend, I go to SHOPEINSTELLUNGEN \> PDF-BELEGERSTELLUNG \> RECHNUNG \> “Vorschau” Button, it seems to always take the documents/index.tpl template from the “Bare”-Theme, regardless if I’ve extended this template in my (active) “XXX”-Theme 3) I extended the documents/index.tpl template like this: - I created a new file under themes/Frontend/XXX/documents/ with the name “index.tpl”. - I added on the top: {extends file=“parent:documents/index.tpl”} - I changed a block from documents/index.tpl in this new template to test that it works. - I recompiled all themes and emptied all caches [code] {extends file=“parent:documents/index.tpl”} {block name=“document\_index\_info\_net”}

THIS IS A TEST

{/block} [/code] It didn’t work! What am I missing? Can I extend Document Templates at all? Thank you! P.

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [20. Dezember 2015 um 23:45 UTC](https://forum.shopware.com/t/extending-quot-bare-quot-themes-pdf-template-for-invoice/33042/2 "2015-12-20T23:45:34Z")

</div>

The Code looks alright. 1.Do you really clear the generated pdf from server? 2.Check Einstellungen \> Grundeinstellungen \> Shopeinstellung \> PDF-Belegerstellungen \> Rechnung Template: index.tpl selected ?

---

<div class="post-metadata">

**Author:** ![psubi](https://avatars.discourse-cdn.com/v4/letter/p/c4cdca/32.png) [@psubi](https://forum.shopware.com/u/psubi)\
**Post date:** [23. Dezember 2015 um 10:28 UTC](https://forum.shopware.com/t/extending-quot-bare-quot-themes-pdf-template-for-invoice/33042/3 "2015-12-23T10:28:54Z")

</div>

BS"D Vielen Dank! Both conditions were fulfilled. Even if in theme manager a derived theme „XXX“ is selected and you compile the themes, the document templates seem to always be taken from the „Bare“ theme, as if they were only extendable within this „bare“ theme. So I had to extend „documents/index.tpl“ with „documents/index2.tpl“ within the „Bare theme“ which is not very clean, since I have a „XXX“ theme for extending. Under Einstellungen \> Grundeinstellungen \> Shopeinstellung \> PDF-Belegerstellungen \> Rechnung Template: there’s, of course, index2.tpl selected. What a pity that I can’t still extend the document/\* templates from a derived theme and have to touch the „Base“ Theme for this purpose. I wonder what will happen with updates. Anyone an idea? Thank you so much!
