donk3y
Forum Replies Created
-
Forum: Plugins
In reply to: [Bitcoin and Altcoin Wallets] Custom Exchange rates on frontendDear Alex,
Thank you for your quick response and helpful answers! My inquiry is focused more on your 6th point: WP-REST API. Now, I’m still in the process of getting a grasp of REST API, not going to lie. But here’s what I’m trying to do:
- User the API to get current BTC – EUR and BTC – USD Exchange rates
- Use these rates and insert them to my form and perform calculations with it.
- Store these forms.
and…as I’m writing this I figured it out…You’re documentation was in fact excellent and led me to the right direction. However, I’ll just note it down anyway, how I got it working in case someone else is stuck:
jQuery.ajax( {
url:${dsWallets.rest.url}dswallets/v1/users/${dsWallets.user.id}/currencies
,
cache: false,
method: 'GET',
headers: {
'X-WP-Nonce': dsWallets.rest.nonce,
},
success: function( response ) {
console.log( response );
// TODO do your thing here with the response
// For getting Euro exchange rates:
console.log(response[0].rates['eur'])
},
} );this will be the JS file. And the object you’re looking for is in ‘response’. in my case it was response[0].rates[‘eur’].
Thank you again Alex, you were a great help!
Best regards,
Daniel
I confirm, same here. Disabling the Popup maker plugin, makes the issue disappear, and the turning off debugger hides the issue, but plugin fix is needed. Updating the plugin to the latest version did not resolve the issue. Please help.
Wow! Great news! Thank you for your support! Looking forward to the update!
Cheers!