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.


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 Jan 17 '17 at 12:49
  • yes. In the default.phtml. but be careful. the variable name might be $_item. – Marius Jan 17 '17 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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