Show all products on Category page in magento

This was a recent request, I received from client, to show all products in a category at once, instead of showing paging.

there is no such option, available in Admin panel.

so, I decided to rewrite the block, that handles the limit:


Create a namespace, in 'app/code/local' folder with namespace(I go for “Maniac” 😛 ).

Next, create a ‘Catalog’ folder, for our module, under ‘Maniac’ as “app/code/local/Maniac/Catalog”.

Create, another two folders, under the new module folder



create config.xml, file in etc, with the following contents:

<?xml version="1.0"?>






Create a Toolbar.php, under "app/code/local/Maniac/Catalog/Block/Product/List/", with the following content:

class Maniac_Catalog_Block_Product_List_Toolbar extends Mage_Catalog_Block_Product_List_Toolbar {
* Get specified products limit display per page
* @return string
public function getLimit() {
$limit = $this->_getData('_current_limit');
if ($limit) {
return $limit;

$limits = $this->getAvailableLimit();
$defaultLimit = $this->getDefaultPerPageValue();
if (!$defaultLimit || !isset($limits[$defaultLimit])) {
$keys = array_keys($limits);
$defaultLimit = $keys[0];

$limit = $this->getRequest()->getParam($this->getLimitVarName());
if ($limit && isset($limits[$limit])) {
if ($limit == $defaultLimit) {
} else {
$this->_memorizeParam('limit_page', $limit);
} else {
if (!$limit || !isset($limits[$limit])) {
$limit = $defaultLimit;

$this->setData('_current_limit', $limit);
return $limit;

and voila, here goes all your product on a category page. 🙂


2 thoughts on “Show all products on Category page in magento

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s