Linux 软件免费装
Banner图

LocalMoney

开发者 SteveMulligan
更新时间 2013年10月16日 00:28
捐献地址: 去捐款
PHP版本: 2.7 及以上
WordPress版本: 3.6.1
版权: GPLv2 or later
版权网址: 版权信息

标签

cache ecommerce product localization review travel converter currency prices financial exchange rates currency rates

下载

1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.6 1.0.5

详情介绍:

A cache-compatible WordPress plugin which converts all prices of the currency of your choice in a post or page in the viewer's local currency. LocalMoney relies on the WP-cron system to fetch and cache the rates from Open Exchange Rates on an hourly basis and then uses javascript to lookup the visitor's location and fetch the appropriate rate data. This means that, unlike some plugins I could mention, LocalMoney is compatible with caching plugins. LocalMoney, once configured, immediately (or as soon as your cache updates) acts on all your posts and pages without you having to mark up the prices in your text. Features
  1. Determines the reader's country via IP address, using IP2C
  2. Resolves proxies with the 'forwarded-for' header so AOL-compatible
  3. If IP2C fails uses the language settings and timezone offset to guess location
  4. Obtains exchange rates from openexchangerates.org
  5. Uses AJAX so that converting currency values doesn't delay page load times
  6. Caches exchange rates locally to minimize calls to openexchangerates.org
  7. Output prices matched to format of input prices (i.e. with or without cents)
How to Use Once LocalMoney is installed it will take any page on which US dollar prices are displayed and convert them to the visitors local currency. If your posts are written with another currency you can change the base currency in the Settings > LocalMoney page.

安装:

  1. Upload plugin-name.php to the /wp-content/plugins/ directory.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
  3. Go to openexchangerates.org and sign up for a free account.
  4. Copy your API key (should be a string of 32 alphanumeric characters).
  5. Go to Settings > LocalMoney and paste the API key into the field.
  6. On the same page if your own currency is not the US Dollar select it.
  7. If you are using a caching system you may want to empty your cache in order to benefit from the plugin immediately.

屏幕截图:

  • The LocalMoney settings page.
  • LocalMoney in action -- exciting isn't it!

升级注意事项:

1.0.5 2013-10-14 Bug fixes and performance improvements. 1.0.4 2013-09-12 Compatibility with WordPress 3.6.1. 1.0.3 2013-06-21 Backward compatibility bug fix. 1.0.2 2013-05-26 If your WordPress installation isn't in root you need this bug fix! 1.0.1 2013-04-28 Miscellaneous bug fix release. 1.0.0 2013-03-17 Now converts from any currency to any other! 0.0 2013-03-06 First development version.

常见问题:

What do I have to do to tell LocalMoney where the prices are on my page?

Nothing!

How does LocalMoney decide which currency to convert to?

In order to make the lookup process more robust the LocalMoney plugin uses a main and a fallback mechanism to lookup a visitor's location. The main system is the IP2C (IP to country) lookup service which is included with the plugin. If the user is accessing your site via a proxy the 'Forwarded-for' header will be used, allowing users from AOL to benefit from this plugin. The fallback system looks at the visitor's language preference. If it is in the form 'en-GB' it will use the appropriate currency for GB which is Pound Sterling. If the language preference is in the form 'en' it will check the timezone offset of the user and guess the appropriate country from that, i.e. in the case of 'en' the following data will be used: 0 - 24-> gb gb gb gb gb in in ch au au au au nz nz us us us us us us gb gb gb gb Under the fallback system, because the currency is determined by the settings on the user's machine, a visitor who happens to be in a foreign country still gets their own currency not the local one (unless they have changed their timezone settings).

更新日志:

1.0.5 2013-10-14 1.0.4 2013-09-12 1.0.3 2013-06-21 1.0.2 2013-05-26 1.0.1 2013-04-28 1.0.0 2013-03-17 0.0 2013-03-06 Development version!