Jan 22

Friday

Magento: Quick Change in Column Count for Products Displaying In Category Listing (Grid View)

2
Comment(s)


Hi All,

Figured I’d share a quick Magento snippet (There are several I’d like to share each day. For some reason this particular one seemed quick enough to post).

Want to change the number of products that display in the Magento Category listing?

You’ll need to modify these two files:

  • app/design/frontend/default/YourThemeName/layout/catalog.xml (default theme line 198)
  • app/design/frontend/default/YourThemeName/layout/catalogsearch.xml (default theme line 61)

See the screenshot for the variable columnCount()? In order to change that, go to the following file and add in this snippet:

  • app/design/frontend/default/YourThemeName/layout/catalog.xml (default theme line 198)
<action method="setColumnCount"><columns>3</columns></action> <!-- set your own number -->

catalog.xml

And also this snippet:

  • app/design/frontend/default/YourThemeName/layout/catalogsearch.xml (default theme line 61)
<action method="setColumnCount"><columns>3</columns></action> <!-- set your own number and insert <em>inside</em> the "search_result_list" block tags-->
catalogsearch.xml


View Comments



Jerry says:

April 9th, 2010 at 5:33 pm


It should be noted that sometimes this does not work if the template is customized, in which case view.phtml must be editted directly.


Mara says:

May 4th, 2010 at 12:05 pm


Not working for me in v1.4.0.1.

Leave a comment




blog comments powered by Disqus