Script Summary: This script is obsolete. Converts Bricklink prices to any currency
This is a complete rewrite of the last version to support the new currency system of Bricklink and conversion to any currency.
Features
- Display prices in any curreny in any store and in shopping carts
- support for new currency system
- automatic detection of currency of stores
- automatic retrieval of real exchange rates
- (some) support for fixed exchange rates
- reset saved values for a store
How to use this script
Next to the regular prices in shops and in the shopping cart the prices will be shown in a currency of your choice.
The prices are calculated using the actual exchange rate between the shops' and the target currency or by the fixed exchange rate the store uses.
When the script runs for the first time you will be asked for a target currency. The currency has to be entered using the abbreviations from the ISO 4217 standard. You can find all available currencies here:
http://www.iso.org/iso/support/currency_codes_l...
Most of the script will work automatically. It detects the currency a store uses and gets exchange rates from Yahoo (or other services (see below)) once a day.
Fixed rates have to be entered manually and can only be used in shops that use US Dollar. This only works if the store uses a fixed rate between US Dollar and your currency! (You might estimate a rate in that case, but since fixed rates are considered bad style, you should consider looking for another store.)
For this reason you will be asked what exchange rate a store uses, if the script has detected that it uses US Dollar.
Most stores use do not use fixed rates and you can just enter 'USD' (without the quotes). Otherwise enter the fixed rate for US Dollar to your currency the store uses.
If the currency or the fixed rate of a store has changed, you have to click the new button at the bottom of an inventory page in that store. This will delete the saved values and new ones will be set automatically or manually (for fixed rate).
All calculated prices are estimates and in no way official.
If you find any bugs or problems, don't hesitate to tell me about it.
Any ideas, questions and feedback are greatly appreciated!
Written by
Lars Neumann (nikolarsi <at> gmail.com)
Code to retrieve exchange rate from yahoo inspired by
Amazon Local Currency - Dynamic version
(http://userscripts.org/scripts/show/1476)
by
Carl Henrik Lunde
Ori Avtalion
Simon Pope</at>



