Linux 软件免费装
Banner图

Redcase Cash on Delivery for WooCommerce

开发者 redcasesoftware
更新时间 2026年12月2日 21:28
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce checkout cash on delivery cod payment fee

下载

1.1.0

详情介绍:

Redcase Cash on Delivery adds rules to the cash on delivery payment method that ships with WooCommerce. It does not add a new gateway: orders keep the cod payment method, so emails, reports and other plugins see nothing new. What you can set One matching rule is enough to hide cash on delivery. WooCommerce's own "Enable for shipping methods" setting still applies. Checkout support For developers Three filters, each with the cart context (total, zone, country, state, postcode, chosen shipping rates) and the settings as extra arguments: Example, no cash on delivery for a product category: add_filter( 'redcase_cod_block_reasons', function ( $reasons ) { foreach ( WC()->cart->get_cart() as $item ) { if ( has_term( 'furniture', 'product_cat', $item['product_id'] ) ) { $reasons[] = 'furniture'; } } return $reasons; } ); Privacy The plugin makes no external requests, collects no data and adds no tracking. It stores its settings in one option. Translations English and Greek are included.

安装:

  1. Install and activate WooCommerce.
  2. Install the plugin from Plugins → Add New, or upload the ZIP, and activate it.
  3. Go to WooCommerce → Settings → Payments → Cash on delivery and fill in the "Redcase Cash on Delivery" section. The Plugins screen has a "Settings" link to it.

屏幕截图:

  • A fee for each shipping method entry and for local pickup, and the settings backup.
  • Classic checkout: the cash on delivery fee as its own line while cash on delivery is chosen.
  • The same cart with a shipping method that is excluded: cash on delivery is not offered.

升级注意事项:

1.1.0 Fees per shipping method, local pickup options, settings backup and developer filters. Existing settings are kept. 1.0.0 First release.

常见问题:

Does it replace the WooCommerce cash on delivery gateway?

No. It adds rules and a fee to it. Turn the gateway on or off in WooCommerce as usual.

Why does the cash on delivery settings screen look like the older WooCommerce form?

WooCommerce shows the cash on delivery settings as a new React screen that only holds its own fields. The plugin keeps that one screen on the classic form so its section can be shown under WooCommerce's fields.

Is the fee amount before or after tax?

When you choose a tax class, the amount you enter is before tax and WooCommerce adds the tax. With "Not taxable" the amount is charged as entered.

How do I find the ID of a shipping method?

The "Disable for shipping methods" list shows every method entry of every zone, for example "Greece — Courier (flat_rate:2)". Pick the entry itself.

Can I move the settings to another shop?

Yes. Use "Download settings" in the "Settings backup" part, then choose the file under "Load a backup" on the other shop and save. Shipping zones, shipping methods and the fees per shipping method are left out there, because their IDs differ from shop to shop: set those again.

Can I charge a different fee, or none, for local pickup?

Yes. "Fee per shipping method" has a field for every shipping method entry and one for local pickup. Empty means the standard fee, 0 means no fee. To refuse cash on delivery on local pickup, tick "Disable cash on delivery for local pickup".

Does it work with the order-pay page?

No. The rules apply to the checkout. The order-pay page keeps WooCommerce's behaviour.

更新日志:

1.1.0 1.0.0