add “View All” link in Magento’s pagination.in product list page you have two follw two steps only:
1. in page/html/pager.phtml file add
<a href="<?php echo $this->getLimitUrl('all')?>" title="<?php echo $this->__('View All Products') ?>">
<?php echo $this->__('View All') ?>
</a>
2 step app/code/local/mage/catalog/block/product/list/toolbar.php file
modify function _construct()
add below code after $this->setTemplate('catalog/product/list/toolbar.phtml'); line
$defaultLimit = $this->getDefaultPerPageValue();
Mage::getSingleton('catalog/session')->setData("limit_page",$defaultLimit);
enjoy Code.
1. in page/html/pager.phtml file add
<a href="<?php echo $this->getLimitUrl('all')?>" title="<?php echo $this->__('View All Products') ?>">
<?php echo $this->__('View All') ?>
</a>
2 step app/code/local/mage/catalog/block/product/list/toolbar.php file
modify function _construct()
add below code after $this->setTemplate('catalog/product/list/toolbar.phtml'); line
$defaultLimit = $this->getDefaultPerPageValue();
Mage::getSingleton('catalog/session')->setData("limit_page",$defaultLimit);
enjoy Code.
No comments:
Post a Comment