Title: Flash Sale Stock Guard for WooCommerce – Stock Reservation &amp; Prevent Overselling
Author: Akshat Saxena
Published: <strong>3. september, 2026</strong>
Last modified: 15. oktober, 2026

---

Søg plugins

![](https://ps.w.org/flash-sale-stock-guard-for-woocommerce/assets/banner-772x250.
gif?rev=3748793)

![](https://ps.w.org/flash-sale-stock-guard-for-woocommerce/assets/icon-256x256.
gif?rev=3748793)

# Flash Sale Stock Guard for WooCommerce – Stock Reservation & Prevent Overselling

 Af [Akshat Saxena](https://profiles.wordpress.org/developerakshat/)

[Download](https://downloads.wordpress.org/plugin/flash-sale-stock-guard-for-woocommerce.1.0.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/flash-sale-stock-guard-for-woocommerce/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/flash-sale-stock-guard-for-woocommerce/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/flash-sale-stock-guard-for-woocommerce/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/flash-sale-stock-guard-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/flash-sale-stock-guard-for-woocommerce/)

## Beskrivelse

Overselling isn’t just a flash-sale problem. Any product with more people watching
it than units left — a restock, a handmade batch, a limited print run, a popular
size running low — can sell the same last unit to two customers within seconds of
each other. **Flash Sale Stock Guard for WooCommerce** closes that window for good:
the instant a guarded product is added to cart, its stock is held against that shopper,
so nobody else can check out with units that are already spoken for. If they don’t
complete checkout in time, the hold expires automatically and the stock goes back
into circulation — no manual cleanup, no oversold orders to refund and apologize
for.

It’s named for the moment it matters most, but it runs every day, on every guarded
product — quietly protecting stock whether or not a sale is even happening.

Stock holds like this are usually locked behind premium inventory or checkout add-
ons. Here, that protection is built in and free from the moment you activate the
plugin — no upsell, no “Pro” version required for concurrency-safe locking, per-
variation targeting, order-status-aware release, or the developer filters below.

#### How it works

 * **Hold on add-to-cart.** Adding a guarded item reserves that quantity immediately,
   before checkout even starts.
 * **Race-condition safe.** When two shoppers fight over the last unit at the same
   instant, a database-level lock scoped to that exact product decides it — not 
   a stock check that was already stale by the time it ran.
 * **Automatic expiry.** Holds release themselves after a duration you set (1 minute
   to 24 hours) — long enough to check out, short enough that an abandoned cart 
   doesn’t sit on your inventory.
 * **A clear hand-off when a hold expires.** When the countdown reaches zero the
   released item is removed from the shopper’s cart and a short pop-up explains 
   that the reservation lapsed, with a button back to the shop — the pattern ticketing
   and limited-drop sites use, instead of leaving a stale cart behind.
 * **Order-aware.** A completed order converts the hold so it stops expiring; a 
   cancelled, failed, or refunded order releases it back to stock.

#### Choose what gets guarded

 * **Every stock-managed product** — a store-wide safety net.
 * **Only products at or below a low-stock threshold you set** (the default) — guard
   scarce items automatically without a manual checklist before every drop.
 * **Only products you mark individually** — a checkbox right on the product’s Inventory
   tab, with its own checkbox per variation, so one variation of a size or color
   can be protected without guarding the whole product.
 * Per-item checkboxes always guard that item, no matter what the store-wide mode
   says — a manual override on top of the automatic rule, not instead of it.

#### Built for how customers actually shop

 * Works on both the classic shortcode-based Cart/Checkout **and** the block-based
   Cart/Checkout — no separate setup for either.
 * An optional live countdown on the cart and checkout pages tells shoppers exactly
   how long their hold is good for. When it reaches zero it becomes a pop-up — background,
   text, and button colours and text size all set from the settings screen — that
   sends them back to the shop to start again.
 * Turn the countdown off entirely and the stock protection still runs invisibly
   in the background.

#### For developers

 * `fssgw_hold_ttl` filter — vary hold duration per product or globally.
 * `fssgw_is_product_guarded` filter — decide guarding programmatically, by category,
   campaign, or anything the settings screen doesn’t cover.
 * `fssgw_release_statuses` filter — control which order statuses release a converted
   hold.
 * `fssgw_providers` filter — register additional service providers without touching
   plugin files.
 * `fssgw_holds_expired` action — fires after each cron expiry sweep, for logging
   or metrics.
 * WP-CLI: `wp fssgw status`.

#### Check Out My Other Plugins

If you find Flash Sale Stock Guard helpful, feel free to check out my other free
WordPress plugins:

 * [Quovex Blocks](https://wordpress.org/plugins/quovex-blocks/) — Modern Gutenberg
   blocks: filterable Query Grid, Post Carousel, Magazine Content Showcase & Announcement
   Banner.
 * [Story Video Block](https://wordpress.org/plugins/story-video-block/) — Fast 
   video player, YouTube/Vimeo embed & video testimonials for Gutenberg with click-
   to-play lazy loading.
 * [Multimage – Multiple Image & Photo Upload for WPForms](https://wordpress.org/plugins/multimage-image-uploads-for-wpforms/)—
   Add multiple image and photo uploads to WPForms Lite with instant AJAX uploads.

## Skærmbilleder

[⌊Settings screen under WooCommerce → Stock Guard.⌉⌊Settings screen under WooCommerce
→ Stock Guard.⌉[

Settings screen under WooCommerce  Stock Guard.

[⌊The "Always guard this item" checkbox on a product's Inventory tab.⌉⌊The "Always
guard this item" checkbox on a product's Inventory tab.⌉[

The “Always guard this item” checkbox on a product’s Inventory tab.

[⌊Live countdown shown on the cart page.⌉⌊Live countdown shown on the cart page.⌉[

Live countdown shown on the cart page.

[⌊Live countdown shown on the checkout page.⌉⌊Live countdown shown on the checkout
page.⌉[

Live countdown shown on the checkout page.

[⌊The pop-up shown on the cart or checkout page when a reservation expires.⌉⌊The
pop-up shown on the cart or checkout page when a reservation expires.⌉[

The pop-up shown on the cart or checkout page when a reservation expires.

## Installation

 1. Make sure WooCommerce is installed and active — this plugin requires it.
 2. Upload the plugin files to `/wp-content/plugins/flash-sale-stock-guard-for-woocommerce`,
    or install it through the WordPress plugins screen directly.
 3. Activate the plugin through the ‘Plugins’ screen in WordPress.
 4. Go to **WooCommerce  Stock Guard** to choose which products are guarded, set the
    hold duration, turn the countdown on or off, and style the expiry pop-up.

## FAQ

### How do I stop overselling on WooCommerce?

Overselling happens because WooCommerce only checks stock at checkout — two shoppers
can add the last unit to their carts at the same time, and both are allowed to try
to pay. Turn on Flash Sale Stock Guard for a product (or let the low-stock default
catch it automatically), and stock is held the moment it’s added to cart instead—
so only one of those two shoppers can ever complete the order.

### Is this only useful during flash sales?

No — that’s just the scenario overselling happens fastest in. The same hold-on-add-
to-cart protection runs every day for any product you guard, sale or no sale: low-
stock items, one-off restocks, made-to-order or limited-run products, anything where
two people could otherwise grab the same last unit.

### Does this require WooCommerce?

Yes. It has no purpose without it, and won’t do anything if WooCommerce isn’t active.

### What happens when a customer’s hold expires?

The held quantity is released back to available stock automatically, and the item
is removed from that shopper’s cart. On the cart or checkout page the countdown 
turns into a pop-up telling them the reservation lapsed, with a button back to the
shop. If the item is still in stock, adding it again starts a fresh hold.

### Does this work with variable products?

Yes — holds are tracked per variation, not just per product.

### Will this slow down my store?

No. Stock checks use a lightweight database lock scoped to the specific product 
being held, so shoppers buying different items never wait on each other.

### Does the countdown work with the block-based Cart and Checkout?

Yes, alongside the classic shortcode-based versions.

### Can I turn off the countdown but keep the stock protection?

Yes — the countdown display and the hold logic are controlled by separate settings.

### Can I change how the expiry pop-up looks?

Yes. **WooCommerce  Stock Guard  Expiry popup** sets its background colour, text
colour, button colours, and text size. The wording and the “back to shop” destination
are fixed.

### Will uninstalling the plugin delete my data?

Not by default. Your guard settings and per-product overrides stay in the database
in case you reinstall. Data is only wiped if you tick “Delete data on uninstall”
in the settings screen first.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Flash Sale Stock Guard for WooCommerce – Stock Reservation & Prevent Overselling”
er open source-software. Følgende personer har bidraget til dette plugin.

Bidragsydere

 *   [ Akshat Saxena ](https://profiles.wordpress.org/developerakshat/)

[Oversæt “Flash Sale Stock Guard for WooCommerce – Stock Reservation & Prevent Overselling” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/flash-sale-stock-guard-for-woocommerce)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/flash-sale-stock-guard-for-woocommerce/),
tjek [SVN repository](https://plugins.svn.wordpress.org/flash-sale-stock-guard-for-woocommerce/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/flash-sale-stock-guard-for-woocommerce/)
via [RSS](https://plugins.trac.wordpress.org/log/flash-sale-stock-guard-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Senest opdateret **4 uger siden**
 *  Aktive installationer **Færre end 10**
 *  WordPress-version ** 6.4 eller højere **
 *  Testet op til **7.1.4**
 *  PHP-version ** 7.4 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/flash-sale-stock-guard-for-woocommerce/)
 * Tags
 * [flash sale](https://da.wordpress.org/plugins/tags/flash-sale/)[inventory](https://da.wordpress.org/plugins/tags/inventory/)
   [stock management](https://da.wordpress.org/plugins/tags/stock-management/)[stock reservation](https://da.wordpress.org/plugins/tags/stock-reservation/)
   [woocommerce](https://da.wordpress.org/plugins/tags/woocommerce/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/flash-sale-stock-guard-for-woocommerce/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Din anmeldelse](https://wordpress.org/support/plugin/flash-sale-stock-guard-for-woocommerce/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/flash-sale-stock-guard-for-woocommerce/reviews/)

## Bidragsydere

 *   [ Akshat Saxena ](https://profiles.wordpress.org/developerakshat/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/flash-sale-stock-guard-for-woocommerce/)