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
Post a Comment