Magento Forum

Top Brand/Manufacture based on Best Seller Products
 
Muqtada
Jr. Member
 
Total Posts:  3
Joined:  2008-11-06
Karachi, Pakistan
 

I tried displaying Top Seller Brand based on top seller products, but coudnt success

$products = Mage::getResourceModel(’reports/product_collection’)
->addOrderedQty()
->addAttributeToSelect(’*’)
->setStoreId($storeId)
->addStoreFilter($storeId)
->setOrder(’ordered_qty’, ‘desc’)

As I can get $product->getManufacturer();

but how to group manufacturers in above code , so that i get unique manufacturers in the list

like $products->setOrder(’ordered_qty’, ‘desc’);

is there any method to group attributes?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
christinavick
Guru
 
Total Posts:  355
Joined:  2013-11-13
 

Hi,

Have a look this thread http://www.magentocommerce.com/boards/viewthread/215401/

Hope This will help you!!

Thanks

iLoveMage

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top