Visible Stock Threshold for WooCommerce

설명

Visible Stock Threshold lets you control what customers see and can buy:

  • Visible stock cap: If real stock is above the threshold, only the threshold amount is shown/purchasable.
  • Strict Mode: If real stock ≤ threshold, the product is Out of Stock (not purchasable).
  • Multiple levels: Per-product, per-category, role-based, or global default.
  • Custom message: “Only {qty} left in stock” (fully editable).
  • Secure limits: Frontend input is capped and server-side validations prevent bypassing limits.
  • Variation support, i18n-ready, clean code, no templates overridden.

Precedence: Product > Role > Highest Category > Global.

Why this plugin?

Urgency marketing without lying: keep internal buffer stock while honestly limiting visible/purchasable quantity.

Works with

WooCommerce stock-managed products (simple & variations). If stock management is off, plugin stays out of the way.

스크린샷

설치

  1. Upload the plugin folder to /wp-content/plugins/ or install via Plugins Add New.
  2. Activate Visible Stock Threshold.
  3. Go to WooCommerce Visible Stock Threshold to configure:
    • Enable on storefront
    • Strict Mode
    • Global default threshold
    • Availability text (use {qty})
    • Role-based overrides
  4. (Optional) Set thresholds per Product (Inventory tab) and Product Category.

FAQ

Does it change real stock?

No. It only changes what’s visible and purchasable to the customer.

How does Strict Mode work?

If real stock ≤ threshold, the product is Out of Stock. If real stock > threshold, visible/purchasable qty = threshold.

Which level wins if multiple thresholds are set?

Product > Role override > Highest category threshold > Global default.

Does it support variations?

Yes—each variation’s stock is treated independently.

Is it compatible with backorders?

If a product allows backorders (and stock management is enabled), the plugin still enforces the visible cap unless another plugin bypasses WC’s checks. Test your backorder flow.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“Visible Stock Threshold for WooCommerce”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Visible Stock Threshold for WooCommerce”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1.0

  • Fix: If no threshold set for new products, QTY shown is wrong and no limit on purchasable quantity.

1.0.0

  • Initial public release: visible stock cap, Strict Mode, per-product/category/role/global, server validations, i18n.