A really simple question with (I bet) a very simple answer… I want to remove one of the product info tabs from my product view page. I want to remove the tab which shows the attributes, but rather than commenting it out in catalog.xml I want to remove it properly through local.xml.
<action method="addTab" translate="title" module="catalog">
<alias>additional</alias><title>Additional Information</title>
<block>catalog/product_view_attributes</block>
<template>catalog/product/view/attributes.phtml</template>
</action>
I thought there may be a removeTab method, but that didn’t work. There’s also method=”unsetChild”, but I cannot see how I would target that specific element as there’s no defined name in the XML.
Any ideas would be much appreciated.
Based on my reading of
Mage_Catalog_Block_Product_View_Tabs::addTabs(), you should be able to remove the block from being rendered with one of the following:Or:
The reason that I believe these will work is that addTab() simply takes the arguments and uses them to create a block instance as a child of the tab parent block.
Zyava’s comment is incorrect, as I assume you know. There is a difference between app/etc/local.xml (a config file) and the explicitly last-loaded local.xml from your design settings.