Title: CartMend Payment Method Rules for WooCommerce
Author: CartMend
Published: <strong>2026 年 8 月 7 日</strong>
Last modified: 2026 年 8 月 7 日

---

搜尋外掛

![](https://ps.w.org/cartmend-payment-rules/assets/banner-772x250.png?rev=3638788)

![](https://ps.w.org/cartmend-payment-rules/assets/icon-256x256.png?rev=3638788)

# CartMend Payment Method Rules for WooCommerce

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

[下載](https://downloads.wordpress.org/plugin/cartmend-payment-rules.1.1.4.zip)

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

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

## 外掛說明

**CartMend Payment Method Rules for WooCommerce** lets you conditionally hide or
show payment gateways at checkout — without writing a single line of code. Create
as many rules as you need, each targeting one gateway with one or more conditions
combined with AND/OR logic. It works on **both** the classic shortcode checkout 
and the new **block (Gutenberg) checkout**, and it adds **zero JavaScript and zero
jQuery** to your storefront.

Common things store owners use it for:

 * Hide **Cash on Delivery** for orders over a certain amount (reduce fraud and 
   unpaid COD).
 * Hide **PayPal** (or any gateway) for specific billing countries.
 * Show a gateway **only** for a chosen country (whitelist mode).

#### Features

 * Unlimited rules, each targeting one payment gateway.
 * Action per rule: **Hide** or **Show only**.
 * Each rule can combine multiple conditions with **AND/OR** logic: **Billing country**(
   is in / is not in a list) and/or **Cart subtotal** (greater than / less than /
   equal to / between).
 * Enable/disable toggle per rule.
 * Admin-only **debug notice** at checkout that tells you exactly which rule fired
   and why.
 * Works on classic checkout, block checkout, and the order-pay page.
 * HPOS (High-Performance Order Storage) compatible.
 * Lightweight: no frontend JavaScript, no jQuery, no bloat.

## 安裝方式

 1. Upload the plugin to `/wp-content/plugins/` or install it from **Plugins  Add New**.
 2. Activate **CartMend Payment Method Rules for WooCommerce**.
 3. Make sure WooCommerce is active and you have at least one payment gateway enabled.
 4. Go to **WooCommerce  Settings  Payment Rules**.
 5. Add a rule: choose a gateway, an action (Hide / Show only), and one or more conditions(
    Billing country and/or Cart subtotal). Add more rules or conditions as needed, 
    then save.

## 常見問題集

### Does it work with the new block (Gutenberg) checkout?

Yes. The core hide/show logic runs server-side through WooCommerce’s `woocommerce_available_payment_gateways`
filter, which now fires in the block/Store API checkout as well as the classic shortcode
checkout and the order-pay page.

### Will it work with Stripe, PayPal, Square and other gateways?

Yes. The plugin filters whatever active gateways WooCommerce exposes, including 
third-party gateways, as long as they are enabled in WooCommerce.

### My rule isn’t working. What should I check?

Enable the admin-only debug notice by viewing checkout while logged in as a shop
manager/admin — it shows which rule fired and why. Also confirm the gateway is enabled
in WooCommerce and that any full-page cache excludes the checkout page.

### Does it slow down checkout?

No. Rules are evaluated in plain PHP from a single cached option, with no extra 
database queries during checkout, and no frontend JavaScript.

### Does it collect any data?

No. The plugin sends no telemetry.

## 使用者評論

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

## 參與者及開發者

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

參與者

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

[將〈CartMend Payment Method Rules for WooCommerce〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/cartmend-payment-rules)

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

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

## 變更記錄

#### 1.1.4

 * The free version now supports unlimited rules with AND/OR condition logic.
 * Each rule can combine multiple conditions (billing country and/or cart subtotal).
 * Added an “equal to” comparison for cart subtotal.
 * Removed a leftover empty init hook.

#### 1.1.3

 * Confirmed the plugin ships exactly the billing country and cart subtotal condition
   types shown in the settings screen.
 * Renamed to lead with brand.
 * Fixed contributors.
 * Moved inline debug style to an enqueued stylesheet.

#### 1.0.0

 * Initial release.
 * One rule: hide or show a payment gateway by billing country or cart subtotal.
 * Works on classic checkout, block (Store API) checkout, and order-pay page.
 * Admin-only checkout debug notice.
 * HPOS and Cart/Checkout Blocks compatibility declared.

## 中繼資料

 *  版本 **1.1.4**
 *  最後更新 **5 天前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.3**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/cartmend-payment-rules/)
 * 標籤:
 * [conditional payments](https://tw.wordpress.org/plugins/tags/conditional-payments/)
   [hide payment method](https://tw.wordpress.org/plugins/tags/hide-payment-method/)
   [payment gateways](https://tw.wordpress.org/plugins/tags/payment-gateways/)[payment methods](https://tw.wordpress.org/plugins/tags/payment-methods/)
   [woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/cartmend-payment-rules/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/cartmend-payment-rules/reviews/#new-post)

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

## 參與者

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

## 技術支援

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

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