Quick Task Cheat Sheet

Other topics

Remarks:

https://gist.github.com/arosenhagen/2397824

Many many snippets very helpful

Get product Stock Qty

load($id); // or load it by SKU // $sku = "microsoftnatural"; // $_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $sku); $stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product); print_r($stock->getData()); echo $stock->getQty(); echo $stock->getMinQty(); echo $stock->getMinSaleQty();

Contributors

Topic Id: 7060

Example Ids: 23728

This site is not affiliated with any of the contributors.