Here is the way to go……
Mage::getResourceModel(
'reports/product_collection'
)
->addOrderedQty()
->addAttributeToSelect(
'*'
)
->setPage(1, 5)
->load();
reference: http://jaseir.com/magento/how-to-fetch-5-bestsellers-products-programmatically/
No comments:
Post a Comment