Flash Sale Stock Guard for WooCommerce

Flash Sale Stock Guard for WooCommerce

Details
View on WordPress

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.

See the plugin’s GitHub README for parameters and code examples for each hook.

Details

Plugin code:
flash-sale-stock-guard-for-woocommerce
Plugin version:
1.0.0
Outdated:
No
WP version:
6.4 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.1
Total installations:
0
Last updated:
2026-09-03
Rating:
Times rated:
0
flash-sale
prevent-overselling
stock-management
stock-reservation
woocommerce