jeff_m66 Posted October 26, 2014 Share Posted October 26, 2014 hello,The following script is in (IN) Rupees currency. i want to set multiple currency in it like (US) Dollars and (UK) Pounds with currency switcher separately to set in the top of the webpage. <body><select id="baby_cycle" class="package-cycle" name="billing_cycle size="1" style="height: 30px; width: 190px; font-size: 17px; font-family: tahoma"><option value="triennially">3 Years - Rs. 178/mo*</option><option value="biennially">2 Years - Rs. 215/mo*</option><option value="annually">1 Years - Rs. 252/mo*</option> </select><P> <a id = "baby" class="call-to-action medium-size" data-href="http://signup.hostgator.in/cart.php?a=add&pid=1&promocode=SUNSHINE&billingcycle=" href="http://signup.hostgator.in/cart.php?a=add&pid=1&promocode=SUNSHINE&billingcycle=triennially">Order Now</a></P><script type="text/javascript">document.getElementById("baby_cycle").onchange = function (){document.getElementById("baby").href ="http://signup.hostgator.in/cart.php?a=add&pid=1&promocode=SUNSHINE&billingcycle="+this.value; }</script></body>can anyone provide me by adding multiple currency and switcher in this script?Regards,Jeff Link to comment Share on other sites More sharing options...
justsomeguy Posted October 27, 2014 Share Posted October 27, 2014 It's just multiplication, you need to figure out the exchange rate and multiply. There are various services where you can use their API to get the current exchange rate, or you can just hard-code a certain rate. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now