# Why 2 theme plugins affect each other when used on different sales channels ?

**URL:** <https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728>\
**Category:** General Questions (EN)\
**Created:** [5. Mai 2020 um 12:34 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728 "2020-05-05T12:34:12Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [5. Mai 2020 um 12:34 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/1 "2020-05-05T12:34:12Z")

</div>

I have two sales channels for different domains. And I also have 2 themes, one for each of them. It seems that when I enable the theme plugin, it starts to affect the designs even if it is not assigned to any sales channel. How to prevent that from happening ?

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [6. Mai 2020 um 14:47 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/2 "2020-05-06T14:47:37Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍ Do you know why the scss files are only working on corresponding sales channels, but the twig files affect both of the sales channels ?

---

<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:** [6. Mai 2020 um 17:39 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/3 "2020-05-06T17:39:30Z")

</div>

Sounds like a question for the support. But normally only the assigned themes will be losded.

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [6. Mai 2020 um 18:40 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/4 "2020-05-06T18:40:39Z")

</div>

The scss files are not loaded wrongly, just only the twig templates. Does that have something to do with the where are located the twig files? in both theme plugins they are located under the directory src/Resources/views/storefront/

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 06:49 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/5 "2020-05-07T06:49:18Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍ do you know whom should I ask from support, is there anyone in forums?

---

<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:** [7. Mai 2020 um 07:02 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/6 "2020-05-07T07:02:13Z")

</div>

Did you create the theme via shopware console?

Or how did you create the theme?

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 07:08 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/7 "2020-05-07T07:08:04Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍ I have created both of the themes by myself according the Shopware guide. For a single sales channel website they work as intended.

scss files are located in src/Resources/app/storefront/src/scss

The twig files are located under the directory src/Resources/views/storefront/(layout or block, etc.)

Below is the theme.json file:

```
{
    "name": "IluDesign Theme",
    "author": "David Sargsyan",
    "previewMedia": "storefront/dist/assets/Ilu_Design_logo.png",
    "style": [
      "app/storefront/src/scss/overrides.scss",
      "@Storefront",
      "app/storefront/src/scss/base.scss"
    ],
    "views": [
      "@Storefront",
      "@Plugins",
      "@DasIluDesignTheme"
    ],
    "script": [
        "@Storefront",
        "app/storefront/dist/storefront/js/navigation.js"
    ],
    "config": {
      "fields": {
        "sw-color-brand-primary": {
          "value": "#a9a9a9"
        }
      }
    },
    "asset": [
        "app/storefront/src/assets"
    ]
}

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 07:15 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/8 "2020-05-07T07:15:08Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍ is the directory where the twig files are located correct?  
In here&nbsp;[https://docs.shopware.com/en/shopware-platform-dev-en/theme-guide/twig-templates?category=shopware-platform-dev-en/theme-guide](https://docs.shopware.com/en/shopware-platform-dev-en/theme-guide/twig-templates?category=shopware-platform-dev-en/theme-guide)&nbsp;in some places it is sometimes mentioned that twig files should be under&nbsp;src/Resources/app/storefront/views/(layout or something else)/ and in some other places it is under&nbsp;/Resources/views/storefront/layout/header.

Which one is correct? Is the problem in directory structure or that I have not generated the plugin by shopware cli console&nbsp;?

---

<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:** [7. Mai 2020 um 08:10 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/9 "2020-05-07T08:10:26Z")

</div>

Show us your Bootstrap, it needs to implement ThemeInterface

&nbsp;

otherwhise it is a plugin and will be loaded in every sales-channel, not only the assigned one.

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 08:13 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/10 "2020-05-07T08:13:28Z")

</div>

It does, and the theme appears, I select the theme, but when I do so, the changes to the template, start to affect the other sales channel as well.

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 08:15 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/11 "2020-05-07T08:15:32Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍ the only difference I see here is the namespace, after the prefix I write a backslash .

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 08:16 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/12 "2020-05-07T08:16:24Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍&nbsp;And yes it seems that the twig files behave as if they are in just a regular plugin, but I am not seeing the reason.

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [7. Mai 2020 um 12:28 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/13 "2020-05-07T12:28:40Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski „Moritz Naczenski“)‍ is everything correct?

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [8. Mai 2020 um 08:08 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/14 "2020-05-08T08:08:20Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍ we also opened a ticket but neither here nor there in account support&nbsp;we see an answer to this problem.

---

<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:** [8. Mai 2020 um 11:53 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/15 "2020-05-08T11:53:52Z")

</div>

I can’t support you any more on this topic, since I don’t know where your issue comes from. For me, everything looks fine.

This forum is based ony the idea „users helping users“, so we can’t provide you any official support in this forum. If you created an official support request, you will get an anwer based on your subscription.&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)\
**Post date:** [9. Mai 2020 um 08:02 UTC](https://forum.shopware.com/t/why-2-theme-plugins-affect-each-other-when-used-on-different-sales-channels/66728/16 "2020-05-09T08:02:42Z")

</div>

[@Moritz Naczenski]([http://forum.shopware.com/profile/14574/Moritz](http://forum.shopware.com/profile/14574/Moritz) Naczenski “Moritz Naczenski”)‍ we have got a response from the support, so others who may be interested as well, this is a known issue and will be fixed in 6.2

[https://issues.shopware.com/issues/NEXT-7269](https://issues.shopware.com/issues/NEXT-7269)
