Search code examples
magentosidebar

Vote and Compare Blocks need to be taken out in magento


I have some troubles in /checkout/cart page with taking out two blocks: - compare products block - voting block

I cant remove them from right sidebar at current layout xml

/layout/checkout.xml

There is only MY ONE adding template to right sidedar

<reference name="right">
 my adding template code here
</reference>

also I have just removed all adding templates to right sidebar from

/layout/page.xml

and as a result I see these two blocks (compare and voting) at right bar anyway (

Let me know where can They be removed by me from ?

Thanks


Solution

  • I hope you're using local.xml to do your customizations.

    In local.xml

    <default>
    <!--other codes-->
    <remove name="catalog.compare.sidebar" />
    <remove name="right.poll" />
    <!--other codes-->
    </default>
    

    if need to remove from checkout - cart page only and retain on other pages then use <checkout_cart_index> handler instead of and use "unSetChild". Remember <remove> will completely remove the block.