If you want to show only some tab of product edit section in admin of magento then check below details.. In the product edit section (Admin => System => Catalog => Manage products => Edit) I wan to display only the General tab for a particular product type.It can also be set for perticualr users also.Now I am showing you the trick only for product type that is for simple product and for all other product all the tab will be shown as it is.

For how to display only the general tab in admin product edit section I have created a simple custom module called JRB_Hideproducttabs and done all processing through observer.In this module the main coding part I have placed in config.xml file and another is observer.php file.

In config.xml file I have declared the observer location and class method in which all process will be done.The config.xml file is placed at the dir: app/code/local/JRB/Hideproducttabs/etc and same way the Observer.php is place at dir:app/code/local/JRB/Hideproducttabs/Model

So now check the below coding for observer declaration :

Also apart from observer I can hide some tab through layout xml file that I have declared in adminhtml section of config.xml file.The hidproducttabs.xml file is situeted at dir:app/design/adminhtml/default/default/layout

Finally the check codings for Observer.php and is located at dir: app/code/local/JRB/Hideproducttabs/Model

how to display only the general tab in admin product edit section
Tagged on:                             

Leave a Reply

Your email address will not be published. Required fields are marked *