[WordPress] 外掛分享: Product Bundles – Bulk Discounts

首頁外掛目錄 › Product Bundles – Bulk Discounts
WordPress 外掛 Product Bundles – Bulk Discounts 的封面圖片
700+
安裝啟用
尚無評分
545 天前
最後更新
問題解決
WordPress 6.2+ PHP 7.4+ v2.0.1 上架:2020-01-30

內容簡介

這是一個免費的小型外掛,可供正式的WooCommerce Product Bundles外掛使用,讓您可以建立批量折扣規則。 使用它,您可以在產品捆綁包中提供更高的折扣,當客戶購買更多產品時。

與基於規則或優惠券的方法相比,使用批量折扣規則的產品捆綁包:

更容易被發現。 每個產品捆綁包都是一個獨立的 WooCommerce 產品,擁有自己的目錄頁面。
更容易設置。 基於規則的折扣插件更加複雜,通常需要更高的前期投資。

此外,WooCommerce 產品收入報告可以輕鬆跟踪具有批量折扣規則的捆綁包的表現。

注意:此外掛需要正式的WooCommerce Product Bundles外掛。 安裝此外掛之前,請確保您正在運行最新版本的 WooCommerce 和 WooCommerce Product Bundles。

注意:此實驗性外掛已經被創建,以驗證和改進一個未來可能被納入 WooCommerce Product Bundles - 或被放棄的功能。

重要提示:此外掛中的代碼僅按“原樣”提供。 WordPress.org 論壇提供的支援是基於自願性原則提供的。 如果您正在使用 WooCommerce Product Bundles 的活動訂閱,請注意 WooCommerce 支援可能無法協助您解決此實驗性外掛的問題。

文檔

要為產品捆綁包添加批量折扣:

確保您正在運行最新版本的 WooCommerce 和 WooCommerce Product Bundles。
安裝並啟用此外掛。
轉到產品數據 > 捆綁產品
使用 Bulk Discounts 欄位創建一些折扣級別。

折扣層是將數量與折扣關聯起來的“規則”。 每個規則由兩個部分組成,由竖线符号|隔開:

數量值或值範圍,例如1 - 5,
以% 表示的折扣值,例如10。

數量可以以以下任一格式輸入:

數量範圍格式,例如 1 - 5,
單個數量格式,例如 6,或
"等於或更高"格式,例如7+。

這是一個示例規則集:

4 - 5 | 5
6 - 9 | 10
10 + | 15

這意味著:

如果選擇了 4-5 件物品,則折扣為 5%。
如果選擇了 6-9 件物品,則折扣提高至 10%。
如果選擇了 10 件或更多物品,則折扣增加到 15%。

當配置具有批量折扣的產品捆綁包時,會動態計算並顯示適用的折扣和總額。

默認情况下,批量折扣會應用於所有分別定價的捆綁產品的價格。基本常規/促銷價格不會打折扣。要折扣基本價格,請使用以下片段:

add_filter( 'wc_pb_bulk_discount_apply_to_base_price', '__return_true' );

想要貢獻嗎? 請在GitHub上提交問題報告和拉取請求。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Product Bundles – Bulk Discounts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Free mini-extension for the official WooCommerce Product Bundles extension that allows you to create bulk discount rules. Use it to offer higher discounts when customers purchase more items in a Product Bundle.
Compared to rule-based or coupon-based approaches, Product Bundles with bulk discount rules are:

Easier to discover. Each Product Bundle is an individual WooCommerce product with its own page in your catalog.
Easier to set up. Rule-based discount plugins are more complicated and usually require a higher up-front investment.

Additionally, WooCommerce product revenue reports make it easier for you to track the performance of bundles with bulk discount rules.
Important: This plugin requires the official WooCommerce Product Bundles extension. Before installing this plugin, please ensure that you are running the latest versions of both WooCommerce and WooCommerce Product Bundles.
Note: This experimental plugin has been created to validate and refine a feature that may be rolled into WooCommerce Product Bundles — or dropped! — in the future.
Important: The code in this plugin is provided “as is”. Support via the WordPress.org forum is provided on a voluntary basis only. If you have an active subscription for WooCommerce Product Bundles, please be aware that WooCommerce Support may not be able to assist you with this experimental plugin.
Documentation
To add bulk discounts to a Product Bundle:

Ensure that you are running the latest versions of both WooCommerce and WooCommerce Product Bundles.
Install and activate this plugin.
Navigate to Product Data > Bundled Products
Create some discount tiers using the Bulk Discounts field.

Discount tiers are “rules” that associate quantities with discounts. Each rule consists of two parts, separated by a pipe | character:

A quantity value or range of values, e.g. 1 - 5,
A discount value expressed in %, e.g. 10.

Quantities can be entered in either:

quantity range format, for example 1 - 5,
single quantity format, for example 6, or
“equal to or higher” format, for example 7+.

Here’s a ruleset:
4 - 5 | 5
6 - 9 | 10
10 + | 15

This means that:

If 4-5 items are chosen, the discount is 5%.
If 6-9 items are chosen, the discount is bumped to 10%.
If 10 or more items are chosen, the discount goes up to 15%.

When a Product Bundle with bulk discounts is configured, the applicable discount and total is dynamically calculated and displayed.
By default, bulk discounts are applied to the prices of all bundled products that are Priced Individually. Base Regular/Sale Prices are not be discounted. To discount base prices, use the following snippet:
add_filter( 'wc_pb_bulk_discount_apply_to_base_price', '__return_true' );

Want to contribute? Please submit issue reports and pull requests on GitHub.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon