Support » Plugin: International Telephone Input for Contact Form 7 » Visitor’s Country Detection – Not Working

  • Hi there,

    I tried on Chrome and Firefox, both without AD blockers (turned off the build-in tracking protection on Firefox as well), the phone number field shows a blank grey box.

    Does anyone have the same situation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter marcusasiabc

    (@marcusasiabc)

    I find another plugin named https://wordpress.org/plugins/geoip-detect/

    It allows to download a DB of geoip location in your local WP, so the detection can be done without outgoing request. But, I can’t find a way to pass the detected country from that plug-in back to the “International Telephone Input for Contact Form 7” on page load.

    I hope that if @yordansoares may have a bit of spare time to look to the possibility of the development.

    Plugin Author Yordan Soares

    (@yordansoares)

    Hello @marcusasiabc,

    Thanks for your research. I’ll take a look to the plugin you mention to see the way to improve the IP detection handle for those users that need more than 10.000 requests per month.

    Best regards,
    Yordan Soares

    Plugin Author Yordan Soares

    (@yordansoares)

    Hello @marcusasiabc, @angusluk, @amit5204 and @paulwlynch,

    Although this isn’t the best solution, I have released the latest version of the plugin that allows you to add an Initial Country. When this option is set, the IP lookup feature will be disabled. See the changelog here.

    To add this option to an existent form-tag, just put the initialCountry parameter with the two-letter country code of your initial country this way:

    [intl_tel your-phone initialCountry:us]

    You also can add a new international telephone input using the form tag generator:

    Adding an initial country

    I haven’t had too much time these weeks, but the next task in my list is to add a method to select from several default IP query services available and even be able to add a custom one.

    The main challenge here is to be able to have a solution that allows us to deal with the monthly limits of requests that usually don’t exceed 10,000 requests. Also, to be able to have several options of free and paid services, because some of them become unavailable over time. For example, https://freegoip.app/ is not working right now.

    In the meantime, I will keep the topic open to let you know when it is available.

    Thanks to you all for your nice suggestions!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Visitor’s Country Detection – Not Working’ is closed to new replies.