Magento by default now has the ability from the admin area to create a ‘show all’ link via the Products per Page on Grid Allowed Values section of the catalog area. This by default is great, it works fine and should be a great asset to your product listing pages. But you may run into a client who just wants to have a ‘view all‘ link and nothing else which by default is not in Magento just yet; so we have to come up with a solution to this. And the solution is as follows:
First thing to do is to navigate to /app/design/frontend/theme/default/template/page/html/pager.phtml, once you have opened the page add this code to were you want your ‘view all‘ link to be placed.
|
1
|
<br><a href="<?php echo $this->getLimitUrl('all')?>" title="<?php echo $this->__('View All Products') ?>"><br><br><?php echo $this->__('View All') ?><br></a><br> |
This segment of code generates our link with ‘limit’ parameter set to ‘all’. Now when we click on it, it will give us a full category listing.

