Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Change the number of items on a category page
 
jmayer
Jr. Member
 
Total Posts:  21
Joined:  2007-09-03
 

I have figured out how to change the number of products in a column, but not the number of items on a category page. Anyone care to share how to change the default items per page? For instance the current default is 9, 15,30. I would like to change these

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

look in app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php function getAvailableLimit, you can override this by writing custom block class.

It is also possible to make it a configurable list from admin, probably will get to this later.

 
Magento Community Magento Community
Magento Community
Magento Community
 
carsal
Member
 
Total Posts:  52
Joined:  2008-03-31
Medellin, Colombia
 

Does someone know how to change the initial default “per page” item value in the catalog list view. I have tried editing the mentioned file, but can’t see to find a place to modify this value.

 
Magento Community Magento Community
Magento Community
Magento Community
 
carsal
Member
 
Total Posts:  52
Joined:  2008-03-31
Medellin, Colombia
 

Although not exactly what I was trying to do, in the Admin backend > System > Configuration > Catalog, you will find the list mode, and default values. I just then removed the per page dropdown in the frontend by commenting out the corresponding section in app/design/frontend/default/default/template/catalog/product/list/toolbar.phtml.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top