How you can disable/cover all fee gateways in WooCommerce


WooCommerce is an eCommerce WordPress plugin used to arrange a web-based store in your WordPress web site. WooCommerce could be very versatile and user-friendly as you may simply customise its performance utilizing its hooks and its templates by overriding choices in your theme.

Why disable all fee gateways in WooCommerce?

When you have long-term prospects who place an order on common foundation like weekly and pay later on the finish of the week, fortnight, or perhaps a month. Typically you need to schedule an order supply on totally different dates. The place the gross sales division manages all of the invoices and supply schedules, and this will positively make issues simpler for the purchasers to position an order.

Not too long ago we created a web-based retailer for one in every of our shoppers who scheduled orders supply on chosen days that’s managed within the backend system. So, when the purchasers visited the shop, they positioned orders with out doing on-line funds.

Woocommerce hook to disable fee gateways

If you wish to arrange a Woo retailer for items supply the place the store proprietor desires to take orders manually and ship later by sending an bill to the shopper; in different phrases, he doesn’t want on-line fee performance. That you must disable or cover fee gateways.

Right here is the code snippet written under that you should copy after which paste into your theme’s features.php file.

// Disable all fee gateways on the checkout web page
add_filter( 'woocommerce_cart_needs_payment', '__return_false' );

After inserting this snippet all fee gateways can be disabled and prospects will be capable to place orders and go to the thankyou web page on to see order particulars.

We’re WordPress WooCommerce consultants. We did a whole lot of work in WooCommerce like WooCommerce-ready theme design, Store setup, customization, and plugin improvement. You’ll be able to focus on your Woocommerce necessities with us.