Categories

Featured templates

Magento. How to turn on and off Magento default blocks

Daniel Morales April 6, 2015
Rating: 4.0/5. From 2 votes.
Please wait...

This tutorial will show you how to turn off some of the default Magento blocks, such as welcome message, ‘My Cart’ block, ‘Related Products’ block, ‘Recently Added Item’ block, etc.

Magento. How to turn on and off Magento default blocks

  1. To remove/edit a default welcome message text:

    How_to_turn_on_and_off_Magento's_default_blocks_1

    Navigate to System -> Configuration -> Design tab -> Header panel. Edit or delete the contents of ‘Welcome Text’ field:

    How_to_turn_on_and_off_Magento's_default_blocks_2

  2. To remove ‘My Cart’ sidebar block only (leave functionality available):

    How_to_turn_on_and_off_Magento's_default_blocks_3

    Navigate to System -> Configuration -> Checkout tab -> Shopping Cart Sidebar panel. Set ‘Display Shopping Cart Sidebar to ‘No’.

  3. To disable all polls:

    How_to_turn_on_and_off_Magento's_default_blocks_4

    Navigate to System -> Configuration -> Advanced tab. Set ‘Mage_Poll to ‘Disable’.

  4. To remove ‘Related Products’ block:

    How_to_turn_on_and_off_Magento's_default_blocks_5

    Open app/design/frontend/default/themeXXX/layout/catalog.xml file, comment out the following line:

    <block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
  5. To remove ‘Recently Added Item’ block:

    How_to_turn_on_and_off_Magento's_default_blocks_6

    Open app/design/frontend/base/default/template/checkout/cart/sidebar.phtml file, comment out the following lines:

    <?php if(count($_items)): ?>
    <p class="block-subtitle"><?php echo $this->__('Recently added item(s)') ?></p>
    <ol id="cart-sidebar" class="mini-products-list">
    <?php foreach($_items as $_item): ?>
    <?php echo $this->getItemHtml($_item) ?>
    <?php endforeach; ?>
    </ol>
    <script type="text/javascript">decorateList('cart-sidebar', 'none-recursive')</script>
    <?php else: ?>
    <p class="empty"><?php echo $this->__('You have no items in your shopping cart.') ?></p>
    <?php endif ?>
  6. To remove ‘Compare Products’ block:

    How_to_turn_on_and_off_Magento's_default_blocks_7

    Open the file app/design/frontend/default/themeXXX/layout/catalog.xml and comment out the following line:

    <block type="catalog/product_compare_sidebar" after="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/>
  7. To remove tag cloud and disable product page functionality:

    How_to_turn_on_and_off_Magento's_default_blocks_8

    Navigate to System -> Configuration -> Advanced tab. Set ‘Mage_Tag’ to ‘Disable’.

This is the end of the tutorial. Now you know how to remove default functionality of Magento website.

Feel free to check the detailed video tutorial below:

Magento. How to turn on and off Magento default blocks

Magento Responsive Themes
This entry was posted in Magento Tutorials and tagged block, default, Magento. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket