Viewing 3 replies - 1 through 3 (of 3 total)
  • same here, why is that?

    Hello,

    I faced the same problem but if you go through FTP to wp-content>>>plugins>>>woocommerce-cod-advance inside this directory you will find a single file called woocommerce_advanced_cod.php open the file and comment out this three lines :

    //if ( $allowed_countries && $zone_fields && $zone_fields[‘zone_country’]) {
    //$selections = explode(‘,’, $zone_fields[‘zone_country’]);
    //}
    note find the closing bracket and comment that out too.

    This worked for me.

    Thanks,
    Vicky

    I personally removed the plugin and used the following code to exclude country from payment gateway.

    function payment_gateway_disable_country( $available_gateways ) {
    global $woocommerce;
    if ( isset( $available_gateways['cod'] ) && $woocommerce->customer->get_country() <> 'CY' ) {
    unset( $available_gateways['cod'] );
    }
    return $available_gateways;
    }
    add_filter( 'woocommerce_available_payment_gateways', 'payment_gateway_disable_country' );

    You can modify the above to suit your needs

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"No matches found" on "select country" field’ is closed to new replies.