删除最近查看的magento内容

I'm trying to remove "recently viewed" from the home page, but I don't know where the block is called. I tried to delete reports.xml but the block stayed there. Then I tried to delete all the code in home_product_viewed.phtml and it worked, but I don't want to delete the code. I only want to delete the call to that file but I don't know where that file is called.

  1. Goto magento backend.
  2. Select the CMS page for homepage.
  3. In the Design section add the below code in the Layout Update XML field
<reference name="right">
    <action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
</reference>

To remove it from only the home page, I would do this. Go to your /app/design/frontend/packagename/themename/layout/local.xml and edit it like this:

<layout>
    <cms_index_index>
       <remove name="right.reports.product.viewed" />
    </cms_index_index>
</layout>

To verify your packagname and themename, go in to admin - System - Configuration - Design. There may already be other code inside of the layout tag which you should leave there!

This worked for me -> Using left below not right.reports.product.viewed. Custom Layout Update

<reference name="right">
    <action method="unsetChild"><alias>left.reports.product.viewed</alias></action>
</reference>