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.
Not a problem… Just copy and paste below only one line code snippet 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 couple of times in a week and pay later at the end of the week, fortnight or even a month. Where accounts department manages all the invoices this can definitely make things easier for the clients to place an order.