How to update inventory by sku in magento using csv file

How to update inventory by sku in magento using csv file

In this post i’ll show how to update inventory by sku in magento. In order to achieve this you need to create a csv file containing list of magento sku with respective inventories. Also i have extended the code so that once import is done, import file moves to a backup folder.

Create a php file in magento root folder (in my case i named file as inventory_import.php) and paste below inventory update code in that file.

Summary
Review Date
Reviewed Item
Update inventory by sku
Author Rating
5
(Visited 60 times, 1 visits today)
  • avinash gaud

    Thanks for writing this article, saved hours of my time.