# 5.2 Backend Ext - User Addresses

**URL:** <https://forum.shopware.com/t/5-2-backend-ext-user-addresses/40514>\
**Category:** Programmierung\
**Created:** [13. Oktober 2016 um 12:06 UTC](https://forum.shopware.com/t/5-2-backend-ext-user-addresses/40514 "2016-10-13T12:06:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cboita](https://avatars.discourse-cdn.com/v4/letter/c/eb9ed0/32.png) [@cboita](https://forum.shopware.com/u/cboita)\
**Post date:** [13. Oktober 2016 um 12:06 UTC](https://forum.shopware.com/t/5-2-backend-ext-user-addresses/40514/1 "2016-10-13T12:06:27Z")

</div>

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&nbsp;[Attribute system](https://developers.shopware.com/developers-guide/attribute-system/#create-a-new-attribute)

And for backend manipulation to move the field from Free text field tab to Address Data Fieldset I follow the follow&nbsp;instructions &nbsp;[Attribute system](https://developers.shopware.com/developers-guide/attribute-system/#move-attribute-fields-into-anoth)

Let me show you the code I have:

BackendSubscriber.php

```
 /**
     * 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/');

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

        if ($request->getActionName() === 'detail') {
            $view->extendsTemplate('backend/my_customer_addresses/view/address/detail/address.js');
        }
    }

```

And on my address.js I have:

```
//{block name="backend/customer/view/address/detail/address"}
//{$smarty.block.parent}
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);
       
        debugger;
        // code to add field  

        return elements;

    }
});
//{/block}

```

I made some debugging to ensure

```
if ($request->getActionName() === 'detail') {
   $view->extendsTemplate('backend/my_customer_addresses/view/address/detail/address.js');
}

```

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

&nbsp;

Thanks for help.

&nbsp;

Best&nbsp;

Carlos
