Linux 软件免费装
Banner图

Visible Stock Threshold for WooCommerce

开发者 modulux
更新时间 2025年11月21日 01:03
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce availability role based out of stock threshold

下载

详情介绍:

Visible Stock Threshold lets you control what customers see and can buy: 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:
  4. Enable on storefront
  5. Strict Mode
  6. Global default threshold
  7. Availability text (use {qty})
  8. Role-based overrides
  9. (Optional) Set thresholds per Product (Inventory tab) and Product Category.

屏幕截图:

  • Product Inventory meta box
  • Product Category term field
  • Frontend “Only {qty} left” text example

升级注意事项:

1.0.0 First release.

常见问题:

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.

更新日志:

1.0.0