Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

Remove Compare Products and Recently Viewed Boxes on Magento

To do this first I enable the block outlining so I will be able to determine which layout and block a box is located.

To remove these boxes using the xml layout config files, you have to open and change 2 files

1.) For Compare Products Box open: app/design/frontend/default/youttheme/layout/catalog.xml

Search for the keyword compare and you will hit 2 lines, comment all of these if you don't want any instance of compare.


<block type="core/template" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
<block type="catalog/product_compare_list" name="catalog.compare.list" template="catalog/product/compare/list.phtml"/>


2.) For Recently Viewed Box open: open: app/design/frontend/default/youttheme/layout/reports.xml and comment this line:


<block type="reports/product_viewed" before="right.permanent.callout" name="right.reports.product.viewed" template="reports/product_viewed.phtml" />
Remove Compare Products and Recently Viewed Boxes on Magento Remove Compare Products and Recently Viewed Boxes on Magento Reviewed by czetsuya on Wednesday, October 14, 2009 Rating: 5

1 comment:

dede said...

Thanks, i comment the part for the recently viewed... and it's gone :)
but if you use the searchbar and search something it is still there :(
any idea?

Powered by Blogger.