I want to show 4 products in one row on my Magento site.
I tried some tricks but it doesn’t work..
I set this in list.phtml
<?php $_columnCount = 4; ?>
but nothing..
I also put this in catalog.xml
<action method="setColumnCount"><count>4</count></action>
Here is my list.phtml and my catalog.xml
This is my screenshot:
Best Answer
You can set the column count through the layout XML. I'm guessing your homepage is a CMS page so the block was probably added in the
Design
tab underLayout Update XML
.The XML syntax should look something like this for adding the list and setting the column count.