Magento: Change order of blocks in left column

Magento: Change order of blocks in left column

August 28, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Magento: Change order of blocks in left column

Magento: Reordering Blocks in the Left Column

Magento’s layout system provides ample flexibility for customizing your storefront’s appearance. One common requirement is reordering the blocks within the left column to better suit your design needs. In this post, we’ll address a specific issue faced by many developers—moving the compare products block from the right column to the left while maintaining a desired order.

The Current Setup

The current setup involves two static blocks (block_left_top and block_left_social_icons) that need to be displayed in the left column, followed by the traditionally right-column resident catalog.compare.sidebar. To achieve this, modifications have been made to the local.xml layout file:

<reference name="right">
    <action method="unsetChild"><name>catalog.compare.sidebar</name></action>
</reference>

<reference name="left">
    <block type="cms/block" name="block_left_top">
        <action method="setBlockId"><block_id>block_left_top</block_id></action>
    </block>
    <block type="cms/block" name="block_left_social_icons">
        <action method="setBlockId"><block_id>block_left_social_icons</block_id></action>
    </block>
    <action method="insert"><name>catalog.compare.sidebar</name></action>
</reference>

While this setup successfully moves the compare sidebar to the left column, it fails to honor the desired order of blocks. Currently, the catalog.compare.sidebar block is appearing first in the output.

Understanding the Magento Layout System

To resolve this issue, we must understand how Magento’s layout system processes and renders blocks. When you use the <action method="insert"> directive, it appends the specified block to the end of its parent container (in this case, the left column).

The key to reordering blocks lies in the concept of “asides.” Magento allows you to insert a block as an aside before or after another block. This is achieved using the <action method="remove"> and <block type="core/text_list"> directives.

Reordering Blocks Using Asides

To reorder our blocks, we’ll create an aside for each static block and then append the compare sidebar to the last aside:

<reference name="left">
    <block type="cms/block" name="block_left_top">
        <action method="setBlockId"><block_id>block_left_top</block_id></action>
    </block>

    <!-- Aside for block_left_social_icons -->
    <block type="core/text_list" name="left_social_aside" as="left_social_aside">
        <block type="cms/block" name="block_left_social_icons">
            <action method="setBlockId"><block_id>block_left_social_icons</block_id></action>
        </block>

        <!-- Compare sidebar inserted here -->
    </block>
</reference>

In this updated layout, we first create the block_left_top block as before. Then, we introduce a new text list (left_social_aside) to act as an aside for the block_left_social_icons and the compare sidebar.

To insert the compare sidebar into this aside, simply append it inside the left_social_aside:

<reference name="left">
    <block type="cms/block" name="block_left_top">
        <action method="setBlockId"><block_id>block_left_top</block_id></action>
    </block>

    <!-- Aside for block_left_social_icons -->
    <block type="core/text_list" name="left_social_aside" as="left_social_aside">
        <block type="cms/block" name="block_left_social_icons">
            <action method="setBlockId"><block_id>block_left_social_icons</block_id></action>
        </block>

        <!-- Compare sidebar inserted here -->
        <block type="catalog.compare.sidebar" name="catalog.compare.sidebar"/>
    </block>
</reference>

With this setup, Magento will first render the block_left_top, then the block_left_social_icons, and finally the compare sidebar—exactly as intended.

Conclusion

Reordering blocks in Magento’s left column requires a deep understanding of the layout system. By leveraging asides through text lists, we can precisely control the order in which blocks are rendered.

Remember that layout updates should be applied to your theme’s local.xml file or via custom layouts for specific pages. For more advanced modifications and extensive customization, consider exploring Magento’s design principles on Laravel Company.

Happy reordering!

Catalog Themes Configuration Orders

Our network