Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove the 'tags' block from a product page?

I'm trying to remove the tagging feature from product pages in my Magento install.

Here are the steps I followed to try to do that:

  1. Disabled caching in the Magento admin pages
  2. Cleared my browser cache
  3. Disabled Tags in the admin pages both for default config and individual stores (Dashboard > System > Config > Advanced > Mage_Tag > Disable > Save was the method I used)
  4. Commented out everything in tags.xml

That didn't work the way I expected it to, though. It appears that the tagging functionality no longer works, but the "Tags" tab and the form for adding tags are still displayed on product pages.

How can I remove the tagging feature entirely, including the displayed tags and the add-a-tag form?

like image 450
Craig Fifield Avatar asked May 26 '11 17:05

Craig Fifield


3 Answers

If you are using a local.xml then just use this code:

<remove name="product_tag_list" />

Using local.xml is the easiest way to modify your page. Also the best way btw. Better then just disabling it via backend. Via xml it doesn't load so in the end performance of your shop is better.

like image 87
Xander Kerkhof Avatar answered Oct 11 '22 12:10

Xander Kerkhof


Easy one :) Just add following in local.xml (inside layout tags).

<catalog_product_view>
    <reference name="product.info.additional">
        <action method="unsetChild"><name>product_tag_list</name></action>
    </reference>
</catalog_product_view>
like image 38
Daniel Sloof Avatar answered Oct 11 '22 13:10

Daniel Sloof


which tag.xml did you comment out? The one in your custom theme or the default? You need to do both, otherwise the default layout simply reinserts the values you omitted.

The <catalog_product_view> node in tag.xml is the one you are interested in.

I suggest that you read the article @Alan wrote on Magento XML Layout and install the LayoutViewer extension (or buy CommerceBug) to check that the layout updates are not being inserted then report back here if you still have questions.

HTH,
JD

like image 27
Jonathan Day Avatar answered Oct 11 '22 14:10

Jonathan Day