Magento Remove Compare Products

November 30, 2010 at 7:35 PM 15 comments

In Magento we can remove Compare Products block so easily from the home page. Just follow the steps given below to get rid of it from your home page and other pages.

1. In your magento store admin panel, Go to System-> Configuration and then select Design on the left side bar.

2. Check if your package is ‘default‘ or ‘somecustomethemename‘ . If its ‘default’ then go the following folder location


In case of custom theme go to the following location


3. Create layout folder if its not there

4. Create a new layout file called “local.xml” inside layout folder

and place the code below into it and save it.

<?xml version="1.0"?>
<layout version="0.1.0">
<remove name=""/>

5. Go To System->cache management and refresh the cache types “Layouts
and “Block HTML output“. We ‘re done with this.

6. After refreshing just reload your page and find “Compare Products” has been removed from the sidebar in all your magento pages.

Please ignore the instructions below , as its no more recommended and highly discouraged.


Magento Remove compare Products

1. Go to yourStorename\app\design\frontend\base\default\layout

In this case its demostore\app\design\frontend\base\default\layout

and find the file “catalog.xml“.

Magento Remove Compare Products

2. We have to override this file by our default template. Create same directory structure what we had for catalog.xml inside base template.

Create Two folders named “template” and “layout” inside app/design/frontend/default/default

Magento Remove Compare Products

3. Copy the File “Catalog.xml” inside the layout folder what we have created inside the default folder.

Magento Remove Compare Products

4. Now open the catalog.xml file which we have copied just now inside default folder and comment out the code attached below which are inside the tag <reference name=”right”>.

Magento Remove Compare Products

FYI :  Kindly use HTML comments <!– –>.


<block type=”catalog/product_compare_sidebar” before=”cart_sidebar” name=”” template=”catalog/product/compare/sidebar.phtml”/>


And also comment out the code given below in catalog.xml


<catalog_product_compare_index translate=”label”>
<label>Catalog Product Compare List</label> –>
<!– Mage_Catalog –>
<!–     <reference name=”root”>
<action method=”setTemplate”><template>page/popup.phtml</template></action>
<reference name=”head”>
<action method=”addJs”><script>scriptaculous/scriptaculous.js</script></action>
<action method=”addJs”><script>varien/product.js</script></action>
<reference name=”content”>
<block type=”catalog/product_compare_list” name=”” template=”catalog/product/compare/list.phtml”/>

<reference name=”right”>
<action method=”unsetChild”><name></name></action>
</customer_account_index> –>

5. Go to Varien / Cache directory and delete the files or flush your cache from the Magento admin panel. Now refesh the browser and see the compare products block has been removed successfully from the home page.

Magento Remove Compare Products

Cheers :-)

If you have appreciations, suggestions, difficulties or discrepancies with this kindly let me know through your comments.

Catch you with another useful Magento article

You may also like this

Magento Remove Back To school

Magento Remove Poll


Entry filed under: magento. Tags: .

Magento – {{base_url}} is not recommended [RESOLVED]

15 Comments Add your own

  • 1. Ricardo  |  January 4, 2011 at 9:10 AM

    Nice but the problem is that it will take out entirely from the site…and we only need to take it out of the home page

    • 2. haijerome  |  January 5, 2011 at 10:19 AM

      If you want to get rid of Compare Products only on the home page then i suggest you to have 1-column layout for the home page than the 2 column right by default.

      It won’t show any other widgets on the home page including Compare products widget and let you have it on the other pages (catalog product listing and CMS pages).

      If you have further doubts let me know through your comments.

  • 3. Tony  |  September 14, 2011 at 11:24 PM

    New to Magento so I’ve been looking for good tutorials to get a grasp on its complexity. Started with this one and all of the steps were spot on. Thanks for the post and I’ll be reviewing your other posts as well.

  • 4. Anju  |  December 2, 2011 at 4:45 PM

    no need for will also remove the top menu.

  • 5. Anju  |  December 2, 2011 at 4:47 PM

    Hi it was good effort.but the thing is it will remove the top categorys also.

  • 6. Anju  |  December 2, 2011 at 4:52 PM

    Hi friend I am using magento1.6.1 version.from this how can i remove the compare box from left side bar

  • 7. haijerome  |  December 2, 2011 at 9:56 PM

    @Tony Its great that my articles are really helpful to you. I will come up with much more better articles soon.

    @Anju Let me share the easiest and the simplest way to remove the Compare products on the sidebar.

    1. Create a local.xml file inside app/design/frontend/yourtheme/default/layout

    If you don’t have a theme then create this local.xml inside your app/design/frontend/default/default/layout

    2. And add this following code in this local.xml and save it.

    <?xml version="1.0" encoding="UTF-8"?>
    <layout version="0.1.0">
    <remove name=""/>

    3. Go to system -> cache management and refresh the cache of ‘Layouts’

    4. Now reload your page, you can’t find the compare products on the sidebar anymore.

    Hope this also helps the further readers of this post. By the way as you have experienced it won’t remove the top menu at any cause. May be you have some blocks not properly closed.

  • 8. Technically correct  |  November 7, 2012 at 4:09 PM

    I followed the steps but the compare products options is not getting removed from the home page

    • 9. haijerome  |  November 7, 2012 at 5:49 PM

      Kindly follow the instructions mentioned in my above comment

      I’ve just tried and confirmed in my local Magento C.E.

      All i did was

      1. Create a file called local.xml inside “app\design\frontend\default\default\layout”

      In case if you have a theme then place the local.xml inside theme’s layout folder

      2. and placed the code mentioned in my last comment into local.xml and saved it.

      3. Go to system->cache management and refrsh the cache types (layout and block html output)

      4. Reload the page it will remove the “Compare products” from the home page right sidebar.

      Try it and let me know whether it works or not.

  • 10. WebFlakeStudio (@WebFlakeStudio)  |  January 23, 2013 at 3:46 PM

    You can use this free extension for disabling compare products feature in Magento

  • 11. helena  |  February 20, 2013 at 2:45 PM

    Please help me to solve the problem.
    Objective: to remove the category list in the sidebar of the product page.

    The shop works on a standard template Magento.

    Instead of the standard display categories in the sidebar module installed Codnitive Sidebar Navigation. Everything works fine, but you need to exclude this module and display a list of categories in the sidebar to display products, that is, when the buyer opened the product page – it should not be there.

    From the main page managed to hide the category with an entry in the custom design of code:


    Can I use this code to remove the list of categories in the sidebar to the article?

    Similarly, the need to get rid of the block voting (polls) of all pages except the home page. From the main removed by code:


    Thanks in advance.

    Thanks in advance.

  • 12. classactdesigns  |  March 12, 2014 at 10:27 PM

    You are awesome! Help please! I want to remove Paypal completely from my Magento store checkout. How to do this please?
    Fran (business owner at 65 years old)

    • 13. haijerome  |  March 13, 2014 at 7:33 AM

      Hi Fran, You can disable the paypal payment method from the magento admin panel (system->configuration->paypal) to remove paypal completely from magento store checkout. BTW i checked in your checkout page and found that paypal method is already disabled. Let me know if you still find it in your website. Its my pleasure and privilege to help the elders. And am not awesome but my God is 🙂 Thanks, Jerome

    • 14. haijerome  |  March 13, 2014 at 7:33 AM

      Hi Fran, You can disable the paypal payment method from the magento admin panel (system->configuration->paypal) to remove paypal completely from magento store checkout. BTW i checked in your checkout page and found that paypal method is already disabled. Let me know if you still find it in your website. Its my pleasure and privilege to help the elders. And am not awesome but my God is 🙂 Thanks, Jerome

  • 15. kallesh  |  April 26, 2014 at 11:06 AM



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Most Searched Keywords

magento PHP


Recent Posts

Blog Stats

  • 92,895 hits

%d bloggers like this: