• Resolved spinaker

    (@spinaker)


    Hi guys,
    I’m working on a form that is calculating the total price for selected services and it is in Libyan Dinars. I need to convert it to USD. So I’m using open exchange rate api(https://openexchangerates.org/). There is the jquery function that fetches the rate and converts into usd:

    $(document).ready(function(){
    $.ajax({
    url: ‘https://openexchangerates.org/latest.json? app_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’,
    dataType: ‘jsonp’,
    success: function(json) {
    lyd = json.rates.LYD;
    return fieldname37 / lyd;
    }
    });
    });

    It is working properly in a stand alone page but I can’t make it work with the plugin. I’ve included the jquery library in the header.php file. (<?php wp_enqueue_script(“jquery”); ?>)
    I’ll appreciate any help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Currency conversion’ is closed to new replies.