WooCommerce · Guide
How to Update Quantity on WooCommerce (Step by Step)

Short answer
Turn on stock management in WooCommerce > Settings > Products > Inventory, then edit the product, open the Inventory tab, enable stock tracking, enter the new quantity and click Update. For many products, use Quick Edit, Bulk Edit or a CSV import with the option to update existing products.
Key takeaways
- Stock management must be enabled in WooCommerce settings before quantity fields appear.
- The product's Inventory tab holds the stock quantity for simple products.
- Bulk Edit can set, increase or decrease stock for many products at once.
- Variations can share one stock number or track stock separately.
- CSV import with update existing products changes stock across the whole catalogue.
How do you update quantity on WooCommerce?
Edit the product, open the Inventory tab in Product data, turn on stock management for the product, enter the new stock quantity, and click Update; Quick Edit and Bulk Edit do the same from the products list.
The WooCommerce plugin includes all of these tools for free. Stock management has to be on at the store level first. Without it, WooCommerce hides the quantity fields and only lets you mark products as in stock or out of stock.
Here are the ways to update stock, from simplest to most advanced:
| Method | Best for | Where |
|---|---|---|
| Product edit screen | One product | Products > edit > Inventory |
| Quick Edit | A few products fast | Products list, hover link |
| Bulk Edit | Many products by the same amount | Products list, Bulk actions |
| Variation settings | Sizes, colours and other variations | Product data > Variations |
| CSV import | Whole catalogue updates | Products > Import |
| REST API or WP-CLI | Syncing with other systems | Code or command line |
If you mean the quantity a shopper changes in the cart, jump to the cart section further down.
How do you turn on stock management in WooCommerce?
Go to WooCommerce > Settings > Products > Inventory, tick the option to enable stock management, and save the changes.
On the same screen you can set:
- Hold stock: how many minutes unpaid orders keep stock reserved
- Notifications: emails for low stock and out of stock
- Low stock threshold: the number that triggers a low stock alert
- Out of stock threshold: the number at which a product becomes out of stock
- Out of stock visibility: whether to hide out-of-stock products from the shop
- Stock display format: whether to show the remaining quantity to shoppers
WooCommerce's inventory settings documentation explains each option. For a full tour of the settings screens, see our guide to WooCommerce settings explained.
How do you update stock quantity on a single product?
Open the product, go to Product data > Inventory, tick the option to track or manage stock, type the quantity, and click Update.
Step by step:
- Go to Products > All Products
- Click the product name to edit it
- Scroll to the Product data box
- Open the Inventory tab
- Tick Manage stock? (newer versions word it as tracking stock quantity for this product)
- Enter the new number in Quantity or Stock quantity
- Choose whether to allow backorders
- Click Update
The stock status then follows the number automatically. When the quantity reaches the out of stock threshold, WooCommerce marks the product out of stock.
The managing products guide from WooCommerce shows the Inventory tab and its fields.
How do you update quantity with Quick Edit?
Hover over the product in the products list, click Quick Edit, change the stock quantity field, and click Update.
Quick Edit is the fastest way to change a handful of products without opening each one. It shows the manage stock checkbox and stock quantity for simple products.
It does not show variation stock. For variable products, you need the full edit screen or a CSV import.
Tip: add the Stock column to the products list through Screen Options at the top of the page. You can then see current levels while you work.
How do you update quantity for many products at once?
Select the products in the list, choose Edit from Bulk actions, set Stock qty to change, increase or decrease by an amount, and click Update.
Step by step:
- Go to Products > All Products
- Filter the list, for example by category or stock status
- Tick the products you want to change
- Choose Edit in Bulk actions and click Apply
- Find Stock qty and pick how to change it
- Enter the number
- Click Update
Bulk Edit is handy after a delivery when many items go up by the same amount. Check a couple of products afterwards to confirm the result.
How do you update quantity for product variations?
Open the product, go to Product data > Variations, expand each variation, tick manage stock for it, enter its quantity, and save changes.
Variable products can track stock in two ways:
- At product level: turn on stock management in the main Inventory tab, and all variations share one stock number
- At variation level: turn it on inside each variation, and each size or colour has its own stock
Variation-level stock is the usual choice for clothing and similar items. A shopper who buys a medium should not reduce the stock of the large.
The Variations tab has a bulk actions menu for setting stock across many variations at once. WooCommerce's variable product documentation covers these settings.
How do you update stock with a CSV import?
Export your products, change the Stock column in a spreadsheet, then import the file under Products > Import with the option to update existing products ticked.
Step by step:
- Go to Products > All Products and click Export
- Open the CSV and edit the Stock column (the import screen maps it to stock quantity)
- Keep the ID or SKU column so WooCommerce can match products
- Save as CSV
- Go to Products > Import and upload the file
- Tick Update existing products
- Check the column mapping and run the import
Matching by SKU is the safest way when your spreadsheet comes from a supplier. The product CSV importer guide lists every column. Our guide on exporting WooCommerce products covers the export side.
Back up your database before a large import. A wrong column mapping can change stock on every product at once.
How do you update quantity with the REST API or WP-CLI?
Send a request to the products endpoint with stock_quantity and manage_stock values, or run the WooCommerce WP-CLI product update command with the same fields.
A REST API request body for one product:
PUT /wp-json/wc/v3/products/123
{
"manage_stock": true,
"stock_quantity": 25
}
The same change with WP-CLI:
wp wc product update 123 --manage_stock=true --stock_quantity=25 --user=admin
Replace 123 with the product ID and admin with an administrator username. WP-CLI itself is documented in the WP-CLI command reference. The WooCommerce REST API docs list the product fields, including the variation endpoints.
API access needs keys. Our guide on getting a WooCommerce API key shows how to create them.
How does WooCommerce change stock when orders come in?
WooCommerce reduces stock automatically when an order is placed and paid or set to processing or on hold, and it adds the stock back when an order is cancelled.
The exact moment depends on the payment method. Online payments usually reduce stock when payment completes. Offline methods, such as bank transfer, often reduce it when the order goes on hold.
Refunds do not always restock items. When you refund, WooCommerce gives you a restock option for the refunded items, so tick it if the goods are coming back.
Check the order notes to see each stock change. WooCommerce logs lines such as stock levels reduced, which helps when numbers do not add up.
How do shoppers update quantity in the cart?
Shoppers change the number in the cart's quantity field; the classic cart then needs the Update cart button, while the Cart block updates the totals automatically.
If your cart page uses the older shortcode, shoppers must click Update cart after changing a number. Many miss it and think the cart is broken.
The Cart block avoids this. Our comparison of cart and checkout blocks vs the shortcode explains the differences.
To limit cart quantities:
- Tick Sold individually in the Inventory tab to allow only one per order
- Use a min and max quantity plugin for other limits
- Developers can change the quantity field's step and limits with the woocommerce_quantity_input_args filter
If the quantity field or totals stop working, read our guide on a WooCommerce cart page that is not working.
Why is the stock quantity not updating?
The usual causes are stock management being off for the product, caching, a stock sync plugin overwriting your change, or orders sitting in a status that does not reduce stock.
Check these points:
| Problem | Likely cause | Fix |
|---|---|---|
| No quantity field | Stock management off | Enable it in settings and on the product |
| Number changes back | Inventory sync plugin or feed | Change stock in the source system |
| Shop shows old stock | Page cache | Exclude product pages or purge cache |
| Orders do not reduce stock | Order status or gateway | Check order notes and status |
| Variation shows wrong stock | Stock set at product level | Turn on stock per variation |
For an overview of current levels, open WooCommerce > Analytics > Stock. Our guide to setting up WooCommerce Analytics covers the reports.
Frequently asked questions
Why can't I see the stock quantity field in WooCommerce?
Stock management is probably turned off. Enable it in the WooCommerce inventory settings, then tick the manage stock option in the product's Inventory tab. The quantity field appears once both are on.
How do I add stock to many WooCommerce products at once?
Select the products in the products list, choose Edit from Bulk actions, and set the stock quantity option to increase existing stock by a fixed amount. For different amounts per product, use a CSV import with update existing products ticked.
Does WooCommerce reduce stock automatically?
Yes, when stock management is on. Stock drops when an order is paid or set to processing or on hold, depending on the payment method. Cancelled orders return stock, and refunds offer a restock option.
How do I set stock for each size or colour?
Open the product's Variations tab, expand each variation and turn on its own stock management. Enter a quantity for each one and save. Leave product-level stock off if every variation needs its own number.
How do I stop customers buying more than one item?
Tick Sold individually in the product's Inventory tab, which limits that product to one per order. For other minimum or maximum amounts, use a quantity limits plugin or a small code snippet from a developer.
Sources
- Managing products WooCommerce
- Configuring WooCommerce settings WooCommerce
- Variable product WooCommerce
- Product CSV importer and exporter WooCommerce
- WooCommerce REST API documentation WooCommerce
- WooCommerce WordPress.org Plugin Directory
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


