January 18, 2011

Magento hide Recently Compared Products Block and Recently Viewed Products Block

To hide the Recently Viewed Products Block and Recently Compared Products Block on ALL pages on the website, we are going to edit the file:
\app\design\frontend\default\default\layout\reports.xml
Comment out the two block types within the <reference> tag like:

<!-- <block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" /> -->
<!-- <block type="reports/product_compared" before="right.permanent.callout" name="right.reports.product.compared" template="reports/product_compared.phtml" /> -->

Now you are all set. You may have to Flush Cache from Magento Admin.

2 comments:

  1. I am using frontend/default/modern theme there is no any reports.xml file what to do

    ReplyDelete
    Replies
    1. Try to copy the file from default to your own theme folder (use the same path)

      Delete