You have a WooCommerce online shop and want to Disable all payment Gateways in WooCommerce store you manage. So you can send customer invoice later.
You can watch the video below for instructions or keep reading. I promise won’t take more than 2 minutes.
All you have to do is Just copy and paste the code snippet written below in your theme’s functions.php file.
// Disable all payment gateways on the checkout page and replace the "Pay" button by "Place order" add_filter( 'woocommerce_cart_needs_payment', '__return_false' );
And Voila! the checkout page now displays a lovely “Place Order” button, no more payment gateways…
Please let me know to place an order on your eCommerce site after you use the above code. 🙂 Just kidding
I personally know a couple of local businesses who use WooCommerce to power their online shop.
where payments aren’t handled by WooComerce at all and Customers can pay later by other means such as cheque, Bank transfer or Cash.
This amazingly easy way to disable all payment gateways at once, no need for a plugin, no need to pull your hair.
The solution is just one single line of code to add to the file called functions.php, within your theme folder, or using a plugin like Code Snippets.
When You Need to Disable All Payments
It all depends on how you manage your business and your relationship with your clients.
If you have regular clients who place an order at least a couple of times in a week and pay later at the end of the week, fortnight or even a month. Where the accounts department manages all the invoices this can definitely make things easier for the clients to place an order.