| 开发者 | vipestudio |
|---|---|
| 更新时间 | 2026年5月15日 16:33 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/ or install via the WordPress Plugins screen.WooCommerce → Settings → Checkout Fee.
No. The percentage is applied to the cart subtotal (line items, before shipping and taxes). Whether the resulting fee is itself taxed is controlled per method by the Taxable option.
Yes. The plugin hooks into woocommerce_cart_calculate_fees, which fires for both classic and block-based checkout. The block checkout automatically recalculates totals when the customer switches payment method via the Store API.
Yes — compatibility is declared with both custom_order_tables and cart_checkout_blocks.
is_plugin_active() call that could fatally error during activation on some hosts.{id}_name_label, {id}_name_percent, {id}_fee_type) to a clean, prefixed namespace (pmcf_{id}_*).payment-method-checkout-fee-for-woocommerce (previously strings used the woocommerce domain).wp_enqueue_scripts and only on the checkout page.vendor/ directory, shrinking the plugin download significantly.