We need to show Separate group title and Tabs under it in Customer Admin edit view like attached.

enter image description here

We can see new tabs under 'CUSTOMER INFORMATION' Group if we do like this

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceBlock name="customer_form">
            <block class="[Modulegroup]\Customer\Block\Adminhtml\Edit\Tab\Companydetails" name="customer_edit_tab_company_details">
                <action method="setTabLabel">
                    <argument name="label" xsi:type="string">Company Details</argument>
                    <argument name="sort_order" xsi:type="number">10</argument>

in app/code/[Modulegroup]/Customer/view/adminhtml/layout/customer_index_edit.xml

We need to show this new tabs also as a separate group and its sub tabs. How can we do that?


You should look at :


This line in particular :

<block class="Magento\Customer\Block\Adminhtml\Edit\Tab\View\PersonalInfo" name="personal_info" template="tab/view/personal_info.phtml"/>

You should be able to make your own block class in your module like this. And add it to your xml in customer_index_edit.xml

Shouldn't be difficult from there.

  • thats for to show its tab content , my need is completely different. I need to show new tabs under new tab group – Elamurugan Oct 20 '17 at 11:32

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.