Skip to main content
January 25, 2022
Question

Function to convert different currencies

  • January 25, 2022
  • 2 replies
  • 0 views

Hey everyone,

this one prob is a basic one but How can I build a function wich will convert the amount of money spent to different currencies (I want the currency to be available to allow the user to select the right one from a dropdown ).

Thank you in advance, 

Kind Regards

    2 replies

    gopalk2865
    Participating Frequently
    January 25, 2022

    HI victoriab0001, There may be many ways to create this, You might use some API which converts the ammout or you can have a refence tabel where you can store your conversion rate and you can create a rule to calculate the converted amount using the reference table data.

    stewart.burchell
    January 25, 2022

    Hi Victoria - if you're wanting to implement the equivalent to XE.COM then you'll need to integrate with some external services, specifically because the exchange rates are constantly fluctuating. I'm sure some research would surface some options.