Update Product Inventory Programmatically in Magento
sing our Magento product grid extension or Magento bulk product editing extension can make it easy to update product information. However, sometimes you need ultimate flexibility that is only possible with a script. If you need to update product inventory programmatically you can use the following: $productId = 169; $stockItem = Mage::getModel(‘cataloginventory/stock_item’)->loadByProduct($productId); if ($stockItem->getId() > … Read more