# Override document template

**URL:** https://forum.shopware.com/t/override-document-template/47250
**Category:** International (English Only)
**Tags:** general
**Created:** [2. August 2017 um 11:15 UTC](https://forum.shopware.com/t/override-document-template/47250 "2017-08-02T11:15:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)
#### Post date: [2. August 2017 um 11:15 UTC](https://forum.shopware.com/t/override-document-template/47250/1 "2017-08-02T11:15:04Z")

</div>

Hi,

I’m trying to override the default document template for deliery notes (index\_ls.tpl) but I can’t make it work. If I made the changes in bare/documents/index\_ls.tpl I can see those changes in my pdf file but if I create a copy of the file in mytheme/documents/index\_ls.tpl nothing seem to happen. I’ve deleted chache and compiled the theme, but nothing.

Anyone have made changes to this?

---

<div class="post-metadata">

### Author: ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)
#### Post date: [2. August 2017 um 11:21 UTC](https://forum.shopware.com/t/override-document-template/47250/2 "2017-08-02T11:21:13Z")

</div>

Hi roberto,

did you set the document template:

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

---

<div class="post-metadata">

### Author: ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)
#### Post date: [2. August 2017 um 11:30 UTC](https://forum.shopware.com/t/override-document-template/47250/3 "2017-08-02T11:30:05Z")

</div>

> [@simkli schrieb:](https://forum.shopware.com/profile/16741/simkli "simkli")
> 
> Hi roberto,
> 
> did you set the document template:
> 
> ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/d/d88497d27af664684439521a5e95d8a6ca6dc15d.jpeg)

&nbsp;

That works like a charm! It totally did the trick for me, thank you so much! 😃

&nbsp;

---

<div class="post-metadata">

### Author: ![zodysaidoo](https://avatars.discourse-cdn.com/v4/letter/z/ac8455/32.png) [@zodysaidoo](https://forum.shopware.com/u/zodysaidoo)
#### Post date: [30. März 2020 um 09:03 UTC](https://forum.shopware.com/t/override-document-template/47250/4 "2020-03-30T09:03:11Z")

</div>

How did you set the document template? Can you further explain this?

I have the problem with index.tpl

```
{extends file="parent:documents/index.tpl"}

{block name='document_index_body'}
    Test
{/block}

```

This doesnt take affect the preview and the generated document at all.

Here is another one with the same problem, that not had been solved.&nbsp;[https://forum.shopware.com/discussion/33496/extending-bare-themes-pdf-template-for-invoice](https://forum.shopware.com/discussion/33496/extending-bare-themes-pdf-template-for-invoice)

Did it as described in the documentation:&nbsp;[https://developers.shopware.com/designers-guide/edit-newsletter-and-document-templates/#edit-document-templates](https://developers.shopware.com/designers-guide/edit-newsletter-and-document-templates/#edit-document-templates)

Please help me.

---

<div class="post-metadata">

### Author: ![roberto](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@roberto](https://forum.shopware.com/u/roberto)
#### Post date: [30. März 2020 um 10:30 UTC](https://forum.shopware.com/t/override-document-template/47250/5 "2020-03-30T10:30:20Z")

</div>

Hi&nbsp; [zodysaidoo](https://forum.shopware.com/profile/34592/zodysaidoo)

You can find the document template under the basic configuration \> shops \> Document template (on the right). Selecting the one you are modifying should work for you. if you can’t see any change at the moment could be Shopware is usnig a different document template than the one you are amending

Hope this will help you

---

<div class="post-metadata">

### Author: ![limes007](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@limes007](https://forum.shopware.com/u/limes007)
#### Post date: [4. September 2020 um 17:59 UTC](https://forum.shopware.com/t/override-document-template/47250/6 "2020-09-04T17:59:11Z")

</div>

I have the same problem - or worse: Even if I modify the index.tpl inside the “Bare” theme, it has no effect to the resulting PDF. If I set another - invalid - template name, I got an error as expected. If I then copy the index.tpl inside the “Bare” theme to the new name, I do not longer get an error - good - but an empty PDF.

Very strange. Any help is greatly appreciated.

---

<div class="post-metadata">

### Author: ![limes007](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@limes007](https://forum.shopware.com/u/limes007)
#### Post date: [5. September 2020 um 09:24 UTC](https://forum.shopware.com/t/override-document-template/47250/7 "2020-09-05T09:24:05Z")

</div>

Update: Changing the index.tpl inside the “Bare” theme indeed has an effect. But the rest of the problems remain.
