Linux 软件免费装
Banner图

Conditional Payment Gateways for WooCommerce – Hide Payment Methods by Rules

开发者 nikanwp
更新时间 2026年4月4日 03:18
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce checkout payment gateways conditional hide payment method

下载

1.0.0

详情介绍:

Conditional Payment Gateways for WooCommerce gives you full control over which payment methods appear at checkout. Create unlimited rules and decide exactly when to hide a gateway — based on cart conditions, shipping destination, customer status, or products in the cart. No PHP. No hooks. No developer needed. Works seamlessly with the classic checkout and the WooCommerce Blocks checkout. HPOS compatible. Tested with the latest WordPress and WooCommerce versions. Why hide payment gateways conditionally? Not all payment gateways make sense for every order. A few common reasons store owners use this plugin: Free features Upgrade to Pro The WooCommerce Conditional Payment Gateways Pro plugin unlocks 8 additional condition types for advanced checkout control: Upgrade to WooCommerce Conditional Payment Gateways Pro → How it works
  1. Go to WooCommerce → Conditional Payments
  2. Click Add rule and choose a condition type (e.g. "Cart total")
  3. Set which payment gateways to hide when the condition matches
  4. Save and test at checkout — no caching issues, no code changes needed
Example use cases Documentation Full documentation →

安装:

  1. Ensure WooCommerce is installed and active.
  2. Upload the plugin folder to /wp-content/plugins/ or install via Plugins → Add New.
  3. Activate the plugin via the Plugins screen.
  4. Go to WooCommerce → Conditional Payments to create your first rule.

屏幕截图:

  • Condition template picker — choose from 5 free condition types
  • Rule editor with live sidebar preview
  • Settings

常见问题:

Do I need WooCommerce?

Yes. This plugin requires WooCommerce to be installed and active.

Which condition types are available for free?

The free version includes 5 condition types: cart total, shipping destination, coupon applied, user logged in, and product in cart. You can create unlimited rules. Both classic and Blocks checkout are fully supported.

Does it work with the WooCommerce block checkout?

Yes. The plugin integrates with both the classic checkout and the block-based checkout (Checkout block) via the WooCommerce Store API.

Can I combine multiple conditions in one rule?

Each rule has one condition type (for example, "Coupon applied" or "Cart total"). To combine conditions, create multiple rules — they run in priority order and all matching rules are applied.

Will hiding a gateway affect other plugins that hide gateways?

This plugin uses the standard woocommerce_available_payment_gateways filter. With Safe mode enabled (default), it only hides gateways and never reveals ones that other plugins or WooCommerce itself have already hidden.

Is this compatible with HPOS (High-Performance Order Storage)?

Yes, fully compatible.

Does it work with custom or third-party payment gateways?

Yes. Any gateway registered with WooCommerce will appear in the rule editor and can be hidden conditionally.

Where can I get the Pro version?

You can purchase and download it at WooCommerce Conditional Payment Gateways Pro.

更新日志:

1.0.0