Magento 1.4 - Get the quantity of most selling products -


what php/magento code can use best selling products , display name of product.

for example, i've sold 10 foos, 20 bars , 50 bazes. want know how query magento system , have "bazes" high selling products (with 50).

thanks you

reports little weird, they're implemented using collections don't have parent model. try following

$c = mage::getresourcemodel('sales/report_bestsellers_collection');          foreach($c $item) {     var_dump($item->getdata()); } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -