# How to override the template file of a plugin from the theme file?

**URL:** https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699
**Category:** Themes & Design (EN)
**Created:** [14. Februar 2020 um 04:43 UTC](https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699 "2020-02-14T04:43:32Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)
#### Post date: [14. Februar 2020 um 04:43 UTC](https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699/1 "2020-02-14T04:43:32Z")

</div>

Hi

Is it possible to override the template file of a plugin from the theme file?

---

<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: [14. Februar 2020 um 05:57 UTC](https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699/2 "2020-02-14T05:57:05Z")

</div>

> **[References and internals](https://docs.shopware.com/en/shopware-platform-dev-en/references-internals)**

---

<div class="post-metadata">

### Author: ![optimondo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/optimondo/32/12853_2.png) [@optimondo](https://forum.shopware.com/u/optimondo)
#### Post date: [25. September 2020 um 08:12 UTC](https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699/3 "2020-09-25T08:12:31Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍ gibt es hierzu ggf einen aktualisierten Link? Ich finde irgend wie überhaupt keine Infos zum überschreiben von Plugin Templates unter der von dir angegebenen URL.

Vielen Dank!

&nbsp;

[UPDATE]

Ok. Die Reihenfolge in der theme.json ist entscheidend. Klapp schon alles 😉  
Die Ordner Sturktur ist ja vorgegeben.

---

<div class="post-metadata">

### Author: ![abart\_owidmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abart_owidmann/32/14628_2.png) [@abart\_owidmann](https://forum.shopware.com/u/abart_owidmann)
#### Post date: [20. Dezember 2021 um 09:37 UTC](https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699/4 "2021-12-20T09:37:19Z")

</div>

Ich werde aus den Antworten hier auch nicht schlau… Theoretisch ja sinnvollverweise mit

```auto
{% sw_extends @Storefront/storefront/... %}

```

oder alternativ dann eben mit dem Plugin-Namespace. Aber irgendwie greift das bei mir nicht. Hat da jemand einen Tipp was ich übersehe oder falsch mache?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [20. Dezember 2021 um 13:42 UTC](https://forum.shopware.com/t/how-to-override-the-template-file-of-a-plugin-from-the-theme-file/64699/5 "2021-12-20T13:42:57Z")

</div>

@Storefront points to Shopware. You need to change @PluginName to override the plugin template.
