Tue. Jul 2nd, 2024

12. Magento. How to turn on and off Magento default blocks

1 min read
  1. To remove/edit a default welcome message text:How_to_turn_on_and_off_Magentos_default_blocks_1Navigate to System -> Configuration -> Design tab -> Header panel. Edit or delete the contents of ‘Welcome Text’ field:
    How_to_turn_on_and_off_Magentos_default_blocks_2
  2. To remove ‘My Cart’ sidebar block only (leave functionality available):How_to_turn_on_and_off_Magentos_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_Magentos_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:

    1
    <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_Magentos_default_blocks_5

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

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <?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_Magentos_default_blocks_7

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

    1
    <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_Magentos_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.

 

 

 

July 2024
M T W T F S S
« Jun    
1234567
891011121314
15161718192021
22232425262728
293031