5.2 Backend Ext - User Addresses

Hi guys,

I’m trying adding new field to addresses form on backend, and I would like to add this new field to Address Data Fieldset on Address form. I’m adding the field using the new 5.2 way to do that, documented on Attribute system

And for backend manipulation to move the field from Free text field tab to Address Data Fieldset I follow the follow instructions  Attribute system

Let me show you the code I have:


     * Helper method to define event subscriptions
     * @return array Structure with event subscriptions " => array(, ..., )"
    public static function getSubscribedEvents()
        return [
            'Enlight_Controller_Action_PostDispatch_Backend_Address' => 'onAddressPostDispatch'

    public function onAddressPostDispatch(\Enlight_Event_EventArgs $args)
        /** @var \Enlight_Controller_Action $controller */
        $controller = $args->getSubject();
        $request = $controller->Request();

        /** @var \Enlight_View_Default $view */
        $view = $args->getSubject()->View();

        $view->addTemplateDir($this->getPlugin()->getPath() . '/Views/');

            $this->getPlugin()->getPath() . 'Snippets/'

        if ($request->getActionName() === 'detail') {

And on my address.js I have:

//{block name="backend/customer/view/address/detail/address"}
Ext.define('Shopware.apps.my_customer_addresses.view.address.detail.Address', {
    override: 'Shopware.apps.Customer.view.address.detail.Address',

     * Creates new items to be displayed in the left column of settings fieldset
    configure: function () {
        var me = this,
            elements = me.callParent(arguments);
        // code to add field  

        return elements;


I made some debugging to ensure

if ($request->getActionName() === 'detail') {

is executed in right place, and it is. But nothing is happening, and file isn’t loaded. What I’m missing here, do address management have a diferent way for backend extension?


Thanks for help.