Magento Change Coloum Count To Display Product

If we need to change or incress number of prodct in a coloum then we need to edit catalog.xml, By default Magento give 3 prodcut display
in coloum. The example given below with which we can change coloum count.

find the code below in catalog.xml
[xml]
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
[/xml]
just below this code pase the code given below
[xml]
<action method="setColumnCount"><columns>4</columns></action>
[/xml]
Now you need to change display of search pageso for it we need to edit catalogsearch.xml

find the code below in catalogsearch.xml
[xml]
<block type="catalog/product_list" name="search_result_list" template="catalog/product/list.phtml"></block>
[/xml]
Just paste the code given below under it
[xml]
<action method="setColumnCount"><columns>4</columns></action>
[/xml]

Leave a Comment

Your email address will not be published. Required fields are marked *

*