1

I have a 'Recently Compared Products' block on the right column on my categories pages. I cannot find a reference to this in the theme specific xml or phtml files, does this mean that it falls back to the default theme files? If so how do I remove this without altering the base files?

I'm running Magento 1.7 and the theme Foundation Framework.

Any assistance would be greatly appreciated.

3 Answers 3

1

Hans answer is right. But it has a small problem. It will remove the recently compared product block from every page. So if you want to use that feature any other page in Magento, then it is not going to work for you since you are removing the block entirely from almost every page.

So if you want to remove this block only from category page, then you should use the appropriate layout handle. In your case this would work

<layout>
    <catalog_category_default>
        <remove name="right.reports.product.compared" />
    </catalog_category_default>
    <catalog_category_layered>
        <remove name="right.reports.product.compared" />
    </catalog_category_layered>
</layout>
1
  • That's a more specific answer to my question, thank you. Commented Apr 1, 2015 at 8:48
4

Add this to your design/frontend/<package>/<theme>/layout/local.xml

<default>
    ...
    <remove name="right.reports.product.compared" />
    ...
</default>
4
  • That didn't work, it removes the Recently Viewed Products. However based on this, I managed to guess that this would work: <remove name="right.reports.product.compared" /> Commented Mar 31, 2015 at 15:30
  • And @CharlieRingo, did it work?
    – 7ochem
    Commented Mar 31, 2015 at 15:42
  • It absolutely did, thank you @Hans for pointing me in the right direction. Commented Mar 31, 2015 at 15:46
  • Ah correct, did read the wrong block name, apologize. I modified my answer with the correct block. Commented Mar 31, 2015 at 16:08
0
<remove name="right.reports.product.compared" />

This worked perfectly for me.

1
  • Please Accept Hans's answer if it helped you. Thanks Commented Apr 1, 2015 at 1:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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