[imp_desc]
Usage:
[currency]800[/currency]
[currency base="USD"]2000[/currency]
Only base=”XXX” is supported, where XXX is the three-letter currency code (GBP, USD, EUR etc.)
This plugin has GBP as the default base currency. If you want a different default base currency or output format, fork the plugin.
The ~ character is included in the output to indicate that it is only an approximate conversion, as the geoplugin.net rates will be different to the rates you might actually use.
Download
Download from WordPress Plugin Repository: Geoplugin Currency ShortcodeAutomatically convert amounts into the currency matching the viewers IP locale v1.0 (277 downloads).
Installation
- Unzip and upload
geoplugin-currency-shortcodefolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
FAQ
- Can I change the base currency or output format?
- Yes, amend the plugin code. For such a simple plugin, it’s unlikely I’ll be adding a settings page.
Changelog
1.0
- First public version.
Your plugin does not work as expected.
I was hoping that it will do the following
1) give a small currency selector that the customer can choose at runtime
2) Display the relevant currency symbol
Does not do both.
I used
[currency base="USD"]200[/currency]
Hi mcondev,
1) Nowhere does this plugin say that a user currency selector is added, since the currency is determined from the geo-data of the user’s IP address. Including a selector within the content would disrupt the flow of the content, and adding one elsewhere is outside the realm of this small plugin.
2) You are free to use whatever symbol you want in the original text, outside of the shortcode. The symbol of the converted currency comes from the geo-data, and is echoed in before the amount. No consideration is taken for locales that show the symbol after the amount.