Oh snap! You are using an old version of browser. Update your browser to get new awesome features. Click for more details.

Magento Display product stock in viewpage


Step : 1
open this file  yourprojectfolder\app\design\frontend\default\default\template\catalog\product\view\type\default.phtml

Step : 2
and add this line
<?php echo (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty(); ?>

Step : 3
Refresh your Browser

Hope it helps. Thanks.

Hope it helps. Thanks.


Hope it helps. Thanks.

(0) comments