Hello, I am trying to create custom shopping world element with a dropdown selection of shop categories. I have used an example plugin from documentation https://developers.shopware.com/exampleplugins/SwagVimeoElement.zip and have added a combobox field to EmotionElementInstaller::install
$vimeoElement->createComboBoxField([ 'name' => 'cat', 'fieldLabel' => 'Category', 'supportText' => 'Select category', 'allowBlank' => false, 'store' => 'Shopware.apps.Base.store.Category' ]);
Element settings form is working and field is present but I am getting a following error when I first click on dropdown:
nand dropdown stays empty. It seems to be a problem with combobox template, so its probably a misconfiration of store property, but in all examples I have found it is specified same as I wrote, trying to specify a partial path caused errors when opening shopping world. I can see that Shopware.apps.Base.store.Category is defined in console. How should I specify a store for a field?
- Akzeptierte Antwort