Removing payment gateways from WooCommerce

Arko Elsenaar picture Arko Elsenaar · May 24, 2013 · Viewed 24.7k times · Source

I have a WooCommerce shop (running local) but I want to remove the payment gateways. The customer should be able to place an order without paying any cent, I will send them an invoice manually.

I can not really find where to disable this, it seems not to be standard in WooCommerce.

Have tried disabling all the payment gateways in the backend, but you have to leave one payment gateway enabled.

Thanks in advance!

Answer

Mateusz Paulski picture Mateusz Paulski · Oct 9, 2015

Just add this line in functions.php in your theme: add_filter('woocommerce_cart_needs_payment', '__return_false');