Magento Question:
How to fetch bestsellers products programmatically?
Answer:
1) <!--?php
2) Mage::getResourceModel('reports/product_collection')--->addOrderedQty()
3) ->addAttributeToSelect('*')->setPage(1, 5)->load();
4) ?>
2) Mage::getResourceModel('reports/product_collection')--->addOrderedQty()
3) ->addAttributeToSelect('*')->setPage(1, 5)->load();
4) ?>
Previous Question | Next Question |
How to create magento custom module? | What is Module conflict? |