Tuesday, 5 August 2014

Magento toolbar use in custom product calection

    $toolbar = Mage::getBlockSingleton('catalog/product_list')->getToolbarBlock();
       $toolbar->setCollection($_productCollection);
       $layout = Mage::getSingleton('core/layout');
       $pager = $layout->createBlock('page/html_pager');
       $toolbar->setChild('product_list_toolbar_pager', $pager);
       echo $toolbar->toHtml();
       $this->getToolbarHtml() eta comment kore ei code lagabe


No comments:

Post a Comment