2

I edited the catalog.xml file but still NOT working !!

Folder: /app/design/frontend/base/default/layout/catalog.xml

Code Removed: Line 56 <block type="catalog/product_compare_sidebar" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>

Line 166 <action method="unsetChild"><name>catalog.compare.sidebar</name></action>

QTN: Is it the correct Folder ??

3 Answers 3

7

base/default is basically a core package/theme. Modifying it is generally considered a Bad Idea. Also, it's usually just a fallback of real theme, such as rwd/default (Magento CE 1.9) or default/default (earlier versions). Modifying your own theme or better yet, using local layout update file (local.xml) is highly recommended.

Simplest way perhaps is to use remove command.:

<layout>
    <default>
        <remove name="catalog.compare.sidebar" />
    </default>
</layout>

Please note that means that the sidebar is removed from ALL pages.

2
  • My local.xml is NOT working !! I tried to remove the Disc Coupon / Shipping Blk - AND DID'NT WORK !!!
    – Mave
    Commented Jul 14, 2014 at 10:35
  • As I suggested you're probably experimenting on local.xml of wrong theme. base/default theme is the failover theme.
    – Pronto
    Commented Jul 14, 2014 at 10:41
3

Never edit the base theme files!

Use an local.xml in your theme (pathtoyourtheme/layout/local.xml)

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <default>
        <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
    </default>
</layout>
-1

<remove name="catalog.compare.sidebar"/>

add this line where you want to remove.

<reference name="left">
     <remove name="catalog.compare.sidebar"/>
</reference>
1
  • 1
    <remove /> works at the layout level, so it never belongs in a <reference />
    – benmarks
    Commented Oct 26, 2015 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.