How To Disable Payments on WooCommerce
Let’s say that you have a website with a shop on WooCommerce.
You only allow customers to place orders on the site without
You will have the need to disable all payment gateways on the site, but just disabling them in WooCommerce > Settings > Payments will not work because then the customers will get an error message since there are no payment methods available.
What you need is a snippet of code that marks all order not in need of payment.
Add this code to your functions.php file in wp-content/themes/your-child-theme-name/:
Thank you, it’s really helpful for my local store site.
I wish I could see your post sooner. It is really helpful for my Woocommerce site. Thanks for sharing!