Stockrows

Guides

How to update stock for many WooCommerce products at once

After a stock count, a delivery or a weekend at a market, dozens or hundreds of quantities in the shop are wrong. Opening each product is not an option. WooCommerce gives you two ways of its own, and both work, with traps worth knowing.

In short: to set the same quantity on many products, or add the same number to each, use the product list's bulk edit. To give each product its own number, import a CSV file that holds nothing but ID or SKU and Stock, with Update existing products ticked.

Way 1: the bulk edit in the product list

  1. First, export the stock as it is now. This way has no undo. Go to Products → All Products, select Export, choose the columns ID, Type, SKU, Name and Stock, and select Generate CSV. Keep the file untouched: it is your record of the old numbers.
  2. Go to Products → All Products. Filter if you want (category, product type, stock status), and select Filter.
  3. Tick the products, choose Edit in the Bulk actions menu (newer versions call it Bulk edit), and select Apply.
  4. Set Manage Stock to Yes if the shop should count stock for these products.
  5. At Stock Qty, choose Change to, Increase existing stock by or Decrease existing stock by, and type the number.
  6. To change only the status, use In stock: In stock, Out of Stock or On backorder.
  7. Select Update, and check a few products.

Its limits

Way 2: a CSV file with only the stock

This is the way that was suggested on WordPress.org's forum to a shop owner who wanted to bring in nothing but stock numbers.

  1. Go to Products → All Products and select Export. Choose the columns ID, Type, SKU, Name and Stock, and select Generate CSV. Keep one untouched copy.
  2. Open the file in a spreadsheet and type the new quantities into the Stock column. If the numbers come from a supplier's or a stock-count list, bring them in with a lookup on the SKU.
  3. Delete every row whose stock you are not setting. This matters: see the first limit below.
  4. Save as CSV, in UTF-8.
  5. In the shop, select Import, choose the file, tick Update existing products, and select Continue. Check the Column mapping, then select Run the importer.

Its limits

Way 3: in a Google Sheet, with Stockrows

Stockrows is our own tool, a Google Sheet with a menu that reads your products from the shop and writes your changes back. There is no file, and nothing is installed on the shop.

  1. Copy the sheet. Open the sheet's link on the order page and choose "Make a copy". The first time you use its menu, Google shows a warning, because the script lives in your own copy. The setup guide says what to expect.
  2. Connect your shop. In your shop, create a pair of REST API keys with Read/Write permission (how to create them). In the sheet, open Stockrows → Settings, enter the shop's address and the two keys, and use the connection test.
  3. Pull. Choose Stockrows → Pull products from the shop. The Products sheet fills with one row for each simple product, each variable product and each variation. A large catalogue comes in steps: keep the progress window open. If it stops, choose the same menu item again and it continues where it stopped.
  4. Type the quantities. Stock quantity is column H. It is the number that WooCommerce's export calls Stock and its bulk edit calls Stock Qty. There is one row for each simple product and each variation, with its SKU in column E. Type whole numbers. Where the shop counts a product's stock on the product itself, shared by its variations, type the number on that product's own row: on the row of a variation that shares it, the preview refuses the quantity and says where to type it. If your counts are in another list, paste that list onto a second tab and bring the numbers in with a lookup on the SKU, then paste them as values. Rows that you leave alone are not sent.
  5. Preview. Choose Stockrows → Preview changes. A sheet lists every value that would change, with the value in the shop now and the value after the push, and every row that would not be sent, with the reason. If the shop did not count stock for a product so far, the preview says that pushing a quantity switches stock management on for it. Nothing is sent by a preview.
  6. Push. Choose Stockrows → Push changes to the shop and confirm the count. Only the rows you changed are sent. A row that was changed in the shop since your pull is skipped and reported, and not overwritten.
  7. If it was wrong. Every push keeps the old values on the Undo sheet. Stockrows → Put back the last push's old values writes them back into the sheet. Then preview and push again.

Where it differs from the file

What to know before you choose this way

The steps for WooCommerce's own screens follow WooCommerce's pages as we read them on 25 November 2026: Bulk editing products, Variable products, Product CSV importer and exporter. Your shop's version may word a button differently.

Related guides