Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module provides support for the money.js currency conversion script from http://josscrowcroft.github.io/money.js/ along with support for the Open Exchange Rate currency conversion data.
If you have Libraries module, copy money.js and accounting.js to sites/all/libraries/moneyjs/. If not, just put them in the folder for this module.
Run cron to pull in latest conversion rates. Link to do this is on admin page. If nothing populates check the logs.
Now how to you get it to work on your site. Right now, that is done via a full HTML block:
Add something like the following to a custom block:
<div id="moneyjs"><fieldset style="margin:auto;width:225px"><legend>How much is $999.99 in your currency?</legend>
<select name="currency" id="currency" style="width:200px;"></select><h2 id="price" style="text-align:center">999.99</h2>
</fieldset> </div>