Warning: Use of undefined constant wp_cumulus_widget - assumed 'wp_cumulus_widget' (this will throw an Error in a future version of PHP) in /home/blogoptimise/public_html/wp-content/plugins/wp-cumulus/wp-cumulus.php on line 375
Optimise Blog » Change the Number of Columns in Product Grid – Magento 1.4
Warning: Use of undefined constant style - assumed 'style' (this will throw an Error in a future version of PHP) in /home/blogoptimise/public_html/wp-content/themes/optimblog/functions.php on line 522

Change the Number of Columns in Product Grid – Magento 1.4

Written by Adrian Hart

Topics: Magento

In Magento the default number of columns in the Product Grid view is 3.

This is fine for a 3 column layout. If you creating a custom layout, however, you may need to change the number of columns (or Column Count). This is how you do it.

In the catalog.xml file in your skin’s Layout folder look for this line:

<block type=”catalog/product_list_upsell” name=”product.info.upsell” as=”upsell_products” template=”catalog/product/list/upsell.phtml”>

Copy the line below it:

<action method=”setColumnCount”><columns>4</columns></action>

In these sections in catalog.xml:

<!– Category default layout –>
<!– Category layered navigation layout –>

Look for the following and paste your copied line AFTER it:

<block type=”catalog/product_list” name=”product_list” template=”catalog/product/list.phtml”>

And that’s it!

Obviously, if you want 5 columns, change the number between the <columns> tags.

Leave a Comment Here's Your Chance to Be Heard!