Autopopulating our country dropdown list with the correct country
An Inbound Now customer has asked to be able to automatically set his country select dropdown to the correct country when a visitor accesses his signup page. To get this done we are using the geoplugin.com ip lookup service, who provides us with enough free lookup calls to handle the traffic this this customer’s website will see.
Here’s an example of what the final modification looked like in our customer’s theme’s functions.php file:
(Visited 291 time, 72 visit today)