Linux 软件免费装
Banner图

Conditra Checkout Rules for WooCommerce

开发者 ankhaa0103
更新时间 2026年11月5日 02:10
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce checkout shipping methods conditional fields payment methods

下载

1.1.4

详情介绍:

Conditional rules for the checkout you already have. The plugin does not add fields and does not change labels, placeholders or defaults; it decides when the existing fields, payment methods and shipping rates apply. The server checks every rule again when the order is placed. What you can do Conditions Conditions inside a group must all match (AND); a rule applies when any group matches (OR). 23 operators: is / is not, contains, is one of, is empty, is checked, greater / less than, between, contains any / all / none / only, and more. Clear rules, clear outcomes Classic checkout and Checkout Block Payment, shipping and tax rules work the same in the classic checkout and the Checkout Block. Field rules are limited by the APIs WooCommerce offers for the Checkout Block: "required" rules are checked when the order is placed, and show/hide rules work in the classic checkout only. The rules screen marks this on each rule. Compatibility Trademarks WooCommerce is a trademark of Automattic Inc. Conditra Checkout Rules is an independent plugin; it is not affiliated with or endorsed by WooCommerce or Automattic. Privacy The plugin does not connect to any external service, does not track visitors and stores no personal data. It stores your rules and settings as options, and the ids of the rules that applied to an order as order meta. Source code The admin screen and checkout scripts are built from the human-readable sources included in the plugin (assets/src) with @wordpress/scripts. The development repository, including tests, is on GitHub: https://github.com/ankhaa0103/conditra-checkout-rules-for-woocommerce To build: npm ci && npm run build.

安装:

  1. Make sure WooCommerce 9.9.3 or newer is active.
  2. Install the plugin from Plugins → Add New (search for "Conditra Checkout Rules"), or upload the zip file, and activate it.
  3. Go to WooCommerce → Checkout Rules and add your first rule.
Example – offer bank transfer only to customers who enter a company name:
  1. Add rule. Applies to: Payment method → Direct bank transfer. Action: Offer only when…
  2. Condition: Field value: Billing: Company name → is not empty.
  3. Save rules.

屏幕截图:

  • The rule editor: a payment method offered only when the conditions match, with AND and OR groups.
  • Settings: the messages customers see when every payment or shipping method is removed or an order rule has no message of its own, and the live update delay.
  • Classic checkout: the VAT number becomes required as soon as a company name is entered.
  • Classic checkout: bank transfer is offered once the customer enters a company name.
  • The order screen lists the rules that applied at checkout.
  • Cart: the message at the top of the page tells how much is missing, and "Proceed to checkout" is held back until the minimum order amount is reached.

升级注意事项:

1.1.4 First release in the WordPress.org plugin directory. 1.1.3 New plugin name; the admin warning can be dismissed. 1.1.2 Clearer rule editor for lists of values. 1.1.1 Order rule messages at the top of the page and an easier rule editor. 1.1.0 Minimum and maximum order amounts, more amount conditions and category subtotals. 1.0.0 First public release.

常见问题:

Can it add new checkout fields or rename existing ones?

No. The plugin works only with fields that already exist. Use WooCommerce, your theme or a field editor plugin to create fields, then control them with rules here.

Which rule wins when two rules disagree?

The rule with the lower priority number. On a tie, hiding or removing wins over showing or offering. The rules screen warns you about such conflicts.

What happens if my rules remove every payment or shipping method?

The customer sees your message (WooCommerce → Checkout Rules → Settings), no order is created, and you see a notice in the admin. The event is also logged in WooCommerce → Status → Logs (source "ccfo").

Does a rule work if the customer is not logged in?

Yes. Rules read what the customer enters during checkout. For payment, shipping and tax rules that depend on a field, the checkout refreshes as soon as the customer leaves the field, or after the "Live update delay" (default 5 seconds) while they are still typing.

Can I set a minimum or maximum order amount?

Yes. Add a rule for Order with the action "Block checkout" (the cart button is held back too) or "Block placing the order" (only the checkout), and a condition such as "Cart subtotal < 50000". The message can show what is missing: "Add {remaining} more to order (minimum {min})." Combine conditions freely, for example a maximum only for cash on delivery, or a minimum only for one category or for wholesale customers.

Does hiding the tax note change the total?

No. Tax display rules only change what is shown on the checkout page. Cart and order taxes, emails and invoices keep the full tax details.

Can a customer bypass a rule by changing the page?

No. The browser only updates the form early. The server applies every rule again when the order is placed, in the classic checkout and in the Checkout Block (Store API).

Does it work with the Checkout Block?

Yes for payment, shipping and tax rules. For fields, the Checkout Block allows only "required" checks on order placement; show/hide rules need the classic checkout.

Will my rules be deleted if I uninstall the plugin?

Yes, uninstalling removes the rules and settings. The record of applied rules on past orders is kept.

更新日志:

1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.0