WordPress.org

Ready to get started?Download WordPress

Forums

Calculated Fields Form
[resolved] Currency conversion (2 posts)

  1. spinaker
    Member
    Posted 1 year ago #

    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: 'http://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.

  2. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    This type of support will be addressed through our support system. Please follow the link below:

    http://wordpress.dwbooster.com/support

    Best regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.