# Mehrfach Kategorieauswahl als Plugin Option

**URL:** <https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763>\
**Category:** Programmierung\
**Created:** [23. August 2017 um 10:49 UTC](https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763 "2017-08-23T10:49:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![arnebecker](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@arnebecker](https://forum.shopware.com/u/arnebecker)\
**Post date:** [23. August 2017 um 10:49 UTC](https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763/1 "2017-08-23T10:49:13Z")

</div>

Hallo,

der Titel sagt eigtl schon alles. Ich hätte gerne einen mehrfach Kategorieauswahl-Baum in meinen Plugin Optionen. Hat jemand eine Idee wie das zubewerkstelligen ist? Ob neues oder altes Plugin System ist mir dabei egal. Neu wäre natürlich schöner 😉

Ich hab folgendes sucht. Klappt aber nur. Beim öffnen der Box kommt eine JS Fehler “index out of range”.

```
    comboExtjsStore
    Extjs Store
    Shopware.apps.Base.store.CategoryTree

```

Ich habe auch type=“select” versucht. Selbes Ergebniss.

VG Arne&nbsp;

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [23. August 2017 um 11:48 UTC](https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763/2 "2017-08-23T11:48:52Z")

</div>

Hallo Arne,

schau mal hier:&nbsp;[https://developers.shopware.com/developers-guide/plugin-system/#add-additional-options](https://developers.shopware.com/developers-guide/plugin-system/#add-additional-options)

Dadurch hast du die Möglichkeit weitere Optionen mitzuliefern, die direkt als ExtJs Property an das Form-Element gehangen werden. Um eine Mehrfach Auswahl zu erzeugen musst du die Option multiSelect mitgeben:&nbsp;[http://docs.sencha.com/extjs/4.1.1/#!/api/Ext.form.field.ComboBox-cfg-multiSelect](http://docs.sencha.com/extjs/4.1.1/#!/api/Ext.form.field.ComboBox-cfg-multiSelect)

```
    comboExtjsStore
    Extjs Store
    Shopware.apps.Base.store.CategoryTree
    
        true

```

Zusätzlich solltest du beachten, dass der Store u.U. noch keine Daten geladen hat.

Viele Grüße aus Schöppingen

&nbsp;Michael Telgmann

---

<div class="post-metadata">

**Author:** ![arnebecker](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@arnebecker](https://forum.shopware.com/u/arnebecker)\
**Post date:** [23. August 2017 um 11:53 UTC](https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763/3 "2017-08-23T11:53:42Z")

</div>

Hi Michael,

und wie bekomme ich Daten in den Store? Ich bin leider nicht so der ExtJS Experte?

---

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [23. Februar 2018 um 00:10 UTC](https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763/4 "2018-02-23T00:10:59Z")

</div>

Push wie geht das ?

&nbsp;

Shopware.apps.Base.store.CategoryTree ist immer leer

---

<div class="post-metadata">

**Author:** ![arnebecker](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@arnebecker](https://forum.shopware.com/u/arnebecker)\
**Post date:** [7. April 2018 um 11:17 UTC](https://forum.shopware.com/t/mehrfach-kategorieauswahl-als-plugin-option/47763/5 "2018-04-07T11:17:08Z")

</div>

Ping
