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 the Conditional Payment Gateways plugin

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:

 

  • Add new condition: Enter the condition title
  • Condition 1: Taxonomy: Product categories | = | My category 1 (Select the category you wish)
  • What do you want to do: Enable the payment method(s)
  • Select the payment methods: Paypal
  • 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:

 

  • Add new condition: Enter the condition title
  • Condition 1: Taxonomy: Product categories | = | My category 1 (Select the category you wish)
  • What do you want to do: Disable the payment method(s)
  • Select the payment methods: Paypal
  • 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