Here, I have create extra fields in s_articles_supplier, but there is one problem. so, I need to override default supplier.js with new fields which I have created in table. but in this case I have solution of override fields but I didn’t get how to override proxy: Does anyone have any idea about for override fields and proxy in supplier.js ? I have try to following code : //{block name="backend/supplier/model/supplier" append} //{namespace name=backend/dix\_supplier/supplier} Ext.define('Shopware.apps.Supplier.dix\_supplier.model.Supplier', { override: 'Shopware.apps.Supplier.model.Supplier', //{block name="backend/supplier/model/supplier/fields" append} { name : 'email', type : 'string' }, //{/block} proxy : { type : 'ajax', api : { read : '{url controller="DixSupplier" action="getSuppliers"}', create : '{url controller="DixSupplier" action="createSupplier"}', update : '{url controller="DixSupplier" action="updateSupplier"}', destroy : '{url controller="DixSupplier" action="deleteSupplier"}' }, reader : { type : 'json', root : 'data' } }, }); //{/block}
In short, currently in default supplier.js, code is like this: read : ‘{url controller=“Supplier” action=“getSuppliers”}’. Instead of this, I want it like, read : ‘{url controller="" action=“getSuppliers”}’,
Thanks in Advance.