Remove some payment gateways if any coupon code is applied in Woocommerce
问题 I started to work on small Woocommerce project. I have 3 payment gateways into this store: Paypal, Credit Card and Direct bank Transfer. What I would like is: If coupon code is used, I would like to disable (or remove) Paypal and Credit Card from available payment gateways, and just keep "Direct bank Transfer" as available payment gateway choice. To show how is look current state from checkout page: I found a similar solution, but this is for removing gateway based on product category. add