In this tutorial, I will demonstrate how to disable a payment method for a specific product. We will learn to disable a particular payment method for a particular product in a few easy steps.
WooCommerce allows us to integrate different payment methods into our WooCommerce store. Yet, WooCommerce doesn’t come with all inbuilt payment options. You have to add a few more payment methods with the help of third-party WordPress plugins. Yes, these third-party plugins make the work a lot easier.
But sometimes, you want to restrict users from using a particular payment method. The reason could be high transaction fees, transaction failures, and more. Still, users use that particular payment method because it is popular and easy to access.
So, continue reading ahead and figure out how to do that.
On This Page
What Are the Ways to Disable A Payment Method for A Specific Product?
There are two ways to restrict buyers from using a particular payment method while buying a particular product. You can use programming knowledge or you can use a plugin.
Most tutorials on the web use coding knowledge to disable the payment methods. But, this is not suitable for all eCommerce store owners. Some of you would be tech-savvy and know how to code. At the same time, some don't even know the coding basics. So, this method isn't excellent for all WordPress users.
Read the following section to figure out how to disable payment methods for a specific product.
How to Disable Payment Method For A Specific Product
I will use the Dynamic Shipping and Payments plugin to disable the payment method. Besides, each step I will add screenshots to make it easier to understand for you. So, follow the given steps to disable the payment method for a specific product.
1. Install and Activate the Dynamic Shipping and Payments
Note: You can skip this step if you have already installed and activated the Dynamic Shipping and Payments.
To install the Dynamic Shipping and Payments, we will need to install the Woosuite Core plugin and activate the license. So, we have created a Quick Start Guide for you to figure out how to install and activate the Restriction Rules plugin.
2. Create Or Edit A Product
Note: If you have already created a product, you can skip this step and move further.
You will need to create or edit an existing product. I will suggest you create a new product. But, if you are making a new product, the process would be the same as we usually do: giving product name, description, setting the price, shipping methods, product images, etc.
WordPress Dashboard > Products > Add New > Create A New Product
3. Disable Payment Gateway
We have now created a new product. In addition, I’m assuming that you have already installed and activated the Woosuite Core and Dynamic Shipping and Payments plugin.
Now, edit the product. Scroll down, and search for the Restrictions section in the Product settings. Click on the Restrictions section, and you will get some new options there.
From the Add Restriction options, select the Payment Gateways options and click on the Add button.
3.1 Short Description: In the text field, enter a brief description of the new Payment rule. For instance, I want to disable this product's Cash On Delivery (COD) payment method. So, I will write ‘Disable COD for Tshirt.’
3.2 Exclude Gateways: You will get multiple options depending on the payment methods you have added to your WooCommerce store. I selected Cash On Delivery from the given options.
3.3 Add Condition: Select the Product On Sale option from Add Condition menu. This will automatically disable the payment methods when the product is in the shopping cart.
After that, click on the Update button to save the changes and activate the rule.
4. Additional Settings
Now, we have disabled the payment method. It’s now time to check some additional settings.
After installing the Woosuite Core to your WordPress website, you will see a new option in the WordPress toolbar called Woosuite. Hover your mouse arrow on the Woosuite option; there you will see different options in the submenu.
Look for the Shipping and Payments option in the Woosuite submenu and click on it. It will redirect you to a new page with some additional options.
Now, if you want to disable all shipping and payment rules on your WooCommerce store, click on the checkbox to disable the Global Restrictions option.
Conclusion
We finally figured out how to disable payment methods for a specific product. I hope you have achieved the final results without any error. Let me know if you have faced any issue during the whole process.