[WordPress] 外掛分享: IDTRACE – Variation Quantity Rules for WooCommerce

首頁外掛目錄 › IDTRACE – Variation Quantity Rules for WooCommerce
WordPress 外掛 IDTRACE – Variation Quantity Rules for WooCommerce 的封面圖片
全新外掛
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 6.0+ PHP 8.0+ v1.0.0 上架:2026-09-16

內容簡介

IDTRACE – Variation Quantity Rules for WooCommerce 讓您為每個變數產品的變體定義獨立的數量規則,包括最小數量、數量增量和可選的最大數量。此外掛消除了 WooCommerce 對所有變體應用相同數量限制的限制,讓每個變體擁有自己的規則。

【主要功能】
• 每個變體的最小數量
• 每個變體的數量增量
• 每個變體的可選最大數量
• 動態數量欄位即時更新
• 雙重驗證提供即時反饋
• 清潔的卸載過程

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「IDTRACE – Variation Quantity Rules for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

IDTRACE – Variation Quantity Rules for WooCommerce lets you define independent quantity rules for each variation of a variable product: minimum quantity, quantity step (increment), and optional maximum quantity.
WooCommerce natively applies the same quantity constraints to all variations of a product. This plugin removes that limitation — each variation gets its own rules.
Who is this for?
Any WooCommerce store selling products where quantity depends on the variation:

Labels & stationery — rolls of 500, 1000 or 2000 units with different minimums per reference
Food & wholesale — packs of 6, 12 or 24 depending on the product format
Hardware & industrial supplies — screws, bolts, fittings sold by the box of 50 or 100
Printing & packaging — reams, cartons, palettes with format-specific batch sizes
Cosmetics & pharmacy — consumables sold in boxes with regulated minimum quantities
Textiles & haberdashery — spools or bobbins sold by the lot

In short: if your variations have different packaging constraints, this plugin handles them cleanly.
How it works

Open any variable product in WooCommerce admin
Expand a variation — three new fields appear below the price: Minimum quantity, Step, Maximum quantity (optional)
Save — done

On the product page, as soon as a customer selects a variation:

The quantity field is automatically set to the minimum
The min, step and max HTML attributes are updated accordingly
Any invalid quantity triggers an error message before the customer can add to cart

Features

Per-variation minimum quantity — independent value for each variation
Per-variation step (increment) — customers can only order in multiples of the defined step, starting from the minimum
Per-variation maximum quantity — optional upper limit
Dynamic quantity field — updates instantly on variation selection (no page reload)
Dual validation — JavaScript for immediate user feedback + PHP server-side validation that cannot be bypassed
Cart update validation — rules are also enforced when quantities are edited directly in the cart
Translatable error messages — uses wc_add_notice(), compatible with any language
Clean uninstall — all plugin data is removed on uninstall; deactivation leaves data intact
OOP architecture — clean, maintainable, extendable codebase

Step examples
Minimum = 4 / Step = 4 → customer can order: 4, 8, 12, 16, 20…
Minimum = 4 / Step = 1 → customer can order: 4, 5, 6, 7, 8…
Minimum = 1 / Step = 1 → standard WooCommerce behavior (no constraint)

延伸相關外掛

文章
Filter
Mastodon