Magento 1.9 – How to Get Current Product ID and Quantity on view.phtml

magento-1.9product

I want to know how to get current product id and quantity on view.phtml.

Best Answer

$product = Mage::registry('current_product');
$id = $product->getId();
$qty = $product->getStockItem()->getQty();
Related Topic