Guide · Product page

How to show “only X left” in WooCommerce from real stock

“Only 2 left in stock” is the most honest urgency a store has, because it is a fact: the shopper who wants the product should buy it soon. It stops being honest the moment the number is not your stock: the FTC’s staff report on dark patterns names false low-stock messages as one.

WooCommerce can print the line itself, from the quantity it counts. This guide shows the setting, the threshold behind it and the traps around backorders, what the plugins add, and the SalesMax Stock Scarcity booster, which is ours.

Updated By the SalesMax team at 8theme

Disclosure: SalesMax is our plugin, made by 8theme. Facts about other plugins come only from each vendor’s own pricing page, documentation and WordPress.org listing, linked under Sources. Prices and features checked 19 Nov 2026. Prices change; check the vendor’s page before you buy.

WooCommerce’s own stock line

Go to WooCommerce → Settings → Products → Inventory.

  1. Check that stock management is on. Manage stock → Enable stock management; it is on in a new store. WooCommerce then keeps a count and lowers it with every sale. Without it a product can only be in stock, out of stock or on backorder, with no number.
  2. Give the product a quantity. In the product’s Inventory section, switch on stock management for the product and type the Quantity. WooCommerce marks the product out of stock by itself when it runs out.
  3. Choose the display format. Stock display format has three options:
OptionWhat the shopper sees
Always show quantity remaining in stock (the default)“12 in stock”, at every quantity
Only show quantity remaining in stock when low“Only 2 left in stock” at or below the low-stock threshold, otherwise “In stock”
Never show quantity remaining in stockNo number

“Only show when low” is the honest scarcity setting: the number appears only when it is small enough to matter, and it is always the real count. The exact words come from WooCommerce’s translations, so your theme or language may print them slightly differently.

What counts as low

WooCommerce’s documentation does not say which number “when low” uses; its code does. It is the low stock threshold: the product’s own threshold if you set one, for a variation its parent product’s, and otherwise the store-wide Low stock threshold in the Inventory settings, which is 2 in a new store.

  • The same threshold also sends you the low-stock email, so raising it to 5 for the shopper’s sake means more emails for you.
  • Set a higher threshold per product where it makes sense: a product that sells ten a day is “low” at a larger number than one that sells one a week.
  • The separate Out of stock threshold (0 by default) is the count at which WooCommerce treats the product as sold out.

Backorders, variations, held stock

  • Backorders. With Allow, but notify customer, WooCommerce adds “(can be backordered)” to the stock line. With plain Allow, the product looks like any in-stock product. Either way, a product you can backorder is not really scarce: do not dress it up as “only 2 left”.
  • Variations. Stock can be counted per variation or for the whole product. Counted for the whole product, the quantity covers all variations, so “only 3 left” means three across every size, not three of the size on screen.
  • Held stock. Hold stock (minutes) reserves stock for orders waiting for payment and cancels the unpaid order when the time runs out. A reservation does not change the number on the product page; the count drops when an order is paid or put on hold.

The line not to cross

A stock line is honest when it is your count. It is a problem when it is not:

  • In the EU, Annex I of the Unfair Commercial Practices Directive lists practices that are unfair in all circumstances. Point 7 is falsely stating that a product will be available only for a very limited time, to push an immediate decision. It is written about time rather than quantity; the directive’s general rules on misleading practices cover the rest. Ask a lawyer about your own case.
  • In the US, the FTC’s staff report “Bringing Dark Patterns to Light” (September 2022) lists a “False Low Stock Message” under scarcity, next to false high-demand messages; baseless countdown timers are listed under urgency.

In practice: show only a number WooCommerce counted, never a number typed into a plugin; do not reset stock to keep the message up; and do not pair a real stock line with a countdown that restarts.

Plugins that change the line

As listed on WordPress.org on 19 Nov 2026
PluginFree versionWhat it doesWhere the number comes from
Advanced Custom Stock Status (Softound)Yes; 8,000+ active installationsRewrites WooCommerce’s stock texts, such as “Only %s left in stock”, with your own words and colours, per product or for the storeWooCommerce’s own quantity
Show Stock Status for WooCommerceYes; 1,000+ active installationsShows the stock quantity under each product on shop and category pagesWooCommerce’s own quantity
Countix Sales Countdown Timer (VillaTheme)Yes; 5,000+ active installationsA countdown timer with a sale progress bar showing quantity left and soldA goal you set on the product, with sales counted from the order statuses you pick: not necessarily your stock

The first two only change how the real number looks. A bar whose “left” figure comes from a goal you type is a different thing: if you use one, set the goal to the stock you actually have.

SalesMax Stock Scarcity

The Stock Scarcity booster shows a card on the single product page, between the price and the Add to cart button, with your heading, a badge and a message that prints the product’s WooCommerce stock quantity. It has no countdown, no visitor counter and no “sold in the last hour” line.

  • It needs a tracked quantity. The line prints only when WooCommerce counts the product’s stock.
  • Setup: SalesMax → Sales Boosters → + New Booster; the Minimal or Colorful template; the booster status, a start and end date, and conditions such as product categories or user roles.
  • What is not documented: 8theme’s documentation has no article for this booster, so the facts here come from the booster page. That page says what it could not confirm: the threshold field, how the card’s bar fill maps to stock, and how it behaves with backorders, unlimited stock and per-variation stock. Test those on a staging copy first.

If WooCommerce’s own “Only 2 left in stock” line is enough for you, you do not need a plugin for this at all.

Check it on the store

  1. Set a test product to a quantity above the threshold, then at it, then below it, and read the product page each time.
  2. Do the same with a variable product, choosing each variation.
  3. Allow backorders on it and read the line again.
  4. Place a test order and check that the number went down by what was ordered.
  5. Look at the page on a phone: the stock line should sit near the Add to cart button, not below the fold.

Questions

How do I show “Only X left in stock” in WooCommerce?

Check that Manage stock is on in WooCommerce → Settings → Products → Inventory (it is in a new store), give the product a stock quantity, and set Stock display format to “Only show quantity remaining in stock when low”. WooCommerce then shows “Only 2 left in stock” at or below the low-stock threshold and “In stock” above it.

What number does “only show when low” use?

The low stock threshold: the product’s own if you set one, then the parent product’s for a variation, then the store-wide Low stock threshold, which is 2 in a new store. The same threshold triggers the low-stock email.

Can I hide the stock quantity in WooCommerce?

Yes. Set Stock display format to “Never show quantity remaining in stock”. WooCommerce keeps counting stock; it just stops printing the number.

Is a low-stock message legal?

A true one is. A false one is a problem: the FTC’s 2022 staff report on dark patterns lists “False Low Stock Message” as a dark pattern, and the EU’s Unfair Commercial Practices Directive bans falsely claiming a product is available only for a very limited time. Show only the count WooCommerce keeps.

Does SalesMax Stock Scarcity show made-up numbers?

No. It prints the product’s WooCommerce stock quantity and needs a tracked quantity to print anything. It has no countdown and no visitor counter.

Sources

Each page below was read on 19 Nov 2026. Defaults the documentation does not state were read in the WooCommerce source on GitHub (version 11.3). Installation counts come from WordPress.org.

Show all 11 sourcesShow fewer sources

AI Store Scan

See which upsell offers your store already runs.

The AI Store Scan reads your public storefront pages and lists the upsell offers it finds and the ones it does not.

All 17 boosters in every planFrom $7/mo · billed annually
See plans