WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Woocommerce payment methods (1 post)

  1. Dalibr
    Member
    Posted 5 months ago #

    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.

    https://wordpress.org/plugins/woocommerce/

Reply

You must log in to post.

About this Plugin

About this Topic