Well, that is pretty simple but in case someone will need this, just:
$product = Mage::getModel('catalog/product')->load(123); $inStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getIsInStock();
PHP, Magento, iOS and more
Well, that is pretty simple but in case someone will need this, just:
$product = Mage::getModel('catalog/product')->load(123); $inStock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getIsInStock();