We are using magento 1.9.0 version.
We wants to display the product label as
out of stock on those products which are set as out of stock in admin panel.
Let me know if you need any clarifications.
Please help me to find the solution.
Thanks in advance!
Best How To :
To display the "out of stock" label on product view page, write the below code in the file
$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product);
if($qty <= 0)
<span class="out-of-stock"><span>Sold Out</span></span>
And if you want the label on the category page, write in
NOTE : It is assumed that you are using magento-1.9 or greater