Add Custom Tabs to Product Edit page in Magento Admin Panel

Just a quick note this time on a great way to introduce tabs into the product edit page in the Magento Admin panel: via the <core_block_abstract_prepare_layout_after> Observer. The full guide is posted on the custom tabs for magento product admin page on fishpig (a UK Magento Company). Just a quick fix that I found was proper to my case is that the actual createBlock statement can be done much simpler, as follows:

‘content’   => $block->getLayout()->createBlock(‘my_extension/adminhtml_catalog_product_edit_tab_label’)->toHtml(),

Notice that in simpler cases there is no need for second and third parameters. That is all, otherwise it worked flawlessly. Thank you fishpig!

Happy coding!