Skip to main content

Firstly iI would suggest you create your own module. In the module create the following classes :

Under Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab create the class Tab ->

<?php declare(strict_types=1); namespace Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab; use Magento\Backend\Block\Widget\Tab\TabInterface; use Magento\Catalog\Block\Adminhtml\Form; use Magento\Framework\Phrase; class Tab extends Form implements TabInterface { public function getTabLabel(): Phrase { return __('Tab'); } public function getTabTitle(): Phrase { return __('Tab'); } public function canShowTab(): bool { return true; } public function isHidden(): bool { return false; } public function getFieldSuffix(): string { return 'product'; } } 

Then under view/adminhtml/layout create an xmlXML file catalog_product_action_attribute_edit (this should be the layout file where you want the tab to be added,so so find ana core example and use the same name for the xmlXML file)

<?xml version="1.0"?> <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"> <body> <referenceBlock name="attributes_tabs"> <block class="Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab\Tab" name="tab_block" template="Namespace_ModuleName::catalog/product/edit/tab.phtml"/> <action method="addTab"> <argument name="name" xsi:type="string">tab_name</argument> <argument name="block" xsi:type="string">tab_block</argument> </action> </referenceBlock> </body> </page> 

And the just create the needed phtml tempaltetemplate for that Tab so itsit's not empty.

Firstly i would suggest you create your own module. In the module create the following classes :

Under Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab create the class Tab ->

<?php declare(strict_types=1); namespace Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab; use Magento\Backend\Block\Widget\Tab\TabInterface; use Magento\Catalog\Block\Adminhtml\Form; use Magento\Framework\Phrase; class Tab extends Form implements TabInterface { public function getTabLabel(): Phrase { return __('Tab'); } public function getTabTitle(): Phrase { return __('Tab'); } public function canShowTab(): bool { return true; } public function isHidden(): bool { return false; } public function getFieldSuffix(): string { return 'product'; } } 

Then under view/adminhtml/layout create an xml file catalog_product_action_attribute_edit (this should be the layout file where you want the tab to be added,so find an core example and use the same name for the xml file)

<?xml version="1.0"?> <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"> <body> <referenceBlock name="attributes_tabs"> <block class="Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab\Tab" name="tab_block" template="Namespace_ModuleName::catalog/product/edit/tab.phtml"/> <action method="addTab"> <argument name="name" xsi:type="string">tab_name</argument> <argument name="block" xsi:type="string">tab_block</argument> </action> </referenceBlock> </body> </page> 

And the just create the needed phtml tempalte for that Tab so its not empty.

Firstly I would suggest you create your own module. In the module create the following classes :

Under Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab create the class Tab ->

<?php declare(strict_types=1); namespace Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab; use Magento\Backend\Block\Widget\Tab\TabInterface; use Magento\Catalog\Block\Adminhtml\Form; use Magento\Framework\Phrase; class Tab extends Form implements TabInterface { public function getTabLabel(): Phrase { return __('Tab'); } public function getTabTitle(): Phrase { return __('Tab'); } public function canShowTab(): bool { return true; } public function isHidden(): bool { return false; } public function getFieldSuffix(): string { return 'product'; } } 

Then under view/adminhtml/layout create an XML file catalog_product_action_attribute_edit (this should be the layout file where you want the tab to be added, so find a core example and use the same name for the XML file)

<?xml version="1.0"?> <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"> <body> <referenceBlock name="attributes_tabs"> <block class="Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab\Tab" name="tab_block" template="Namespace_ModuleName::catalog/product/edit/tab.phtml"/> <action method="addTab"> <argument name="name" xsi:type="string">tab_name</argument> <argument name="block" xsi:type="string">tab_block</argument> </action> </referenceBlock> </body> </page> 

And just create the needed phtml template for that Tab so it's not empty.

Source Link

Firstly i would suggest you create your own module. In the module create the following classes :

Under Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab create the class Tab ->

<?php declare(strict_types=1); namespace Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab; use Magento\Backend\Block\Widget\Tab\TabInterface; use Magento\Catalog\Block\Adminhtml\Form; use Magento\Framework\Phrase; class Tab extends Form implements TabInterface { public function getTabLabel(): Phrase { return __('Tab'); } public function getTabTitle(): Phrase { return __('Tab'); } public function canShowTab(): bool { return true; } public function isHidden(): bool { return false; } public function getFieldSuffix(): string { return 'product'; } } 

Then under view/adminhtml/layout create an xml file catalog_product_action_attribute_edit (this should be the layout file where you want the tab to be added,so find an core example and use the same name for the xml file)

<?xml version="1.0"?> <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"> <body> <referenceBlock name="attributes_tabs"> <block class="Namespace\ModuleName\Block\Adminhtml\Product\Edit\Action\Attribute\Tab\Tab" name="tab_block" template="Namespace_ModuleName::catalog/product/edit/tab.phtml"/> <action method="addTab"> <argument name="name" xsi:type="string">tab_name</argument> <argument name="block" xsi:type="string">tab_block</argument> </action> </referenceBlock> </body> </page> 

And the just create the needed phtml tempalte for that Tab so its not empty.