Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I’m sorry, but I will need more information about your project, for give you more precise tips:

    – What service will be used to get the currency rates?
    – Do you know if the currency rate service has an API available?
    – Do you know if the currency rate service requires of authentication?

    Best regards.

    Thread Starter pareet

    (@pareet)

    Hi, thanks for your reply. I’m open to using any of the Yahoo, Google or Open Source Exchange Rates APIs. The specific currency conversion I’m looking at is USD to INR (e.g. 64.70)

    More technical information on using these APIs is provided here, although I did not understand all technicalities and how to link it to this plugin.

    Click here and go to answers section for the technical information.

    Many thanks!

    Plugin Author codepeople

    (@codepeople)

    Hi,

    To get the currency rate you can use the following URL:

    https://query.yahooapis.com/v1/public/yql?q=select%20%2a%20from%20yahoo.finance.xchange%20where%20pair%20in%20%28%22USDINR%22%29&env=store://datatables.org/alltableswithkeys

    However, there is not an explicit way to do it, you need to implement a very specific equation to get the XML structure synchronously, and extract the currency rate from it; and finally, apply the currency rate to the rest of the equation.

    The code to implement all this logic is independent of the plugin’s code, you should to do it directly with JavaScript, or using a framework like jQuery.

    However if you need additional help implementing your project, you can request a custom coding service through our private support page:

    https://wordpress.dwbooster.com/support

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calculate field based on live currency exchange rate’ is closed to new replies.