$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product);
You can check stock data in this way:-
echo "<pre>"; print_r($stock->getData()); echo "</pre>";
Or, you can print individually like this:-
echo $stock->getQty();
echo $stock->getMinQty();
echo $stock->getMinSaleQty();
You can check stock data in this way:-
echo "<pre>"; print_r($stock->getData()); echo "</pre>";
Or, you can print individually like this:-
echo $stock->getQty();
echo $stock->getMinQty();
echo $stock->getMinSaleQty();
No comments:
Post a Comment