Magento Forum

   
Design Tip: How to change # of products per page from Default 9, 15, 30…
 
NickL
Sr. Member
 
Avatar
Total Posts:  188
Joined:  2007-08-31
 

Just a tip in case anyone else runs into this issue…

If you need to change the OPTIONS for the # of products showing on your grid/list layout:

Edit Lines 362 .. .  app/code/core/Mage/Catalog/etc/config.xml

That’ll let you change the options from the default 9,15,30 to your own settings. In my case, 12,16,24..

Just a heads up.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Thejosh13
Sr. Member
 
Total Posts:  252
Joined:  2008-06-23
 

Does anyone know if there is a way to get rid of ALL? I can change anything but there doesnt seem to be a way to limit the products per page to just the numbers and not “ALL” ? 
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
turbo1
Sr. Member
 
Avatar
Total Posts:  296
Joined:  2008-08-19
Los Angeles, CA
 
Thejosh13 - 04 August 2008 02:51 PM

Does anyone know if there is a way to get rid of ALL? I can change anything but there doesnt seem to be a way to limit the products per page to just the numbers and not “ALL” ? 
Thanks

Does anyone know how to do this?  gulp

 
Magento Community Magento Community
Magento Community
Magento Community
 
batman
Jr. Member
 
Total Posts:  8
Joined:  2008-07-30
 

In Magento 1.1.6

Edit:

./app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php

Find:
return ($perPageValues + array(’all’=>$this->__(’All’)));

and replace it with:

return ($perPageValues);

NOTE: There are two occurences of this line, one for Grid mode and one for List mode.

Seems to me this sould be obtain from the configuration stored in the database, not hardcoded.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jose Dorrego
Jr. Member
 
Total Posts:  7
Joined:  2008-10-01
Barcelona, España
 
NickL - 03 April 2008 12:14 PM

Just a tip in case anyone else runs into this issue…

If you need to change the OPTIONS for the # of products showing on your grid/list layout:

Edit Lines 362 .. .  app/code/core/Mage/Catalog/etc/config.xml

That’ll let you change the options from the default 9,15,30 to your own settings. In my case, 12,16,24..

I would recomend modifying “app/design/frontend/default/modern/layout/catalog.xml” instead, to avoid touching the core files.

Cheers.

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