Title: Shipping Rules Builder for WooCommerce
Author: webangon
Published: <strong>2026 年 9 月 26 日</strong>
Last modified: 2026 年 9 月 29 日

---

搜尋外掛

![](https://ps.w.org/webangon-shipping-rules/assets/banner-772x250.png?rev=3714331)

![](https://ps.w.org/webangon-shipping-rules/assets/icon-256x256.gif?rev=3714331)

# Shipping Rules Builder for WooCommerce

 由 [webangon](https://profiles.wordpress.org/webangon/) 開發

[下載](https://downloads.wordpress.org/plugin/webangon-shipping-rules.1.0.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/webangon-shipping-rules/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/webangon-shipping-rules/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/webangon-shipping-rules/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/webangon-shipping-rules/#developers)

 [技術支援](https://wordpress.org/support/plugin/webangon-shipping-rules/)

## 外掛說明

Build shipping rates from rules, and **test them before they go live**. The settings
page is split in two: the rule builder on the left, a test cart on the right that
re-evaluates your _unsaved_ rules on every keystroke and shows exactly which condition
passed or failed and how the cost was built.

**Conditions**

 * Cart subtotal (incl./excl. tax, before/after coupons), weight, item quantity,
   distinct products
 * Shipping class – cart includes any / only contains / includes none
 * Day of week

**Rules**

 * Any number of rules; conditions combine with all / any
 * Cost = base + any number of per-unit costs (per N kg / items / currency, optionally
   only above a threshold, rounded up / down / exact), with a per-rule minimum and
   maximum
 * Enable/disable, duplicate, drag to reorder, “stop after this rule matches”
 * Undo / redo (Ctrl+Z), 9 rule templates in a searchable gallery, import / export
   as JSON
 * Rule checks: unreachable rules, inverted ranges, empty selections, gaps and overlaps
   between range rules

**Free shipping**

 * Free from a subtotal threshold, honour free-shipping coupons, custom label when
   free, optionally hide the other methods
 * “Add X more for free shipping” **progress bar** (or text) on the classic _and_
   block cart / checkout, updating live

**Testing & debugging**

 * Test cart with real products (search by name or SKU), quantities and date & time
 * Verdict, cart figures, per-condition pass/fail trace, full cost arithmetic, MATCH/
   NO MATCH badges on the rule cards
 * Storefront debug trace for shop managers only (classic and block)

#### Pro add-on

Pro is a separate add-on plugin. It adds 24 more conditions (postcode, city, state,
products, categories, attributes, customers, payment method, coupon codes, dates,
sizes), item-scoped figures, alternative (OR) condition groups, tier tables, formulas
and percentage costs, rule actions (withdraw the method, rename it, delivery estimates,
customer notices, hide other methods), lowest / highest / first-match combining,
method minimum / maximum, saved test scenarios, load-a-real-order, a zone view, 
revisions, copy to zone and 26 more templates.

Everything you build in the free plugin keeps working when you add Pro. If Pro is
deactivated later, rules that depend on it are **kept unchanged and skipped** (never
silently altered) until it is active again.

#### For developers

The plugin is extensible without touching its files:

 * PHP filters: `wbsfs_conditions`, `wbsfs_sanitize_condition`, `wbsfs_sanitize_rule`,`
   wbsfs_sanitize_cost`, `wbsfs_rule_cost`, `wbsfs_rule_effects`, `wbsfs_engine_matched`,`
   wbsfs_engine_combine`, `wbsfs_engine_final`, `wbsfs_form_fields`, `wbsfs_lint`,`
   wbsfs_extras_html`, `wbsfs_admin_data`, `wbsfs_preview_result`, and more. A condition
   definition may carry its own `evaluate` callback.
 * JavaScript: `wp.hooks` filters and actions named `wbsfs.*`, plus helpers on `
   window.WBSFS_API`. Add-on scripts depend on the `wbsfs-admin` handle; the editor
   boots on DOM ready, after they registered.

## 螢幕擷圖

[⌊Split-screen rule editor: rules on the left, a live test cart on the right with
the resulting shipping cost and free-shipping progress.⌉⌊Split-screen rule editor:
rules on the left, a live test cart on the right with the resulting shipping cost
and free-shipping progress.⌉[

Split-screen rule editor: rules on the left, a live test cart on the right with 
the resulting shipping cost and free-shipping progress.

[⌊Test cart trace: every condition passed or failed, and the full cost arithmetic
for the matching rule.⌉⌊Test cart trace: every condition passed or failed, and the
full cost arithmetic for the matching rule.⌉[

Test cart trace: every condition passed or failed, and the full cost arithmetic 
for the matching rule.

[⌊Searchable rule template gallery.⌉⌊Searchable rule template gallery.⌉[

Searchable rule template gallery.

[⌊"Add $X more for free shipping" progress bar on the cart.⌉⌊"Add $X more for free
shipping" progress bar on the cart.⌉[

“Add $X more for free shipping” progress bar on the cart.

## 安裝方式

 1. Upload the folder to `wp-content/plugins/` and activate. WooCommerce must be active.
 2. WooCommerce  Settings  Shipping  open a zone  Add shipping method  **WBS Flexible
    Shipping**.
 3. Click the method to open the split editor. Add rules on the left, test on the right,
    Save.

## 常見問題集

### Why do I not see the method on the cart?

Rules only run for customers the shipping zone matches, and the method is only offered
when at least one cost rule matches (or free shipping applies). Turn on “Storefront
debug” in the Settings tab to see the trace on the cart as a shop manager.

### What happens to my rules if I deactivate the Pro add-on?

Rules that use Pro features are skipped and shown as “switched off” in the editor.
Their data is kept exactly as it was, even if you save in the meantime, and they
work again when Pro is active.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Shipping Rules Builder for WooCommerce〉的開發相關工作。

參與者

 *   [ webangon ](https://profiles.wordpress.org/webangon/)

[將〈Shipping Rules Builder for WooCommerce〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/webangon-shipping-rules)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/webangon-shipping-rules/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/webangon-shipping-rules/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/webangon-shipping-rules/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/webangon-shipping-rules/)。

## 變更記錄

#### 1.0.1

 * Improvements and fixes.

#### 1.0.0

 * Initial release: split-screen rule builder with live test cart, cart subtotal/
   weight / quantity / shipping class / day-of-week conditions, per-unit costs, 
   free shipping with progress bar (classic and block cart), rule checks, templates,
   import / export and developer hooks.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **7 天前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.1.2**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/webangon-shipping-rules/)
 * 標籤:
 * [conditional shipping](https://tw.wordpress.org/plugins/tags/conditional-shipping/)
   [shipping](https://tw.wordpress.org/plugins/tags/shipping/)[table rate](https://tw.wordpress.org/plugins/tags/table-rate/)
   [weight based shipping](https://tw.wordpress.org/plugins/tags/weight-based-shipping/)
   [woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/webangon-shipping-rules/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/webangon-shipping-rules/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/webangon-shipping-rules/reviews/)

## 參與者

 *   [ webangon ](https://profiles.wordpress.org/webangon/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/webangon-shipping-rules/)