I'm trying to get in the home page 12 bestseller products with this code:
$_productCollection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect('*')
->addOrderedQty()
->setStoreId($storeId)
->addStoreFilter($storeId)
->setOrder('ordered_qty', 'desc');
The problem is that with this code I have the bestsellers of all stores.
The parameter ->setStoreId() and ->addStoreFilter don't work.
Any idea?
EDIT
With the code of Rakesh Donga get the next list:
These products have the status "disabled" in backend.
In the backend go to Reports -> Products -> Products ordered and get this products: