Wednesday, April 18, 2012

Show all product in a page without pagination

If you want to display all product in a page  just open the file

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

Inside this file, the function that we are interested in is getLimit() beginning around line 723.

change
 $limit = 'all';

4 comments:

  1. This is a great solution. Thanks. But a word of warning. You should never modify the core files because they'll be overwritten when you upgrade magento and your changes will be lost.

    You should follow this solutions when you want to modify core files.http://alanstorm.com/magento_upgrade_rewrite_override

    ReplyDelete
  2. Thanks for the solution but what i have to do if i just want to do it for custom list page which i created for my newsletter section..

    ReplyDelete
  3. Thanks for the solution but what i have to do if i just want to do it for custom list page which i created for my newsletter section..

    ReplyDelete
  4. thank you brother. you saved my valuable time !!!!

    ReplyDelete