I want to create one custom tab in the admin product section for all products and I want to display a custom message. How can I do this?
Magento – How to create custom tab in product admin section in Magento 2
adminadminhtmlmagento-2.0.7magento2product
Best Answer
Update:
I apologize, this answer is working only for version 2.1 +. I won't delete it, perhaps it can helps somebody (who is using the version 2.1 or greater).
Add the modifier in
app/code/Vendor/Module/etc/adminhtml/di.xml
:Create corresponding class
Vendor\Module\Ui\DataProvider\Product\Form\Modifier\CustomTab
inapp/code/Vendor/Module/Ui/DataProvider/Product/Form/Modifier/CustomTab.php
:Now you can add your content inside the
'content'
section. You can call a block and add its html to the content (using thetoHtml
method). Change it as you wish.PS: do not forget to change the vendor name (Vendor) and module name (Module) to corresponding own names.