Tuesday, 18 October 2011

Permanently change the ‘view x items per page’ in the admin backend from the default of 20

In sections like CMS->Static Blocks, CMS->Pages, Catalog->Manage Product etc.  if you have more than 20 items magento will split them into multiple pages of results.

The fix itself is pretty easy, just open up:

Somewhere near the top of the file (around line 70) you'll find the following code:
protected $_defaultLimit    = 20;
Replace it with: 
protected $_defaultLimit    = 999;
As your updating a core file within Magento this change will be overwritten every time you upgrade your magento so you'll have to go back and alter it again after each upgrade. 

If you want to add new page no to pager than open file 

Somewhere in the file (around line 81) you'll find the select tag code and copy option line and paste with your desire page no.


  1. This comment has been removed by the author.

  2. Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

    Japs Buidon is a Social Media Specialist and belongs to a team of Magento Developer in Florida. For more tutorial and tips you can follow him here -> alwaysopencommerce.com