All about Magento E-commerce Store.......MagentoForum: How to change blocks order in Magento

Thursday, July 7, 2011

How to change blocks order in Magento

This tutorial will show you how to change the modules order in Magento. The modules order is defined in the xml files from the app/design/frontend/default/theme###/layout directory.

Each block has an option "before" or "after" where you can define the block name that will be after or before the module you edit.

For example you want the Shop By block be displayed after the My Cart module.

Edit catalog.xml file:

  <block type="catalog/layer_view" name="catalog.leftnav" after="cart_sidebar" template="catalog/layer/view.phtml"/> 





No comments:

Post a Comment