• Resolved Laura

    (@syccylinders)


    Hi!!

    I’m trying to show a code country in IP but I failed.

    Any help?

    abandonded cart

    I have found an url that it shows country code with ip, I think that it will helps:

    https://ipinfo.io/"some ip that you want"/country

    I suppose that you need to get ip and show the result of that url, but I don’t know.

    ip answer

    Thanks!

    • This topic was modified 7 years, 9 months ago by Laura.
    • This topic was modified 7 years, 9 months ago by Laura.
    • This topic was modified 7 years, 9 months ago by Laura.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey

    So you want the IP address cell in the table to link to the ipinfo.io url?

    That shouldn’t be too much trouble.

    You can email me [email protected] and I’ll send you a custom version.

    Thread Starter Laura

    (@syccylinders)

    no no, I want to show country acronyms, is the response of this website if you write ip between https://ipinfo.io/127.0.0.1/country. Do you know, what I mean?

    Oh ya I get what you’re asking for now.

    I don’t think it makes sense to add that feature to the plugin for everyone but since you already started to customize the existing code you can add it to your version.

    If you add a method to the class that renders the other columns you should be able to make requests to that URL, parse out the country code in the response and finally render the country code in the table. Take a look at the other methods in that class that are used to render columns for an example of the naming convention.

    Let me know if you need more help.

    Marking this as resolved. Let me know if you need more help.

    Thread Starter Laura

    (@syccylinders)

    Hi @canship,

    I tried it but I can’t resolve it T_T

    Can you post up what you’ve tried so far?

    Thread Starter Laura

    (@syccylinders)

    pff I deleted all the code that I made, you don’t worry, I will ignore this matter..

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘IP country code’ is closed to new replies.