Linux 软件免费装
Banner图

Codvia – COD Fee & Cash on Delivery Rules for WooCommerce

开发者 codrulesdev
更新时间 2026年9月26日 21:22
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce payment gateway cash on delivery cod cod fee

下载

1.0.1 1.0.0

详情介绍:

Codvia COD Rules manages WooCommerce's Cash on Delivery gateway with rules you can read: charge a fee, hide COD, or always allow COD when conditions match. What it does: Conditions (free) Order amount, item quantity, city, postcode, state/region, country, shipping method, customer role. Pro How rules run Rules run top to bottom. The first matching hide rule hides COD and stops. The first matching fee rule sets the fee. An allow rule that matches protects COD from any hide rule below it. Every rule can require all of its conditions, or any of them. For developers Filters: crfw_condition_types, crfw_match_condition, crfw_decision, crfw_cart_fee, crfw_gateway_id, crfw_presets, crfw_rules, crfw_context_from_cart, crfw_context_from_order, crfw_pro_active. REST namespace crfw/v1. The block checkout receives the decision under extensions["cod-rules"] on the Store API cart response.

安装:

  1. Install and activate the plugin. WooCommerce 8.6 or newer is required.
  2. Make sure the Cash on delivery gateway is enabled under WooCommerce → Settings → Payments.
  3. Go to WooCommerce → COD Rules and add your first rule, or import your Smart COD settings from the Import tab.
  4. Use "Test a scenario" to check what a customer in a given city, with a given order amount, will see.

屏幕截图:

  • The scenario tester explains every rule and condition.
  • A taxed COD fee on the block checkout.
  • The message customers see when a rule hides Cash on delivery.
  • One-click import from Smart COD.
  • The decision recorded on each order.

升级注意事项:

1.0.0 Initial release.

常见问题:

Why is the fee not taxed?

Check that taxes are enabled in WooCommerce → Settings → General, that a tax rate exists for the customer's location, and that the rule (or the default in Settings) is set to Taxable. The scenario tester shows whether a fee is taxable and which class it uses.

The customer's city has a different spelling in Arabic. Will it match?

Yes. Case, punctuation, diacritics and common letter variants (ة/ه, أ/ا, ى/ي) are folded before matching, and you can add both spellings to a list anyway. Use * for a wildcard.

Does the "order amount" include the COD fee?

Never. It is the items total after discounts, optionally plus shipping and tax, as chosen in Settings.

Does it work with the block-based checkout?

Yes. COD Rules is built for the block checkout first and also supports the classic shortcode checkout and the "pay for order" page.

Can I use it for a gateway other than the built-in Cash on delivery?

Yes. Set the gateway id in Settings → Advanced. Any gateway with that id is managed the same way.

Will it conflict with Smart COD or another COD fee plugin?

Run one at a time. After importing from Smart COD, deactivate Smart COD so the fee is not charged twice.

What happens on uninstall?

The plugin's settings and rules are removed. Order notes and the fee lines on existing orders are kept, because they are part of your order history.

更新日志:

1.0.1 1.0.0