Let’s say that you have a website with a shop on WooCommerce.

You only allow customers to place orders on the site without taking payments because you handle them separately in your accounting software, or maybe via phone or in another way.

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/:

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

You have to agree to the comment policy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.