WooCommerce reserved stock: show units tied up in unshipped orders

Published Updated 2 min read

WooCommerce keeps stock as a single number that drops when an order is placed. Nothing tells you how many of those deducted units are still on a shelf waiting to be packed and how many have actually left the building.

A small store that ships every order as it arrives never notices. A store that batch-picks, packs on a schedule, or has any gap between confirming an order and shipping it is missing exactly one figure: how many units are reserved in orders that have not shipped yet.

Shopware and similar platforms show reserved stock as its own field beside available stock. WooCommerce does not. A small plugin adds a reserved count to the Products list and the product edit screen, without a full inventory extension.

Why one stock number causes confusion during fulfilment

When the stock field says 8, it might mean 8 units are free to sell with nothing committed. It might mean you had 12, four sit in processing orders, and 8 remain. From the Products screen alone, without opening every open order, you cannot tell which.

It bites hardest at a stock count or a reorder decision. Count 12 on the shelf while WooCommerce says 8, and you have to work out whether that is a data error or four units in unshipped orders. A check that should take a second takes minutes when the orders are spread over several pages.

What is missing is reserved stock: units deducted from the available count because an order exists for them, but still physically in the warehouse. Available plus reserved equals physical. WooCommerce tracks the first; this plugin shows the second.

A Reserved column and a note under the stock field

The Products list gains a Reserved column: for each product with stock management on, the units in orders that are processing, on-hold or pending payment. Zero means nothing is committed. A dash means the product does not use WooCommerce stock tracking, so there is nothing meaningful to count.

In the Inventory tab, under the stock quantity, a note appears when anything is reserved: '4 units reserved in unshipped orders (processing, on-hold, pending payment)'. When nothing is, the note stays hidden and the screen looks as it always did.

For variable products the column totals reserved units across all variations and shows one number on the parent. Which variation they belong to is visible in the orders themselves.

Load time, physical counts and custom statuses

Counts are worked out on every load of the Products list by fetching all open orders once and adding up their line items. With a handful of processing orders that is invisible. With hundreds at once, the list will load noticeably slower; ATUM Inventory Management reads reserved stock from its own table, which holds up better at that scale.

Physical stock is never recorded as its own field you update when goods arrive. The physical figure (stock plus reserved) is derived, not stored. If receiving matters to you (logging purchase orders, booking deliveries against them, reconciling differences), ATUM is built for it, with a dedicated stock table and a purchase order module.

Only the three built-in statuses count. If your workflow has a status such as packed or ready-to-ship between processing and completed, units there are not counted as reserved unless that status is added to the wc_get_orders call inside rswoo_load_map.

What you get

Included

  • A Reserved column in the WooCommerce Products list showing units in processing, on-hold, or pending payment orders
  • A note in the product Inventory tab showing the same count when units are currently reserved
  • Variable products: reserved units totalled across all variations in the list column

Not included

  • Physical stock as a separately recorded field: the physical count is derived from WooCommerce stock plus reserved, not tracked independently
  • Variation-level reserved counts broken out individually in the products list column
  • Custom order statuses: only processing, on-hold, and pending payment are included
  • Performance at scale: querying all open orders per page load will be slow for stores with many concurrent orders
  • Purchase order receiving, stock reconciliation, or any inbound inventory workflow

ATUM Inventory Management does the things on the right. This build covers the part most sites use.

Build it in Steem

The button opens the builder with this guide's prompt filled in, so you can change anything before it runs. Nothing is built, and nothing is charged, until you send it.

Build this pluginAbout 55 credits. The free plan includes enough for one.
Read the prompt (290 words)

Build a WooCommerce plugin called Reserved Stock for WooCommerce. Plugin Name: Reserved Stock for WooCommerce. Description: Shows how many units of each product are tied up in unshipped orders. Single PHP file. No dependencies beyond WooCommerce. Write a function rswoo_load_map() that returns a static array mapping product IDs (integers) to reserved unit counts (integers). On the first call: fetch all orders using wc_get_orders( [ 'status' => [ 'wc-processing', 'wc-on-hold', 'wc-pending' ], 'limit' => -1, 'return' => 'objects' ] ). For each order, call get_items() and loop the line items. For each line item, determine the parent product ID: if get_variation_id() returns a non-zero value, the parent product ID is the value returned by get_product_id() (WooCommerce stores the parent ID in that field for variation line items); otherwise use get_product_id() directly. Add get_quantity() to $map[ $parent_id ]. Store $map in a static variable so subsequent calls return without re-querying. Return the map. Add a column to the products admin list. Use filter manage_edit-product_columns to insert a column with key rswoo_reserved and heading Reserved, positioned after the column with key woocommerce-stock. In action manage_product_posts_custom_column, when the column key is rswoo_reserved: call rswoo_load_map() and look up $reserved = $map[ $post->ID ] ?? 0. Load the product with wc_get_product( $post->ID ). If get_manage_stock() is true, output the integer as plain text, wrapped in <strong> if it is greater than zero. If get_manage_stock() is false, output &mdash;. Hook into woocommerce_product_options_stock to add a note on the product edit screen. Call rswoo_load_map() and look up the count for get_the_ID(). If the count is greater than zero, output: <p class="description">{$reserved} units reserved in unshipped orders (processing, on-hold, pending payment).</p> where {$reserved} is the actual integer. No settings page, no AJAX endpoints, no inline CSS, no inline JS.