A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Disable all payment gateways on checkout page

If your site takes orders but no payment is necessary then all of the payment gateways can be disabled with this one line of code.

/**
 * Disable all payment gateways on checkout page
 */

// Disables all payment gateways and replaces the 'Pay' button by 'Place order'
// Orders are processed as usual but require no payment for completion
// https://remicorson.com/how-to-disable-all-payment-gateways-in-woocommerce/

add_filter('woocommerce_cart_needs_payment', '__return_false');
View Raw Code ID: 1286