0
点赞
收藏
分享

微信扫一扫

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

i奇异 2023-07-24 阅读 64


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

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

 

  1. Navigate to System -> Configuration -> Advanced tab. Set ‘Mage_Tag’ to ‘Disable’Ж
  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">

1.     <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


 

 

 

 

 

举报

相关推荐

0 条评论