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 possibly can simply customise its performance utilizing its hooks and its templates by overriding choices in your theme.
Why disable all cost 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 wish 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 may undoubtedly make issues simpler for the purchasers to put an order.
Lately we created a web-based retailer for considered one of our purchasers 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 cost 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 cost performance. You might want to disable or disguise cost gateways.
Right here is the code snippet written under that you must copy after which paste into your theme’s
// Disable all cost gateways on the checkout web page add_filter( 'woocommerce_cart_needs_payment', '__return_false' );
After putting this snippet all cost gateways can be disabled and prospects will be capable of place orders and go to the thankyou web page on to see order particulars.
We’re WordPress WooCommerce consultants. We did a number of work in WooCommerce like WooCommerce-ready theme design, Store setup, customization, and plugin growth. You’ll be able to talk about your Woocommerce necessities with us.