Magento Forum

   
How to remove a block? 
 
Anshu Mishra
Sr. Member
 
Total Posts:  101
Joined:  2012-04-23
India
 

I wanted a block in each and every page whose template is 2 column-right, but not in product review image and this page is also having the same 2 column-right layout.

So, how can i get rid of that block in the review page.

 
Magento Community Magento Community
Magento Community
Magento Community
 
dmlmdev
Member
 
Total Posts:  33
Joined:  2011-10-25
 

<catalog_product_view>
    <
reference name="right">
        <
remove name="name of block to remove"></remove>
    </
reference>
</
catalog_product_view>

In your local.xml layout file you can get hold of the handle <catalog_product_view> then reference the right if its the right where the block is placed then use the <remove> tag to remove a specific block.

This allows you to remove that block only from the catalog product view page.

You have asked for the catalog product review, i do not know the handle for that off the top of my head but it could well just be catalog_product_review and see if that works.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top