# Modul-Configuration: Select mit dynamischen Optionen

**URL:** <https://forum.shopware.com/t/modul-configuration-select-mit-dynamischen-optionen/62675>\
**Category:** Programmierung\
**Created:** [29. Oktober 2019 um 14:45 UTC](https://forum.shopware.com/t/modul-configuration-select-mit-dynamischen-optionen/62675 "2019-10-29T14:45:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nop](https://avatars.discourse-cdn.com/v4/letter/n/48db29/32.png) [@Nop](https://forum.shopware.com/u/Nop)\
**Post date:** [29. Oktober 2019 um 14:45 UTC](https://forum.shopware.com/t/modul-configuration-select-mit-dynamischen-optionen/62675/1 "2019-10-29T14:45:17Z")

</div>

Hi

Ich arbeite mich so langsam in SW6 ein.

Wie sieht es hier mit dynamischen Optionen bei der Modul-Configuration aus?  
Also, wenn ich z.B.: einen Select mit den Bestellstatus oder den Zahlungsarten möchte, wie stelle ich dies an?

In SW5 hatten wir es in etwa so:  
&nbsp;

```
$form->setElement('text', 'orderstatus', [
            'label' => 'Set order to selected status',
            'description' => 'example',
            'required' => true,
            'xtype' => 'combobox',
            'valueField' => 'id',
            'displayField' => 'description',
            'editable' => false,
            'store' => [
                'xtype' => 'store.store',
                'model' => 'Shopware.apps.Base.model.OrderStatus',
                'autoLoad' => true,
                'remoteSort' => true,
                'remoteFilter' => true,
                'proxy' => [
                    'type' => 'ajax',
                    'url' => $plugin->Application()->Front()->Router()->assemble(['controller' => 'Base', 'action' => 'getOrderStatus']),
                    'reader' => [
                        'type' => 'json',
                        'root' => 'data',
                        'totalProperty' => 'total'
                    ]
                ]
            ],
            'scope' => \Shopware\Models\Config\Element::SCOPE_SHOP
        ]);

```

In der Doku ([https://docs.shopware.com/en/shopware-platform-dev-en/internals/plugins/plugin-config](https://docs.shopware.com/en/shopware-platform-dev-en/internals/plugins/plugin-config)) ist dazu leider nichts erwähnt.  
Oder ist das in der Doku wo anderst erklärt? Ich habe leider nichts gefunden.

Gruss

---

<div class="post-metadata">

**Author:** ![gwen](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gwen](https://forum.shopware.com/u/gwen)\
**Post date:** [11. Februar 2020 um 13:52 UTC](https://forum.shopware.com/t/modul-configuration-select-mit-dynamischen-optionen/62675/2 "2020-02-11T13:52:51Z")

</div>

Das Store und Shopware.apps.Base.model.OrderStatus ist soweit ich weiß, auch noch nicht in SW 6 drin. -.-
