Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Add Tab On Product Edit Page Magento 2.0.X Admin

    Here we will learn how to add Tab on product edit page magento admin.

    Add Tab on Product Page

    First of all create ‘catalog_product_edit.xml’ file in location Webkul/Demo/view/adminhtml/layout.


    Now create block ‘Webkul\Demo\Block\Adminhtml\Catalog\Product\Edit\Tab\Demo’.
    Create Demo.php in location Webkul/Demo/Block/Adminhtml/Catalog/Product/Edit/Tab.


    protected $_template = ‘product/edit/demo.phtml’
    This template file will be called in tab content.

    Now create template file demo.phtml in location Webkul/Demo/view/adminhtml/templates/product/edit.


    If you want to call tab in other existing tab then you can use method getParentTab() in block file demo.php

    Now demo tab will be called in product details tab.

    If you are using Magento 2.1.0 then read how to add tab on product page in Magento 2.1.0 Admin

    If you have any query please comment below.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close