I want to call one custom phtml file after Customer Edit Account Information Form.
Currently, I have tried below way so phtml file called but it’s display on every customer edit tab?
- Vendor/Extension/view/adminhtml/layout/customer_index_edit.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="content">
<block class="VendorExtensionBlockAdminhtmlCustomerViewCustom"
name="customer_edit_tab_view_custom"
template="Vendor_Extension::customer/view/custom.phtml">
</block>
</referenceBlock>
</body>
</page>
- Vendor/Extension/view/adminhtml/templates/customer/view/custom.phtml
<div>Testdata</div>
- Vendor/Extension/Block/Adminhtml/Customer/View/Custom.php
<?php
namespace MagecompGooglemaplocationBlockAdminhtmlCustomerView;
class Custom extends MagentoCustomerBlockAdminhtmlEditTabView
{
/**
* @return MagentoFrameworkPhrase
*/
public function getTabLabel()
{
return __('Custom Label');
}
/**
* @return MagentoFrameworkPhrase
*/
public function getTabTitle()
{
return __('Custom Label');
}
}
Now, Testdata display after every Customer Edit tab content I want to display Testdata only after Account Information form.
How to do this ?