There are existing two basic methods of switching off the blocks in Magento by using XML files. After copying from base to our layout necessary XML file, we can remove or comment the block which we want to turn off. More proper to use and the one which allows to keep better order is the second method which is about to create seperate local.xml file in the folder with XML files app/design/frontend/your_layout_folder/your_layout/layout. In this case introduced changes will be placed in one place. 

 

By using default command, You are able to overwrite the block changes for all MAgento websites

1
2
3
4
5
6
<?xml version="1.0" ?>
<layout>
   <default>
      <!-- W tym miejscu nadpisujemy wybrany blok Magento -->
   </default>
</layout>

Depending on needs, we can use some of the below code lines

1
2
3
4
5
6
7
8
9
10
<default>
   <remove name="left.permanent.callout" />  <!--baner pies-->
   <remove name="right.permanent.callout" />  <!--baner back to school-->
   <remove name="catalog.compare.sidebar" />  <!--porównanie produktów-->
   <remove name="paypal.partner.right.logo" />  <!--logo paypal-->
   <remove name="cart_sidebar" /> <!--koszyk-->
   <remove name="left.reports.product.viewed" /> <!--ostatnio oglądane produkty - lewa-->
   <remove name="right.reports.product.viewed" /> <!--ostatnio oglądane produkty - prawa-->
   <remove name="right.reports.product.compared" /> <!--porówanie produktów-->
</default>

 

An above list contains only an example and can be freely modified in accordance with needs. In proper layout file look for the block name, following, by using this in local.xml file we can remove iparticular block. As it is easy to see in to above example, some of the element may be removed from choosen column in Magento store leaving effective block at another place.