{"id":1138,"date":"2020-05-12T04:17:22","date_gmt":"2020-05-12T04:17:22","guid":{"rendered":"http:\/\/shaplakanon.com\/wpsupport\/?p=1138"},"modified":"2020-05-12T04:17:25","modified_gmt":"2020-05-12T04:17:25","slug":"woocommerce-disable-payment-method","status":"publish","type":"post","link":"https:\/\/shaplakanon.com\/wpsupport\/woocommerce-disable-payment-method\/","title":{"rendered":"Remove payment options from woocommerce"},"content":{"rendered":"\n
I had a client asking if it is possible disable all payment gateways in woocommerce checkout. The customer will be able to place orders without payment. He will send them an invoice manually.<\/p>\n\n\n\n
But in woocommerce you must have at least one payment gateway. So, here is the solution:<\/p>\n\n\n\n
add_filter('woocommerce_cart_needs_payment', '__return_false');<\/pre>\n\n\n\nIt will remove all payment method from woocommerce. You can customize this disable payment method for certain products or specific country.<\/p>\n\n\n\n
If you have any questions or issues to implement the code, feel free to comment below<\/p>\n","protected":false},"excerpt":{"rendered":"
I had a client asking if it is possible disable all payment gateways in woocommerce checkout. The customer will be<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176],"tags":[278,280,279],"class_list":["post-1138","post","type-post","status-publish","format-standard","hentry","category-woocommerce","tag-remove-payment-method-woocommerce","tag-woocommerce-disable-payment-method","tag-woocommerce-remove-payment-method"],"yoast_head":"\n
How to remove payment options from woocommerce checkout? - WordPress Support<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n