Last Updated: May 03, 2017
·
1.201K
· dja4mower

Add Inventory Quantity to Magento frontend

To get the quantity in stock for products in Magento use the following code -

$qtyStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty();