2014-08-01

Magento: get product qty/count/quantity

$qtyStock = (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getQty();
where $product - loaded magento product (Mage_Catalog_Model_Product);

No comments:

Post a Comment