0

I have successfully removed the "Compare Prd" feature from my Site, but the SideBar "Compare Prd" is still showing.

How can i remove it from the HomePage, Catalog Page & Single Prod Page ?

http://postimg.org/image/exu16gn7v/

thanks.

1 Answer 1

0

Add this to one of your layout files:

<default>
    <reference name="right"><!-- in case the compare block is on the right sidebar -->
        <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
    </reference>
    <reference name="left"><!-- in case the compare block is on the leftsidebar -->
        <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
    </reference>
</default>

[EDIT]
If the method above does not work (it seams it doesn't), edit catalog.xml layout file and remove any trace of the blocks named catalog.compare.sidebar.

12
  • Thanks. Do you mind telling me the precise Folder/file ?
    – Mave
    Jul 11, 2014 at 12:56
  • add it in app/design/frontend/{package}/{theme}/layout/local.xml. Just make sure you add it inside the <layout> tag
    – Marius
    Jul 11, 2014 at 12:58
  • OK - my local.xml file does'nt seem to be work as i tried to hide "Disc Coupon" block but did'nt succeed. But will try your code & let you know.
    – Mave
    Jul 11, 2014 at 13:02
  • << Unfortunately - not working even clearing all caches. >> << postimg.org/image/tdaxr5fwh >> << Folder: /app/design/frontend/default/MAG090172/layout/local.xml >>
    – Mave
    Jul 11, 2014 at 13:17
  • << Code: <?xml version="1.0" encoding="UTF-8" ?> <layout> <default> <reference name="right"><!-- in case the compare block is on the right sidebar --> <action method="unsetChild"><name>catalog.compare.sidebar</name></action> </reference> <reference name="left"><!-- in case the compare block is on the leftsidebar --> <action method="unsetChild"><name>catalog.compare.sidebar</name></action> </reference> </default> </layout> >>
    – Mave
    Jul 11, 2014 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.