Return to Snippet

Revision: 55380
at February 4, 2012 07:29 by duzenz


Initial Code
//$product = a magento product model  
$stock = $product->getStockItem();
if ($stock->getIsInStock()) {
    echo "product is in stock";
} else {
    echo "product is not in stock";
}

Initial URL

                                

Initial Description
Magento getting stock status of a product

Initial Title
Magento getting stock status of a product

Initial Tags
magento

Initial Language
PHP