How to show products minimum quantity allowed on cart page. For list and view pages I used this code

$productQuantity = Mage::getModel("cataloginventory/stock_item")->loadByProduct($_product->getId()); 
$i = $productQuantity->getMinSaleQty();

But this code is not working in cart page default.phtml, can someone please help me with correct code.

1 Answer 1


In the cart page, on the cart item object you can do this

$minSaleQty = $_item->getProduct()->getStockItem()->getMinSaleQty();
  • This didn't work, do I need to place this code in default.phtml only or anyother?
    – don7
    Commented Jan 17, 2017 at 12:49
  • yes. In the default.phtml. but be careful. the variable name might be $_item.
    – Marius
    Commented Jan 17, 2017 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.