I am using Magento 1.9. I want to show "Minimum Qty Allowed in Shopping Cart" in list.phtml page. For example I have set minimum quantity "6" in Product attribute then it should show "6" in front end. I am trying to write this code but it is throwing an error. Maybe I am writing a wrong code.
<?php
$productQuantity = Mage::getModel("cataloginvetory/stock_item")->loadByProduct($_product->getId());
echo $productQuantity->getMinSaleQty(); ?>
I am getting following error
Fatal error: Call to a member function loadByProduct() on a non-object in //list.phtml