Support » Plugins » Woocommerce

  • Hello,

    I want to edit woocommerce payment according to chosen shipping method. I tried it like this, but it doesn’t work.

    add_filter('woocommerce_available_payment_gateways','wpml_filter_gateways',1);
    
    function wpml_filter_gateways( $gateways ) {
    if( isset( $available_methods['flat_rate:dobirka'] ){
     unset($gateways['paypal']);
     }
        return $gateways;
    }

    Any ideas?

    Cheers.

  • The topic ‘Woocommerce’ is closed to new replies.