{"id":289,"date":"2013-02-22T15:25:32","date_gmt":"2013-02-22T15:25:32","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=289"},"modified":"2013-02-22T15:25:32","modified_gmt":"2013-02-22T15:25:32","slug":"magento-remove-compare-products","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/magento-remove-compare-products\/","title":{"rendered":"Magento Remove Compare Products"},"content":{"rendered":"<p>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.<\/p>\n<p>1. In your magento store admin panel, Go to System-&gt; Configuration and then select Design on the left side bar.<\/p>\n<p>2. Check if your package is \u2018default\u2018 or \u2018somecustomethemename\u2018 . If its \u2018default\u2019 then go the following folder location<\/p>\n<p>Youstoreroot\/app\/design\/frontend\/default\/default\/<\/p>\n<p>In case of custom theme go to the following location<\/p>\n<p>Youstoreroot\/app\/design\/frontend\/yourcustomtheme\/default\/<\/p>\n<p>3. Create layout folder if its not there<\/p>\n<p>4. Create a new layout file called \u201clocal.xml\u201d inside layout folder<\/p>\n<p>and place the code below into it and save it.<\/p>\n<div id=\"highlighter_478826\">\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>1<\/code><\/td>\n<td><code>&lt;?<\/code><code>xml<\/code> <code>version<\/code><code>=<\/code><code>\"1.0\"<\/code><code>?&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>2<\/code><\/td>\n<td><code>&lt;<\/code><code>layout<\/code> <code>version<\/code><code>=<\/code><code>\"0.1.0\"<\/code><code>&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>3<\/code><\/td>\n<td><code>&lt;<\/code><code>default<\/code><code>&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>4<\/code><\/td>\n<td><code>&lt;<\/code><code>remove<\/code> <code>name<\/code><code>=<\/code><code>\"catalog.compare.sidebar\"<\/code><code>\/&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>5<\/code><\/td>\n<td><code>&lt;\/<\/code><code>default<\/code><code>&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><code>6<\/code><\/td>\n<td><code>&lt;\/<\/code><code>layout<\/code><code>&gt;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>5. Go To System-&gt;cache management and refresh the cache types \u201cLayouts\u201c<br \/>\nand \u201cBlock HTML output\u201c. We \u2018re done with this.<\/p>\n<p>6. After refreshing just reload your page and find \u201cCompare Products\u201d has been removed from the sidebar in all your magento pages.<\/p>\n<p>Please ignore the instructions below , as its no more recommended and highly discouraged.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-compare-products.png\"><img loading=\"lazy\" title=\"Magento Remove compare Products\" alt=\"Magento Remove compare Products\" src=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-compare-products.png?w=455&amp;h=352\" width=\"455\" height=\"352\" \/><\/a><\/p>\n<p><strong>1.<\/strong> Go to <strong>yourStorename\\app\\design\\frontend\\base\\default\\layout<\/strong><\/p>\n<p>In this case its <strong>demostore\\app\\design\\frontend\\base\\default\\layout<\/strong><\/p>\n<p>and find the file \u201c<strong>catalog.xml<\/strong>\u201c.<\/p>\n<p><a href=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-did-you-know-customer-service-22.png\"><img loading=\"lazy\" title=\"Magento Remove Compare Products\" alt=\"Magento Remove Compare Products\" src=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-did-you-know-customer-service-22.png?w=455&amp;h=341\" width=\"455\" height=\"341\" \/><\/a><\/p>\n<p><strong>2.<\/strong> We have to override this file by our default template. Create same directory structure what we had for catalog.xml inside base template.<\/p>\n<p>Create Two folders named \u201c<strong>template<\/strong>\u201d and \u201c<strong>layout<\/strong>\u201d inside <strong>app\/design\/frontend\/default\/default<\/strong><\/p>\n<p><strong><a href=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-did-you-know-customer-service-3.png\"><img loading=\"lazy\" title=\"Magento Remove Compare Products\" alt=\"Magento Remove Compare Products\" src=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-did-you-know-customer-service-3.png?w=455&amp;h=341\" width=\"455\" height=\"341\" \/><\/a><\/strong><\/p>\n<p><strong>3.<\/strong> Copy the File \u201c<strong>Catalog.xml<\/strong>\u201d inside the layout folder what we have created inside the default folder.<\/p>\n<p><a href=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-did-you-know-customer-service-4.png\"><img loading=\"lazy\" title=\"Magento Remove Compare Products\" alt=\"Magento Remove Compare Products\" src=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-did-you-know-customer-service-4.png?w=455&amp;h=341\" width=\"455\" height=\"341\" \/><\/a><\/p>\n<p><strong>4.<\/strong> Now <strong>open the catalog.xml file which we have copied just now inside default folder<\/strong> and <strong>comment<\/strong> out the code attached below which are inside the tag <strong>&lt;reference name=\u201dright\u201d&gt;<\/strong>.<\/p>\n<p><a href=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-compare-products-2.png\"><img loading=\"lazy\" title=\"Magento Remove Compare Products\" alt=\"Magento Remove Compare Products\" src=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-compare-products-2.png?w=455&amp;h=341\" width=\"455\" height=\"341\" \/><\/a><\/p>\n<p>FYI :\u00a0 <strong>Kindly use HTML comments &lt;!\u2013 \u2013&gt;.<\/strong><\/p>\n<p><strong>&lt;!\u2013<\/strong><\/p>\n<p>&lt;block type=\u201dcatalog\/product_compare_sidebar\u201d before=\u201dcart_sidebar\u201d name=\u201dcatalog.compare.sidebar\u201d template=\u201dcatalog\/product\/compare\/sidebar.phtml\u201d\/&gt;<\/p>\n<p>\u2013&gt;<\/p>\n<p>And also comment out the code given below in catalog.xml<\/p>\n<p><strong>&lt;!\u2013<\/strong><\/p>\n<p>&lt;catalog_product_compare_index translate=\u201dlabel\u201d&gt;<br \/>\n&lt;label&gt;Catalog Product Compare List&lt;\/label&gt; \u2013&gt;<br \/>\n&lt;!\u2013 Mage_Catalog \u2013&gt;<br \/>\n&lt;!\u2013\u00a0\u00a0\u00a0\u00a0 &lt;reference name=\u201droot\u201d&gt;<br \/>\n&lt;action method=\u201dsetTemplate\u201d&gt;&lt;template&gt;page\/popup.phtml&lt;\/template&gt;&lt;\/action&gt;<br \/>\n&lt;\/reference&gt;<br \/>\n&lt;reference name=\u201dhead\u201d&gt;<br \/>\n&lt;action method=\u201daddJs\u201d&gt;&lt;script&gt;scriptaculous\/scriptaculous.js&lt;\/script&gt;&lt;\/action&gt;<br \/>\n&lt;action method=\u201daddJs\u201d&gt;&lt;script&gt;varien\/product.js&lt;\/script&gt;&lt;\/action&gt;<br \/>\n&lt;\/reference&gt;<br \/>\n&lt;reference name=\u201dcontent\u201d&gt;<br \/>\n&lt;block type=\u201dcatalog\/product_compare_list\u201d name=\u201dcatalog.compare.list\u201d template=\u201dcatalog\/product\/compare\/list.phtml\u201d\/&gt;<br \/>\n&lt;\/reference&gt;<br \/>\n&lt;\/catalog_product_compare_index&gt;<\/p>\n<p>&lt;customer_account_index&gt;<br \/>\n&lt;reference name=\u201dright\u201d&gt;<br \/>\n&lt;action method=\u201dunsetChild\u201d&gt;&lt;name&gt;catalog.compare.sidebar&lt;\/name&gt;&lt;\/action&gt;<br \/>\n&lt;\/reference&gt;<br \/>\n&lt;\/customer_account_index&gt; <strong>\u2013&gt;<\/strong><\/p>\n<p><strong>5.<\/strong> Go to <strong>Varien \/ Cache <\/strong>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<strong>.<\/strong><\/p>\n<p><strong><a href=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-compare-products-3.png\"><img loading=\"lazy\" title=\"Magento Remove Compare Products\" alt=\"Magento Remove Compare Products\" src=\"http:\/\/haijerome.files.wordpress.com\/2010\/11\/magento-remove-compare-products-3.png?w=455&amp;h=352\" width=\"455\" height=\"352\" \/><\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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-&gt; Configuration and then select Design on the left side bar. 2. Check if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[9,3,7],"tags":[],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/289"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}