/ Published in: PHP
this snippet of code is getting the qty of product in magento
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//if you have a product item model you can use that echo $product->getQty(); //or you can use that for getting qty $product_stock_count = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getQty(); echo $product_stock_count;