Wednesday, 9 January 2013

Product Available (In stock/Out of stock)


<?php
         $thisProduct = Mage::getModel('catalog/product')->load($_product->getId());
         if($thisProduct->isAvailable()):
            echo $this->__('In stock');
         else:
            echo $this->__('Out of stock');
         endif;
    ?>

No comments:

Post a Comment