Magento 移除标签 How to remove “Tags” block from a product page

This tutorial will show you how to remove Tags block from Magento product pageЖ

How_to_remove_the_Tags_block_from_a_product_page_1

There are 2 ways of removing the tagging feature from product pages:

  1. Navigate to System -> Configuration -> Advanced tab. Set ‘Mage_Tag’ to ‘Disable’ЖHow_to_remove_the_Tags_block_from_a_product_page_21
  2. Open the tag.xml under app/design/frontend/default/themeXXX/layout/ folder.Locate this line: ‘catalog_product_view’, you should find it on line 66.The entire block should look like this:
    <catalog_product_view translate="label">
        <label>Catalog Product View</label>
        <!-- Mage_Tag -->
            <reference name="product.info.additional">
                <block type="tag/product_list" name="product_tag_list" before="-" template="tag/list.phtml">
                <block type="page/html_wrapper" name="product.tag.list.list.before" as="list_before" translate="label">
                <label>Tags List Before</label>
                <action method="setMayBeInvisible"><value>1</value></action>
                </block>
                </block>
            </reference>
    </catalog_product_view>

    Remove the following part of the code:

    <block type="tag/product_list" name="product_tag_list" before="-" template="tag/list.phtml">
    <block type="page/html_wrapper" name="product.tag.list.list.before" as="list_before" translate="label">
    <label>Tags List Before</label>
    <action method="setMayBeInvisible"><value>1</value></action>
    </block>
    </block>

The tags block is no longer on product pages.
原文:http://www.templatemonster.com/help/magento-how-to-remove-the-tags-block-from-a-product-page.html

本文:Magento 移除标签 How to remove “Tags” block from a product page

Loading

Add a Comment

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

Time limit is exhausted. Please reload CAPTCHA.