Get A Products Stock Quantity

Posted Almost 12 years ago. 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
Almost 10 years ago
Posted by Mike Whitby to Magento (2012-05-09 23:46)