WooCommerce is an eCommerce WordPress plugin used to arrange a web based store in your WordPress web site. WooCommerce may be very versatile and user-friendly as you’ll be able to 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 clients who place an order on common foundation like weekly and pay later on the finish of the week, fortnight, or perhaps a month. Generally you wish to schedule an order supply on completely different dates. The place the gross sales division manages all of the invoices and supply schedules, and this could positively make issues simpler for the purchasers to put an order.
Not too long ago we created a web based retailer for one in every 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 want to disable or cover cost gateways.
Right here is the code snippet written beneath that you should 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 will likely be disabled and clients will have the ability to place orders and go to the thankyou web page on to see order particulars.
We’re WordPress WooCommerce specialists. We did a number of work in WooCommerce like WooCommerce-ready theme design, Store setup, customization, and plugin improvement. You’ll be able to talk about your Woocommerce necessities with us.