# Subshop / ShopID - Abfrage im Template ???

**URL:** <https://forum.shopware.com/t/subshop-shopid-abfrage-im-template/34410>\
**Category:** Themes & Design\
**Created:** [11. Februar 2016 um 14:43 UTC](https://forum.shopware.com/t/subshop-shopid-abfrage-im-template/34410 "2016-02-11T14:43:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![seologix](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@seologix](https://forum.shopware.com/u/seologix)\
**Post date:** [11. Februar 2016 um 14:43 UTC](https://forum.shopware.com/t/subshop-shopid-abfrage-im-template/34410/1 "2016-02-11T14:43:04Z")

</div>

Hi,

gibt es in&nbsp;Shopware irgendeine Variable um Haupt- und Subshop zu unterscheiden,&nbsp;welche&nbsp;man im Template abfragen kann?

ShopID=x, =Subshop, language=x oder etwas in diese Richtung???&nbsp;

Wenn ich Inhalte in die index/index.tpl einfüge, wird im Haupshop alles korrekt angezeigt und im Shopshop werden beide Inhalte angezeigt was ich gern unterbinden möchte …

Vielen Dank!

LG Marco

---

<div class="post-metadata">

**Author:** ![waldicom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/waldicom/32/12881_2.png) [@waldicom](https://forum.shopware.com/u/waldicom)\
**Post date:** [11. Februar 2016 um 17:19 UTC](https://forum.shopware.com/t/subshop-shopid-abfrage-im-template/34410/2 "2016-02-11T17:19:13Z")

</div>

```
 {$Shop-\>getId()}
```

---

<div class="post-metadata">

**Author:** ![seologix](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@seologix](https://forum.shopware.com/u/seologix)\
**Post date:** [16. Februar 2016 um 09:27 UTC](https://forum.shopware.com/t/subshop-shopid-abfrage-im-template/34410/3 "2016-02-16T09:27:03Z")

</div>

Besten Dank!&nbsp;
