• Hi Roy,
    Really enjoy your plugin. I was wondering if you can help me with a little problem that I have.

    I am letting users set what country they are shipping to (Canada/US).
    I force their $woocommerce->customer->shipping[country] and billing[country] to whatever they select.

    I would like to keep the functionality of your plugin, was wondering how can I disregard the user IP, and just get their country selected, stored in ($woocommerce->customer->shipping[country])

    Thank you.

Viewing 1 replies (of 1 total)
  • Thread Starter anguyred

    (@anguyred)

    I see the function

    public function get_user_country() {
    $user_country = apply_filters( ‘wc_geolocation_based_products_user_country’, $this->location_data[‘country_code’] );
    echo $user_country;
    return “$user_country”;
    }

    Seems like it returns the country ISOcode twice? “USUS” “CACA”?

Viewing 1 replies (of 1 total)
  • The topic ‘Changing location from IP to Woocommerce Country’ is closed to new replies.