Category: Backend files

0

How to add Toolbar and pager to custom product collection in Magento

Let us assume $_productCollection is an object of custom product collection. Create toolbar object like $toolbar = Mage::getBlockSingleton(‘catalog/product_list’)->getToolbarBlock(); Then Assign product collection to toolbar object $toolbar->setCollection($_productCollection); Then set pager to toolbar as a child...

Translate »