top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to fetch 5 bestsellers products programmatically in Magento?

+4 votes
115 views
How to fetch 5 bestsellers products programmatically in Magento?
posted Dec 23, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+2 votes
 
Best answer
Mage::getResourceModel(‘reports/product_collection’)
->addOrderedQty()
->addAttributeToSelect(‘*’)
->setPage(1, 5)
->load();
answer Dec 24, 2015 by Manikandan J
0 votes

Here is the way to go.......

[php]
    Mage::getResourceModel('reports/product_collection')    
    ->addOrderedQty()
    ->setPage(1, 5)
    ->load();
[/php]
answer Sep 7, 2016 by Magento_ocodewire
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...