Wednesday 20 August 2014

how to set toolbar on custom product collection in magento

<?php $toolbar = Mage::getBlockSingleton('catalog/product_list')->getToolbarBlock();
$toolbar->setCollection($collection);//insert collection of your  products
 echo $toolbar->toHtml(); ?>

3 comments:

  1. Thanks. It is working for me.

    ReplyDelete
  2. This is a great post. I like this topic.This site has lots of advantage. It helps me in many ways.Thanks for posting this again.
    magento development company in bangalore 

    ReplyDelete
  3. where to put this code

    ReplyDelete