skip to Main Content

Making an exception for one coupon – Woocommerce

I am ussing this code to disable Paypal when any user use a coupon: add_filter('woocommerce_available_payment_gateways', 'applied_coupons_hide_payment_gateways', 20, 1 ); function applied_coupons_hide_payment_gateways( $available_gateways){ // Not in backend (admin) if( is_admin() ) return $available_gateways; // If at least a coupon is applied…

VIEW QUESTION
Back To Top
Search