Breadcrumbs

Home Web Development Increase column numbers in Magento
Increase column numbers in Magento PDF Print E-mail
Written by Administrator   

If you want to increase the number of displayed products columns in row in Magento 1 column template follow the below instructions.

 

Login to Magento Admin section

Go to Catalog->Manage Categories

Select category which you want the 4 columns in the layout

click on the custom design tab

Add the below colde

In the Custom Layout Design add the below code:


<reference name="product_list">

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

</reference>

 

Select 1 column from Page Layout

 

 

If that doesn't work alternatively go to:

 

app/design/frontend/default/[yourtheme]/template/catalog/product/list.phtml

 

Find the below code:

 

<?php $_columnCount = $this->getColumnCount(); ?>

 

And replace it with:

 

<?php $_collectionSize = $_productCollection->count() ?>

<?php $pageLayout=$this->getLayout()->getBlock('root')->getTemplate(); ?>

<?php if ($pageLayout="page/1column.phtml"):?>

<?php $_columnCount = 4 ?>

<?php else: ?>

<?php $_columnCount = $this->getColumnCount(); ?>

<?php endif; ?>

 

Go to Catalog->Manage Categories

Select category which you want the 4 columns in the layout

click on the custom design tab

Select 1 column from Page Layout for the category you want 4 columns per row to be displayed

 

 

For more info click here