0

In magento1 i could extend the adminhtml customer addresses tab

class Vendor_Module_Block_Adminhtml_Customer_Edit_Tab_Addresses extends Mage_Adminhtml_Block_Customer_Edit_Tab_Addresses {
    public function __construct() {
        parent::__construct();
        $this->setTemplate('vlcsolutions/customer/tab/addresses.phtml');
    }
}

and now if i modify vlcsolutions/customer/tab/addresses.phtml, changes are reflected,

How to achieve the same in magento2.

I have not found any class or template like customer/tab/addresses.phtml

1

These pages are using the new Magento/Ui module. The UI is defined for use in the layout file app/code/Magento/Customer/view/adminhtml/layout/customer_index_edit.xml. Here you can see the line:

<uiComponent name="customer_form"/>

This will tell Magento to use the UI from the file app/code/Magento/Customer/view/base/ui_component/customer_form.xml

Now this file can see complex at first appearance, and also at second appearance, but it is split into different sections.

For example the fields to show on the address form are defined under the node <fieldset name="address">.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.