Skip to content

Cookbook › WooCommerce

Update stock from a CSV

WooCommerce2 minutesChangesTested 20 Oct 2026
Paste into ChatGPT or ClaudeUse this small CSV to update stock on existing simple products only. Match each SKU exactly, skip missing SKUs without creating products, and read back the quantity and stock status for each change. Leave prices and descriptions alone. SKU,Stock DESK-OAK,7 SHIRT-BLUE,0 UNKNOWN-SKU,3

Changes content or settings on your site. See the recipe below for approval requirements. Read only cannot make changes.

  1. Your assistant reads the CSV and looks up each SKU, checking for an exact match.
  2. It updates each matching product separately and skips SKUs it cannot find.
  3. It reads the saved stock quantities and stock status back and reports a result for every row.
  • Replace the example rows with your own SKUs and quantities. Tested with two existing simple products and one missing SKU, with stock management already enabled.
  • A quantity of zero made the test product out of stock. Prices and descriptions were preserved.
  • Each product update is a separate website action; reads may use additional actions. This is not one bulk action or an uploaded-file importer.
  • Large files, variation CSVs, duplicate rows and invalid quantities were not tested. Accepted on AI Puffer 2.5.14 and WooCommerce 11.2.1 in ChatGPT and Claude.

Need a variation of this recipe, or a different one? Request a recipe