• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Elias Interactive

We Grow Beautiful Websites

  • Blog
  • Show Search
Hide Search

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

Lee Taylor · Jan 22, 2010 · 8 Comments

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

Share this:

  • Tweet
  • Pocket
  • More
  • Email

Blog, Development Magento, magento theme

Reader Interactions

Comments

  1. Jerry says

    April 9, 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.

    Reply
  2. Mara says

    May 4, 2010 at 12:05 pm

    Not working for me in v1.4.0.1.

    Reply
  3. Brady says

    September 28, 2010 at 10:18 pm

    How would I apply this methodology to easily update a CMS page through CMS > Manage Pages > Custom Design > Layout Update XML? I tried inserting the code above, but it didn’t work.

    Thanks!

    Reply
  4. Alex Margineanu says

    February 8, 2011 at 11:46 am

    thanks for the tips.

    Reply
  5. Florian Böhme says

    February 16, 2011 at 2:38 pm

    how can i edit the home page/start page grid layout? the grid columns count of all sites is 4, but the front page is 3. i cant find the place to edit it 🙁

    Reply
    • Jan Chr says

      November 30, 2011 at 11:27 am

      Have the same problem. I only need to modify the number of products shown on the home page (new products). 

      Reply
  6. Munapooja says

    April 17, 2012 at 6:48 am

    dfaf////for display more then 3 product on product or homepage in magento/////
    change code in app/design/frontend/base/default/template/catalog/product/list/phtml

    line 87//gridview
    line 90 change code
    getColumnCount(); ?> apply this under code to it.

    Reply
  7. Munapooja says

    April 17, 2012 at 6:49 am

    line 87//gridview
    line 90 change code
    getColumnCount(); ?> apply this under code to it.

    Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

From the blog

Magento SVN Usage – Best Practices

How to Create Reusable Apple Mail Templates [video]

I’d rather buy from Harry Potter

The Ecommerce Solution You’ll Find Refreshing (drumroll)

Liberating Constraints

More Posts

Connect with us

  • Facebook
  • RSS
  • Twitter
Affiliate Disclaimer

© 2025 · Elias Interactive · Built on the Genesis Framework

  • Blog
  • Affiliate Disclaimer
  • Home