ASB Currency Conversion

By nathan.f77@gmail.com Last update Feb 29, 2012 — Installed 419 times.

Script Summary: Convert balances to different currencies (HKD and USD by default)



This script operates on the Balances page, and converts amounts from NZD into other currencies using the money.js library.
It then inserts these conversions into the balances table.

Here's what the result looks like:

To choose your desired currencies, you will need to download the script and change the array at:

p.convert_to = ["auto", "USD"];

If you use 'auto', the script will automatically detect your country from your IP address, and convert into the currency of that country (unless you are in NZ, of course.) It uses the JSONP service at https://www.geoplugin.net/json.gp