# Overwrite plugin template file from plugin

**URL:** https://forum.shopware.com/t/overwrite-plugin-template-file-from-plugin/51922
**Category:** International (English Only)
**Tags:** general
**Created:** [21. März 2018 um 10:20 UTC](https://forum.shopware.com/t/overwrite-plugin-template-file-from-plugin/51922 "2018-03-21T10:20:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![irfanh94](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@irfanh94](https://forum.shopware.com/u/irfanh94)
#### Post date: [21. März 2018 um 10:20 UTC](https://forum.shopware.com/t/overwrite-plugin-template-file-from-plugin/51922/1 "2018-03-21T10:20:07Z")

</div>

Hi folks,

&nbsp;

How can I overwrite plugin tempate file from theme?

For example, I have plugin called " **SwagB2bPlugin**" and I cant find the proper solution to extend its **frontend / b2bdashboard / index.tpl** template from theme ?

---

<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: [21. März 2018 um 10:48 UTC](https://forum.shopware.com/t/overwrite-plugin-template-file-from-plugin/51922/2 "2018-03-21T10:48:27Z")

</div>

Hello,

do you want to **extend the plugin templates with another plugin** or **extend the plugin templates with your theme**?

If you want to extend it **via your theme,** you need to change the theme inhertiance as described in our documentation:&nbsp;[Getting started with Smarty](https://developers.shopware.com/designers-guide/smarty/#template-inheritance)

If you want to extend it **via plugin** , you can find an example plugin in my github repository:&nbsp;[GitHub - mnaczenski/MNExtendB2B](https://github.com/mnaczenski/MNExtendB2B)  
In this case it is necessary to have a look at the subscriber of the plugin you want to extend, because you need to register your plugin template before the plugin registers its template directories.

Moritz

&nbsp;

---

<div class="post-metadata">

### Author: ![irfanh94](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@irfanh94](https://forum.shopware.com/u/irfanh94)
#### Post date: [21. März 2018 um 10:53 UTC](https://forum.shopware.com/t/overwrite-plugin-template-file-from-plugin/51922/3 "2018-03-21T10:53:16Z")

</div>

Well, its too late now to make new theme inhertiance, so I will overwrite it from another plugin.

And thank you for the github code you made !!
