Try below code to display 5 product per row on your product listing page:
<catalog_category_default>
<reference name="product_list">
<action method="setColumnCount"><count>5</count></action>
</reference>
</catalog_category_default>
Question
I am trying to display 5 products on category page
app/design/frontend/mytheme/default/template/catalog/product/list.phtml
I am trying it on list.phtml, from other reference I have also tried
<?php $_columnCount = $this->getColumnCount();?>
to <?php $_columnCount = 5 ;?>
but this does not work
No correct solution
OTHER TIPS
Try below code to display 5 product per row on your product listing page:
<catalog_category_default>
<reference name="product_list">
<action method="setColumnCount"><count>5</count></action>
</reference>
</catalog_category_default>