Display all products without pagination – Magento 1
To display all products without pagination, we want to edit a core file in Magento.
To avoid feature update issues, first we are going to copy that core file in to our local code pool. So just copy Toolbar.php
file from app/code/core/Mage/Catalog/Block/Product/List/
to our local code pool with same directory structure.
Now our file will be available as app/code/local/Mage/Catalog/Block/Product/List/Toolbar.php
and we are going to edit this file.
Inside this file, we can find a function getLimit()
( beginning around line 723 ). In the beginning of that function, just change $limit
variable value as 'all'
.
$limit = 'all';
After reloading the page, now we can see all the products in a single page with out pagination in Magento. If you feel any missing, just re index all data and refresh the Magento cache and reload again.
Looking for a skilled WordPress/WooCommerce developer? I'm currently available for freelance, contract, or full-time remote opportunities! Let's create something amazing together. Send me a quick message, and I'll respond within 24 hours!
Recent Posts
- Automating Code Linting with GitHub Actions for WordPress Plugins
- Comprehensive Guide to Linting PHP, JavaScript, and CSS in WordPress Plugins Using Composer
- The Ultimate Guide to Indexing in Database Design
- Understanding 'update_meta_cache' in WordPress - When to Use It, When Not to, and Its Impact on Database Queries
- A Guide to Configuring JavaScript and SCSS Paths in WordPress Plugins with @wordpress/scripts
Your Questions / Comments
If you found this article interesting, found errors, or just want to discuss about it, please get in touch.