Magento Developer
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment