I want to change the magento left column block. I have

  1. Compare products
  2. Community poll
  3. filtration
  4. My Cart

i want to change the order's to

  1. Filtration
  2. Compare products
  3. my cart
  4. community poll

My working website : http://m.machinetoolsemart.com/welding-machine/tig-welder.html

Can you guide me to solve this?

2 Answers 2


You'd study your layout frontend files

Check for <reference name="left"> tag, and play with before and after parameters to get your desired order

  • <reference name="left"> <!-- Compare product --> <block type="catalog/product_compare_sidebar" after="-" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> <!-- Community poll --> <block type="poll/activePoll" name="right.poll" after="-"> <action method="setPollTemplate"><template>poll/active.phtml</template><type>poll</type></action> <action method="setPollTemplate"><template>poll/result.phtml</template><type>results</type></action> </block> </reference> Commented May 20, 2016 at 8:36
  • my xml content, here compare product and community poll , filtration xml code not present but it will show on after these two. i want to move filtration at first order. Commented May 20, 2016 at 8:37
  • 1
    it's working, my working xml code:<reference name="left"> <block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml"/> </reference> Commented May 20, 2016 at 8:51
  • Glad it helped ;) Commented May 20, 2016 at 9:14

Usage of options before and after for blocks in the layout may help, when all your blocks are called with one method getChildHtml() without mentioning block name. Or the block that contains your blocks is the class core/text_list exemplar (in the words, blocks should be inside). In other cases, before and after won’t has any influence., It is difficult to provide you with a ready solution, because you are using custom theme that differs from the base one. I can only give you a piece of advice to try using options before and after. If they failed to give the result (don’t forget to clear cash before testing) you should deal with the templates.

Don’t forget to check the attributes before and after for each of the blocks for the attributes with the ”-" value.

In the rwd theme you can add the following to the class local.xml:

<catalog_category_layered translate="label">
    <reference name="left">
        <block type="newsletter/subscribe" name="left.newsletter" before="-" template="newsletter/subscribe.phtml"/>

Block should be displayed after filters anyway, because filters are added to the block left_first:

<catalog_category_layered translate="label">
    <label>Catalog Category (Anchor)</label>
    <reference name="left_first">
        <block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
            <block type="core/text_list" name="catalog.leftnav.state.renderers" as="state_renderers" />

It always called before left.

You can receive the full answer if you complete your question with your layout and template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.