Magento Question:
Download Job Interview Questions and Answers PDF
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) ?>
Download Magento Interview Questions And Answers
PDF
Previous Question | Next Question |
How to create magento custom module? | What is Module conflict? |