Written by me@grafxflow
28 Apr, 2013
4
9,049
I recently had to takeover a Magento website which had layout issues. The problem related to the number of products per page. The layout of the page had been changed but not the number of products per row - see below. I am using the default Installation of Magento for this example.
So the first thing to do was sort the results to show 4 products per row.
Open the following file (it could also be in your custom template) app/design/frontend/base/default/layout/catalog.xml
And find all the instances of: -
<action method="addColumnCountLayoutDepend"><layout>empty</layout>
<count>6</count></action>
And before each add this code:
<action method="setColumnCount"><columns>4</columns></action>
This now leaves a problem with the results being shown. 3 are missing of the bottom row and I know there are more products. The problem relates to the 'Show Per 9 Page' which needs to be changed to 12.
Go into admin and choose System->Configuration. Then on the left goto Catalog->Catalog. The page should now show the Grid only for 'List Mode'. For this example I choose to place in 12,24,36 for 'Page on Grid Allowed Values' and 12 for 'Products per Page on Grid Default Value'.
This will sort the layout issue with the products categories pages.
This is great, but you may have to do the same to your search categories results page depending on its layout, so if you need to change it do the same as above but open the file located at
app/design/frontend/base/default/layout/catalogsearch.xml
Hope this helps anyone having the same problem.
05 Mar, 2013
10 Sep, 2012
I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!
Follow11 Jul, 2023
21 Jun, 2023
Views: 166,096
Views: 40,208
Views: 36,920
Views: 33,515
4 Response
irfan
26 Sep 2013
Not working ;(
me@grafxflow
26 Sep 2013
I have had the same issues but it's usually when I get a Magento website where a developer has changed the system code (Bad Practise) or added custom code. If this is the case it's best to (unfortunately) go through the time consuming process of checking the code against the default magenta download source code. Or the very last option of doing a complete installation from scratch!
Deepak
28 Nov 2013
Hi , Please let me know how to change the number of PRODUCTS in a rows on home page for in TATVAASOFT extension configuration.An early response will be helpful.
Regards,
Deepak
me@grafxflow
28 Nov 2013
I am unsure since I have never used this extension but I have searched the web and found this. Not sure if it answers your question?
You have to overwrite the defaultColumnCount value. One way to do is modify the template file app/design/frontend/base/default/template/catalog/product/list.phtml.
Here you have to find the row under the comment "Grid mode" (about the row 90 - 95):
and change it to: