A diagnostic shortcode for Geo IP. Drop it into a text widget or any page and it prints what the plugin currently knows about the visitor's location and which currency the rules resolved for it. Available from v.2.1.8 / 1.1.8.
Example: [woocs_geo_hello]
What it is for
Geo IP problems are almost always one of three things, and this shortcode tells you which in a few seconds:
Geolocation is not running at all — from WooCommerce 3.9 it needs a MaxMind key in the WooCommerce settings. Without it there is no country to work from.
The country is detected but no rule matches it — the detection works, the Geo IP rules simply have no entry for that country.
Everything resolves correctly but the page is cached — the shortcode shows the right answer while visitors see something else, because they are being served a page built for whoever loaded it first.
Shortcodes, functions, actions and filters reference for FOX WooCommerce Currency Switcher
Codex — FOX Currency Switcher
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.