Get A Products Stock Quantity

Updated . Posted . Visible to the public.
$product->getStockItem()->getQty();

Yes, there is no method for it - it's set using setStockItem() from Mage_CatalogInventory_Model_Stock_Item::assignProduct() via the catalog_product_load_after event.

Mike Whitby
Last edit
Posted by Mike Whitby to Magento (2012-05-09 23:46)