• Resolved minsuwai

    (@minsuwai)


    Here is the code

    add_filter( ‘woocommerce_states’, ‘bbloomer_custom_woocommerce_states’ );

    function bbloomer_custom_woocommerce_states( $states ) {
    $states[‘MM’] = array(
    ‘Yangon’ => ‘Yangon’, ‘Other City’
    );
    return $states;
    }

    If the user will choose ‘Yangon’, the payment should available both Direct Bank Transfer and Cash on delivery. But if the user choose ‘Other City’, the payment should available only one Direct Bank Transfer.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restrict Payment’ is closed to new replies.