Eren Labs JOURNAL TR
Store Operations

WooCommerce Stock Status: The Three Values and What Changes Them

The three stock statuses, the exact rule WooCommerce uses to set them, a truth table for the threshold and backorder settings, and what to check when a status looks wrong.

In this article17 sections

WooCommerce stock status has three built-in values: In stock, Out of stock and On backorder. Internally they are instock, outofstock and onbackorder. If a product tracks quantity, WooCommerce works the status out for you every time the product is saved. If it does not, the status is whatever you last chose by hand.

That split explains most surprises. You set a product to In stock, save, and it flips back. Or a quantity of zero still sells. Below is the rule itself, a table you can test your own settings against, and a checklist for statuses that look wrong. Each behaviour was checked in the WooCommerce 11.3.1 source.

The three WooCommerce stock status values#

Label in adminStored valueCan a shopper buy it?
———
In stockinstockYes
Out of stockoutofstockNo
On backorderonbackorderYes

The list comes from one function, wc_get_product_stock_status_options. It is filterable, which is how some extensions add labels such as Pre-order. If your shop shows a fourth status, a plugin or theme put it there, and removing that plugin can leave products with a value core does not recognise.

Managed and unmanaged products behave differently#

Open a product, go to the Inventory tab and look at the box that turns on stock management for it. With the box clear, you see a stock status field and you choose the value yourself. WooCommerce never changes it just because orders arrive, since it has no quantity to count down.

With the box ticked, the status field gives way to a quantity, a backorder choice and a low stock threshold. From now on the status is calculated. Any value you try to force is overwritten at the next save.

  • Use manual status for made-to-order goods, services and items you never count.
  • Use managed stock for anything with a shelf quantity that can run out.
  • Do not mix the two on the same variable product without a reason, because it becomes hard to see which number is in charge.

The rule WooCommerce uses to set the status#

For a stock-managed product, the check runs in this order. It lives in the validate_props method of the product class.

  1. If the quantity is greater than the out of stock threshold, the status becomes In stock.
  2. If not, and backorders are allowed in either form, it becomes On backorder.
  3. Otherwise it becomes Out of stock.
Flow chart: quantity above the threshold means in stock; otherwise backorders decide between on backorder and out of stock
The rule WooCommerce applies each time a stock-managed product is saved.

Note the words greater than. A quantity equal to the threshold is not in stock. With the default threshold of 0, a quantity of 0 is out of stock and a quantity of 1 is in stock.

When stock management is off, the same method also clears the stored quantity, sets backorders to No and empties the low stock amount. That is why a quantity you typed earlier can seem to vanish after you switch tracking off.

A truth table you can test#

Here the store-wide threshold is set to 2, so the last two units are held back.

QuantityBackordersResulting status
———
10NoIn stock
3NoIn stock
2NoOut of stock
2AllowOn backorder
0Allow, but notify customerOn backorder
-4AllowOn backorder
-1NoOut of stock

The third row catches people out. Two units sit on the shelf, yet the shop says Out of stock. That is the threshold doing its job, which is useful as a safety buffer and confusing when someone else set it.

Where the settings live#

Store-wide options are under WooCommerce → Settings → Products → Inventory. The field called Out of stock threshold is the number used in the rule. Its description warns that changing it does not update existing in-stock products. They pick up the new rule when they are next saved.

On the same screen, Out of stock visibility hides out of stock items from the catalogue, and Stock display format controls whether shoppers see the remaining quantity. Neither one changes a status. They only change what visitors see.

Per product, the backorder field has three choices: do not allow, allow but notify the customer, and allow. The two allow choices lead to the same On backorder status and differ in what the shopper is told. Our guide to WooCommerce backorders covers the messages and the order flow.

How to change stock status in WooCommerce#

For one unmanaged product, edit it and pick the value on the Inventory tab. For many unmanaged products, tick them on the Products screen, choose Edit under bulk actions and set the stock status field there.

For managed products, change the cause instead of the status. Raise the quantity, change the backorder choice, or lower the threshold. Then save. If you are correcting quantities after a count, post a proper inventory adjustment so there is a reason on record.

A CSV import can also carry stock columns. If you import both a quantity and a status for a managed product, expect the rule above to decide the final status. Test three rows before you run the whole file.

Variable products: which status wins?#

A variable product has a parent and several variations, and each variation can have its own status. The parent’s status on shop pages reflects its children. If at least one variation can be bought, the product normally stays purchasable. When every variation is out of stock, the parent shows as out of stock too.

A variation can either track its own quantity or share the parent’s pool. Choosing the wrong level is a common source of odd statuses: you type 20 on the parent, but each variation has its own zero. See variation stock: parent or variation before changing a large range.

Why a stock status looks wrong#

It says Out of stock but I have units#

Check the threshold first, then whether the quantity you are looking at is the one in use. A variation with its own tracking ignores the parent figure. Also check for a pending cache: view the product while logged out after clearing your page cache.

It says In stock but the shelf is empty#

The record is wrong, not the rule. WooCommerce only knows what was typed and what orders removed. Breakage, theft, unrecorded counter sales and mistyped receipts all leave the quantity too high. Our list of reasons WooCommerce stock levels go wrong helps you find which one applies.

It keeps changing back after I save#

The product tracks stock, so your manual choice is replaced by the calculated one. Either fix the quantity or turn tracking off for that item.

Customers can buy an item with zero units#

Backorders are allowed, or the product does not track stock and its manual status is In stock. Both are legitimate settings, so decide which you meant.

Status is not the same as low stock#

Low stock is a warning to you, not a fourth status. The low stock threshold triggers an email notification while the product can still be in stock and on sale. If you want that warning to arrive early enough to reorder, base it on lead time and sales rate. Our reorder point guide and the free reorder point calculator show the arithmetic.

For example, if you sell three units a day and your supplier takes seven days, a warning at 2 units is far too late. You need to hear about it at 21 units plus whatever buffer you keep.

A five minute status audit#

  1. On the Products screen, filter by stock status and open Out of stock.
  2. Note any item you know is on the shelf. Check its quantity, threshold and level of tracking.
  3. Spot check five In stock items against the shelf.
  4. Look for sellable products that do not track stock at all.
  5. Record corrections with a reason, then recheck next week.

If the spot check fails more than once, count a whole category. A short cycle count shows whether you have one bad record or a pattern.

Seeing stock status problems with StoreRuler#

StoreRuler is a free order management and back office plugin for WooCommerce, available on WordPress.org. Its product health view counts and filters products that are out of stock, along with products missing a price, SKU, photo, barcode or real category. Its product list shows one row per product with the variations underneath, so you can see which child is the empty one.

StoreRuler Home screen with sales figures, a daily sales chart and panels for orders and stock
StoreRuler Home shows sales alongside the stock that needs attention.

It also has back-in-stock requests, off until you turn them on. Shoppers on an out of stock product or variation can tick a consent box and ask for one email when it returns, and StoreRuler shows how many are waiting. That tells you which empty status is costing you the most interest. It does not add new status values or change how WooCommerce calculates them. Stock counts with barcodes are part of the paid Plus plan.

Keep the rule where your team can see it#

Write down three things: your threshold, which categories allow backorders, and which products are deliberately untracked. A new colleague who knows those will not spend an afternoon trying to force a status that WooCommerce is calculating. Review the note whenever you change a store-wide setting, and remember that existing products only follow it after they are saved again.

WooCommerce stock status: frequently asked questions#


What are the stock status values in WooCommerce?

Core WooCommerce has three: In stock, Out of stock and On backorder, stored as instock, outofstock and onbackorder. Extensions can add more through a filter, so a fourth option in your shop comes from a plugin or theme rather than from WooCommerce itself.


Why does WooCommerce change my stock status back?

The product has stock management turned on, so the status is calculated from the quantity, the out of stock threshold and the backorder setting each time it is saved. Change one of those three inputs, or turn stock management off if you want to choose the status by hand.


Can a product with zero stock still be sold?

Yes, if backorders are allowed, in which case the status becomes On backorder. It can also happen when the product does not track stock and its status was left on In stock. With tracking on and backorders disabled, zero units at the default threshold means Out of stock.


What does the out of stock threshold do?

It sets the quantity at or below which a managed product stops counting as in stock. With a threshold of 2, a product with two units is treated as out of stock unless backorders are allowed. Existing products apply a changed threshold when they are next saved.


How do I bulk change stock status?

For products that do not track stock, select them on the Products screen, choose Edit from bulk actions and set the stock status. For tracked products, update quantities or backorder settings instead, because a manual status would be recalculated and replaced.


More in Store Operations

Keep exploring

All articles
Before you go Let StoreRuler do this in WooCommerce

Order desk, pick lists, packing slips, order tracking, product health, live carts and sales reports, on top of WooCommerce.

Explore StoreRuler Get the free version

Free version on WordPress.org