WooCommerce – Enable/Disable Payment Method for a Product Category

In this quick tutorial, we want to show you how easy it is to enable/disable a payment method for a product category in WooCommerce.

For example, this is really helpful if you have a category containing only high price products and want your customers to pay with bank transfers instead of using a credit card. Of course, this is just an example of the many situations in which you may need to enable/disable a payment method for a category.

Something important to mention is that we’re not using any codes. Instead, we’ll use the WooCommerce Conditional Payment Gateways plugin, so you need to install it and activate it.

Open WP Conditional Payment Gateways

This plugin helps you create conditions in which your payment methods will be enabled or disabled. Therefore, when you open the plugin, you’ll need to hit the Add condition button in order to create a new condition.

Enable a payment method for a specific category

To enable a payment method (PayPal for example) for a product category, you need to set these values in the plugin:

  • Enter condition title in the Add new condition field.
  • Conditions: Category – Equal to – My category 1, for example. Here you choose the category you wish.
  • Enabled payment gateways: Paypal, for example. You decide which gateway you’ll enable.
  • Click on Publish.

Disable a payment method for a specific category

To disable a payment method (PayPal for example) for a product category, you need to set these values in the plugin:

  • Enter condition title in the Add new condition field.
  • Conditions: Category – Not equal to – My category 1, for example. Here you choose the category you wish.
  • Enabled payment gateways: Paypal, for example. You decide which gateway you’ll enable.
  • Click on Publish.

Done!

Now your payment method will be enabled or disabled for the category you’ve selected. It’s great not having to use any codes and being able to do it in seconds, isn’t it?

Leave a Reply

Close Menu