Magento – How to get stock availability and not QTY

inventory

enter image description here

It doesn't seem that it is an attribute that I can get the value of Temporary unavailable
is there any way to get exactly this text?
I found this:

'label' => Mage::helper('catalog')->__('Stock Availability'),
            'name'  => 'stock_data[is_in_stock]',

I don't know how it can help
this link doesnt help me because I have a product which is comming soon status and a product which is out of stock and I have temporary unavailable for just the out of stock status but if I use the code the comming soon will be not available

Best Answer

You can get the in stock status by below code

// $_item->getProductId() -> your product id
$product = Mage::getModel('catalog/product')->load($_item->getProductId());

if ($product->getStockItem()->getIsInStock()) { 
    // $product->getStockItem()->getIsInStock() == 1
    echo "product is in stock";
}else{
    // $product->getStockItem()->getIsInStock() == 0
    echo "product is not in stock";
}