To order , sort or position the magento left/vertical menu you have to alter the catalog.xml
\app\design\frontend\default\YOURTHEME\layout\catalog.xml
The easiest way to do this, is by using the Before or After tags in the XML file.
before=”-” positions the block before all other blocks
after=”-” positions the block after all other block
before=”test” positions this block before a block with name=”test”
after=”test” position this block after a block with name=”test”
For example:
<block name=”pieter” before=”test”/>
or
<block name=”pieter” after=”test”/>
Example:
Layered navigation block:
1 |
<block type="catalog/layer_view" name="catalog.leftnav" after="catalog.magicat" template="catalog/layer/view.phtml"/> |
Compare navigation block:
I set the after tag for blockname catalog.leftnav this will make die magento compare block displayed after the layered navigation.
1 |
<block type="catalog/product_compare_sidebar" after="catalog.leftnav" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> |
Leave a Reply