Magento: Remove specific tabs from product edit in admin
August 8th, 2017
Warning: This post is 7 years old. Some of this information may be out of date.
Here's how to remove specific tabs from the product edit page in Magento's admin area.
Firstly, create an adminhtml layout file reference in your module's config:
# file: app/code/local/Euperia/Core/etc/config.xml
<config>
...
<adminhtml>
<layout>
<updates>
<my_module>
<file>euperia/layout.xml</file>
</my_module>
</updates>
</layout>
</adminhtml>
</config>
Next, add the content for the module. To find out the name
value for the removeTab
call you can inspect the <li>
element of the tab and use the name
attribute of the <a href
tag.
# file: app/design/adminhtml/default/default/layout/euperia/layout.xml
< ?xml version="1.0"?>
<config>
<adminhtml_new_and_edit>
<reference name="product_tabs">
<action method="removeTab"><name>upsell</name></action>
<action method="removeTab"><name>crosssell</name></action>
<action method="removeTab"><name>related</name></action>
<action method="removeTab"><name>reviews</name></action>
<action method="removeTab"><name>tags</name></action>
<action method="removeTab"><name>customers_tags</name></action>
<action method="removeTab"><name>customer_options</name></action>
<!-- Meta Information -->
<action method="removeTab"><name>group_9</name></action>
<!-- Recurring Profile -->
<action method="removeTab"><name>group_11</name></action>
<!-- Design -->
<action method="removeTab"><name>group_12</name></action>
</reference>
</adminhtml_new_and_edit>
<adminhtml_catalog_product_new>
<update handle="adminhtml_new_and_edit"></update>
</adminhtml_catalog_product_new>
<adminhtml_catalog_product_edit>
<update handle="adminhtml_new_and_edit"></update>
</adminhtml_catalog_product_edit>
</config>
Clear your cache and reload your admin area, go to a product edit page and you should see less tabs now.
Previous →
How to upgrade Magento 2 to a later version