Magento Get Product Quantity

<?php $product = Mage::getModel('catalog/product')->load($products->getId()); echo $product->getSku(); /* To get stock qty */ echo (int)Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getQty(); ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.