[WordPress] 外掛分享: RIACO Smart Quantity Discount for WooCommerce

首頁外掛目錄 › RIACO Smart Quantity Discount for WooCommerce
WordPress 外掛 RIACO Smart Quantity Discount for WooCommerce 的封面圖片
全新外掛
安裝啟用
尚無評分
38 天前
最後更新
問題解決
WordPress 5.6+ PHP 7.4+ v1.1.0 上架:2025-07-27

內容簡介

總結:RIACO Smart Quantity Discount 是一個靈活的 WooCommerce 外掛,讓您可以根據數量、購物車小計或產品類型創建高級價格規則。適合希望提供促銷活動的店主,如:
- 買 X 送 Y (BOGO)
- 階梯數量折扣(例如,多買更省)
- 簡單的百分比或固定價格折扣
- 根據購物車總額的有條件折扣
該外掛支持:
- 產品特定規則
- 使用自定義優先級欄位進行規則優先處理
- 不衝突的規則堆疊
- BOGO 折扣與自動添加的免費產品
特色:

基於數量的折扣
BOGO(買一送一)促銷活動
簡單的固定/百分比折扣
規則優先處理
WooCommerce 購物車集成
用於規則管理的簡潔管理介面

授權

此外掛的授權條款為 GPLv2 或更新版本。

<HTML>
<ul>
<li>這個外掛是為誰設計的?</li>
<li>這個外掛能夠提供哪些促銷活動?</li>
<li>這個外掛支援哪些功能?</li>
<li>它是如何處理規則的優先級?</li>
<li>這個外掛的授權條款是什麼?</li>
</ul>
</HTML>

外掛標籤

開發者團隊

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

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

原文外掛簡介

RIACO Smart Quantity Discount is the easiest way to add powerful, flexible pricing promotions to your WooCommerce store. Whether you want to reward bulk buyers, run a Buy-One-Get-One campaign, or offer targeted discounts based on cart value or customer role, this plugin handles it all from a clean admin interface — no coding required.
Why store owners love it
Increase average order value. Tiered quantity discounts nudge customers to add one more item to unlock the next deal tier. Show the full pricing table right on the product page so shoppers always know the best price they can get.
Run BOGO promotions in minutes. Set up “Buy 2, Get 1 Free” (or any buy-X-get-Y ratio) and the plugin automatically adds the free product to the cart. When the qualifying item is removed, the free item disappears too — no manual cleanup needed.
Target the right customers. Apply rules only to specific products or categories, restrict them to certain user roles (e.g., wholesale members), or trigger them only when the cart reaches a minimum subtotal. Combine multiple conditions with AND/OR logic.
Non-destructive pricing. The plugin never overwrites WooCommerce’s own sale prices with a worse deal. If a product is already on sale, your rules only kick in when they give a better price — your existing promotions stay safe.
Priority-based rule stacking. Create as many rulesets as you need. Assign each one a priority number so you stay in full control of which rules are applied first. No unexpected conflicts, no surprises at checkout.
Works with block checkout. Fully compatible with the WooCommerce block cart and block checkout. BOGO free items show a “FREE” label, quantity fields are locked, and the remove button is hidden — giving customers a polished, confusion-free experience.
Key features
Discount types

Simple discount — apply a flat percentage or fixed amount off a product price, with optional conditions.
Quantity / volume discount — define multiple tiers (e.g., buy 3–5 → 10% off, buy 6+ → 20% off). A pricing table on the product page shows every tier at a glance.
BOGO (Buy X, Get Y Free) — automatically add free items to the cart based on a configurable buy threshold and free-item quantity.

Condition targeting

Target specific products or product categories
Restrict by cart subtotal (minimum order amount)
Restrict by user role (great for wholesale or VIP tiers)
Combine multiple conditions with AND / OR logic

Rule management

Unlimited rulesets — create as many as your store needs
Priority field — lower number = evaluated first; full control over application order
Activate / Deactivate individual rules or in bulk without deleting them
Duplicate any ruleset to a draft copy in one click

Frontend display

Auto-rendered pricing table on product pages for quantity discount rules
Auto-rendered BOGO deal table on product pages for BOGO rules
“FREE” badge on BOGO line items in block cart / checkout

Developer-friendly

5 action hooks and 6 filter hooks covering every stage of discount evaluation
All strings translatable via standard __() with text domain riaco-smart-quantity-discount
Extensible discount types and condition types — add your own via filters

Developer Hooks
Actions
riaco_sqd_loaded
Fires after all plugin components are initialized. Use this to register integrations or extensions that depend on the plugin being ready.
riaco_sqd_before_apply_discounts( $cart )
Fires once per cart recalculation, before any ruleset is evaluated. Useful for pre-computation or logging.
riaco_sqd_after_apply_discounts( $cart, $discounted_cart_item_keys )
Fires after all rulesets have been evaluated. $discounted_cart_item_keys is an array keyed by cart item key; each value is ['price' => [...] | null, 'bogo' => [...] | null].
riaco_sqd_price_discount_applied( $cart_item_key, $regular_price, $plugin_price, $ruleset )
Fires whenever a simple or quantity price discount is applied to a cart item.
riaco_sqd_bogo_item_added( $added_cart_item_key, $parent_cart_item_key, $ruleset )
Fires when a new BOGO free item is added to the cart.
Filters
riaco_sqd_active_ruleset_ids( $ruleset_ids )
Modify the ordered array of ruleset IDs that will be evaluated. Return a filtered or reordered array.
riaco_sqd_item_qualifies_for_ruleset( $qualifies, $product_id, $cart_item_key, $ruleset )
Override whether a cart item qualifies for a given ruleset. Return true or false.
riaco_sqd_item_discounted_price( $plugin_price, $cart_item, $cart_item_key, $ruleset )
Adjust the final discounted price before it is set on the product. The engine clamps the return value to max(0, ...) after this filter, so a negative return is safe.
riaco_sqd_bogo_free_quantity( $desired_free_qty, $cart_item, $cart_item_key, $ruleset )
Cap or scale the number of free BOGO items added. Return value is cast to int and floored at 0.
riaco_sqd_condition_result( $condition_met, $type, $operator, $value, $product_id, $subtotal )
Override the boolean result of any individual condition check. Also the correct extension point for custom condition types — the built-in evaluation returns false for unknown types; hook here to handle them.
riaco_sqd_discount_types( $types )
Append custom discount type slugs to the allowed list (e.g. from a PRO add-on).
riaco_sqd_condition_types( $conditions )
Append custom condition type definitions to the admin conditions metabox.

延伸相關外掛

文章
Filter
Mastodon