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/:
Leave a Reply