How to fetch 5 bestsellers products programmatically in magento?
Answer / Avinash Mishra
To fetch 5 bestseller products programmatically in Magento, you can use the following code:nn$productCollection = Mage::getModel('catalog/product')->getCollection()->setOrder("total_purchased", "desc")->setPageSize(5);
| Is This Answer Correct ? | 0 Yes | 0 No |
Who created magento?
Which is better magento or opencart?
What is ecommerce platform?
Explain database engine
How much is magento for small business?
In magento which product types implement a parent-child relationship between
What are the statics blocks?
What are the disadvantages of using magento?
How to upgrade magento?
How to change currency in inr in magento?
What are the differences between eav and flat model?
what are the basic features of Magento?