/ Published in: PHP

File location: default -> template -> page -> html -> pager.phtml __or__ default -> template -> catalog -> product -> list -> toolbar.phtml
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- check if in view all mode: --> <?php $_limit = $this->getLimit(); ?> <!-- back to normal pagination if in view all mode: --> <?php if ($_viewAllMode == true): ?> <?php $_itemsPerPage = 9 ?> <div class="pages"> <a href="<?php echo $this->getLimitUrl($_itemsPerPage); ?>"><?php echo $this->__('View %d items per page', $_itemsPerPage) ?></a> </div> <?php endif; ?> <!-- show all code: --> <?php //Show all: ?> <a href="<?php echo $this->getLimitUrl('all'); ?>"><?php echo $this->__('View All') ?></a>
Comments
