Quantcast
Channel: Programmierung - Shopware Community Forum
Viewing all articles
Browse latest Browse all 2871

SW 5.2 - Plugin Entwicklung Backend - Category.Store

$
0
0

Hallo, die Frage wurde glaub ich schon mal gestellt aber ldeir nicht komplett beatwortet.

Wir würden gerne mit einem eigegen Plugin auf einen vorhandenen Store (z.B. Catgory,Country etc.) zurückgreifen.

Leider funktioniert das ja nicht einfach indem man den Store läd:


Ext.define('Shopware.apps.MyPlugin.view.detail.MyPlugin', {
    extend: 'Shopware.model.Container',
    padding: 20,

    configure: function() {
        var me = this;
        return {
            controller: 'MyPlugin',
            fieldSets: [
                {
                    title: 'Details',
                    layout: 'fit',
                    fields: {
	                    username: {
                            fieldLabel: '{s name=username}Name{/s}',
                            allowBlank: false,

                        },
                        maincategory: {
                            xtype: 'combobox',
                            fieldLabel: '{s name=emailgroup}zugewiesene Shop-Kategorie{/s}',
                            displayField: 'description',
                            valueField: 'id',
                            allowBlank: true,
                            store:Ext.create('Shopware.apps.Base.store.Category').load(),
                        },

                    }
                }
            ]
        };
    }
});

Kann mir da jemand weiterhelfen? Ich würde dann gerne auch ein kleines Beispiel Plugin hier posten.

 

Danke & Viele Grüße

Oliver


Viewing all articles
Browse latest Browse all 2871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>