-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The plugin should be able to detect the visitor's currency #6
Comments
To get the visitor's currency, I used the geoplugin.com service, by adding the following function to AUCP_Currency_Conversion class:
it returns the 3-letter code if available, otherwise returns 'USD'. |
If we want to avoid the http request, we can include de geoip lib and do the geolocation using the function:
Returns the three letter country code on success, or |
After a discussion with @wvega we decided to postpone this until after 1.0.
|
This issue is about discussing the possible approaches to detect the visitor's currency, choose one and implement that solution.
The text was updated successfully, but these errors were encountered: