Saturday, August 18, 2012

Magento Add Qty Items on Grid or List View

To show the quantity of items left in stock  just add the following code in list.phtml

we have added int as by default magento will show in this manner 10.00



<?php echo (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product)->getQty(); ?>

Hope this will help you

No comments:

Post a Comment

Thankyou for your Comments

LinkWithin

Blog has moved, searching new blog...