Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter phpteam

    (@phpteam)

    We checked ‘Enable Auto Country Select’ but still this is not working. United states is always shown as default country. Please help. Thanks.

    Same thing happened to me. I checked the API used for geolocation and the API response is limited.

    So I changed the API url used for geolocation and adjusted variable used in the plugin file.

    Here’s how to do it:
    1. Go to Plugin editor and select Country & Phone Field Contact Form 7 plugin
    2. Go to file /includes/include-js-css.php
    3. Near line 138, comment the url and add new geolocation API url so it will be something like
    //url: “https://reallyfreegeoip.org/json/”,
    url: “https://freeipapi.com/api/json/”,
    4. Near line 140 in success callback, add adjusting variable so it will be something like
    success: function(response){
    response.country_code = response.countryCode.toLowerCase();
    5. Done. You can test again

    So in this case we only change added two line of code total. Hope this helps

    Thread Starter phpteam

    (@phpteam)

    Thanks. We will check.

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @phpteam ,
    The IP tracking API is working fine. Kindly share your webpage URL. I will try to check the issue.
    If everything working fine. Kindly share your valuable reviews.

    Regards
    Narinder.

    Plugin Author Narinder Singh

    (@narinderbisht)

    @phpteam
    I did find any response on this thread, so I am mark it resolved.
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.