When I tried following code, it will just print empty string. How can I get product min sale quantity on this page?
catalog/product/list.phtml
<?php echo $_product->getStockItem()->getMinSaleQty(); ?>
This code solved my problem, because I use quantity increments:
$productData = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product);
$qtyIncrements = $productData->getQtyIncrements();
$_stock_data = $product->getStockItem()->getData();
$_qtde_min = (intval($_stock_data['min_sale_qty'])) ? intval($_stock_data['min_sale_qty']) : 1;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With