# Pluginkonfiguration (config.xml) payment\_method multi-select

**URL:** https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294
**Category:** Programmierung
**Created:** [28. Januar 2020 um 09:33 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294 "2020-01-28T09:33:19Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [28. Januar 2020 um 09:33 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/1 "2020-01-28T09:33:19Z")

</div>

Tach zusammen,

ich brauch die Möglichkeiut in der Pluginkonfiguration mehrere Bezahlarten auszuwählen.

Eine single-selection läuft gut:

```
    payments
    payment_method
    Choose payment methods

```

Wie wird eine multi-selection eingerichtet?

das geht leider nicht:

```
    payments
    payment_method
    Choose payment methods

```

&nbsp;

---

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [5. Februar 2020 um 13:07 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/2 "2020-02-05T13:07:48Z")

</div>

push

---

<div class="post-metadata">

### Author: ![AlexGalax](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/alexgalax/32/9925_2.png) [@AlexGalax](https://forum.shopware.com/u/AlexGalax)
#### Post date: [6. Februar 2020 um 07:03 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/3 "2020-02-06T07:03:51Z")

</div>

wirft denn die console im backend einen error?

Für multiselect wird in anderen Dateien auch immer der Parameter `entityCollection` mit angegeben, vielleicht feht der?

---

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [6. Februar 2020 um 08:53 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/4 "2020-02-06T08:53:01Z")

</div>

ne, ein error kommt nicht.  
es wird einfach nix angezeigt.

wie soll ich eine collection per XML übergeben, dann ich ich gleich ‘input-field type=“multi-select”’ nehmen?  
das hätte ich eigentlich von der componente erwartet.  
also ein&nbsp;pondon von&nbsp;‘sw-entity-single-select’

so wie es aussieht muss ich mir ne eigene&nbsp;componente bauen.

---

<div class="post-metadata">

### Author: ![mowlwurf](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@mowlwurf](https://forum.shopware.com/u/mowlwurf)
#### Post date: [17. Februar 2020 um 08:28 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/5 "2020-02-17T08:28:34Z")

</div>

Habe das gleiche Problem, sieht mir nach einem Bug in Shopware aus. Laut den von Shopware bereitgestellten Beispielen sehen die Komponenten für single select und multi select in der config.xml exakt gleich aus.&nbsp;[https://github.com/shopware/swag-docs-plugin-config/blob/master/src/Resources/config/config.xml](https://github.com/shopware/swag-docs-plugin-config/blob/master/src/Resources/config/config.xml)

Bei Verwendung von multi-select kommt aber ein Javascript-Fehler beim Laden der Plugin-Konfiguration im Backend.

TypeError: Cannot read property ‚source‘ of undefined  
&nbsp; &nbsp; at Function.value (commons.js?1580805427173502:1)  
&nbsp; &nbsp; at s.refreshCurrentCollection (app.js?15808054263959571:1)  
&nbsp; &nbsp; at s.createdComponent (app.js?15808054263959571:1)  
&nbsp; &nbsp; at s.created (app.js?15808054263959571:1)  
&nbsp; &nbsp; at Xe (vendors-node.js?15808054271360952:1)  
&nbsp; &nbsp; at rn (vendors-node.js?15808054271360952:1)  
&nbsp; &nbsp; at s.e.\_init (vendors-node.js?15808054271360952:1)  
&nbsp; &nbsp; at new s (vendors-node.js?15808054271360952:1)  
&nbsp; &nbsp; at vendors-node.js?15808054271360952:1  
&nbsp; &nbsp; at init (vendors-node.js?15808054271360952:1)

Verwendet man die single-select Komponente mit den gleichen Parametern funktioniert alles einwandfrei.

---

<div class="post-metadata">

### Author: ![ShapeAndShift](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@ShapeAndShift](https://forum.shopware.com/u/ShapeAndShift)
#### Post date: [17. Februar 2020 um 08:49 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/6 "2020-02-17T08:49:11Z")

</div>

Ich hatte dazu ein Ticket erstellt vor ein paar Tagen, da ich letztens vor demselben Problem stand. multi-select scheint es noch nicht zu geben bzw. zu funktionieren.

Hier ist das Ticket, bitte votet dann einmal fleißig 🙂 &nbsp;[https://issues.shopware.com/issues/NEXT-7074](https://issues.shopware.com/issues/NEXT-7074)

---

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [18. Februar 2020 um 08:40 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/7 "2020-02-18T08:40:04Z")

</div>

ihr müsst eine eigene admin komponente bauen.

```
    payments
    Choose payment methods
    Wählen Sie die Zahlungsarten aus

```

&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: [18. Februar 2020 um 08:55 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/8 "2020-02-18T08:55:16Z")

</div>

Hallo zusammen,

aktuell arbeiten wir an Verbesserungen der Plugin-Konfiguration. Die Beispiele in diesem Plugin&nbsp;[GitHub - shopware/swag-docs-plugin-config: Shopware Platform example plugin from the documentation.](https://github.com/shopware/swag-docs-plugin-config) funktioneren allerdings erst ab Shopware 6.2 (siehe composer.json)&nbsp;

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [18. Februar 2020 um 13:32 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/9 "2020-02-18T13:32:50Z")

</div>

hallo michael,

danke schonaml dafür.  
die beispiel beinhaltet&nbsp;kein “sw-entity-multi-select”.  
sind alles eigene componente, daher meine empfhelung,  
macht euch eine eigne&nbsp;componente und bindet das in die config ein.

---

<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: [18. Februar 2020 um 13:37 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/10 "2020-02-18T13:37:13Z")

</div>

Hallo pino,

für ein Mehrfachauswahl von Entitäten würde man dann die Multi-ID select nehmen:&nbsp;[https://github.com/shopware/platform/blob/master/src/Docs/Resources/current/2-internals/4-plugins/070-plugin-config.md#entity-multi-id-select-for-products](https://github.com/shopware/platform/blob/master/src/Docs/Resources/current/2-internals/4-plugins/070-plugin-config.md#entity-multi-id-select-for-products)

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![pino](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/pino/32/14373_2.png) [@pino](https://forum.shopware.com/u/pino)
#### Post date: [19. Februar 2020 um 12:02 UTC](https://forum.shopware.com/t/pluginkonfiguration-config-xml-payment-method-multi-select/64294/11 "2020-02-19T12:02:32Z")

</div>

☹  
augen auf beim eier kauf, danke.

sobald ich die 6.2 habe werde ich das mal testen.  
&nbsp;
