I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).
If you are new here, please see some information on how to ask for support. Thank you!
-
Forgot last image

Hello Megan,
Thank you as always for the detailed screenshots.
My first thought would be that there is maybe a fiat currency from fixer, with the same symbol, overwriting the value. This is not the case.
Which Exchange rate providers are you using? Do you have only CoinGecko enabled?
I will investigate and let you know.
It shouldn’t be necessary, but if you want to force a reload of all exchange rates, it is very easy if you are using wp-cli:
wp option delete wallets_rates
wp transient delete wallets_rates_last_run
I will investigate on my end and let you know shortly what I found.
with regards
Ignore my last question, you already mentioned which providers you are using.
I already tried forcing rates update after deleting on cli, made no diffs.
When it pulled in the rates those wrong ones were there again.
I have made a bad assumption, that coin symbols are unique, when in fact they are not.
The price you see is not that of RapidCoin (RPD) but that of Ripped (RPD).
Let me think about how to approach this…
Hello again,
I have a solution:
function wallets_rates_rapidcoin( $rates ) {
$data = json_decode( file_get_contents( 'https://api.coingecko.com/api/v3/simple/price?ids=rapids&vs_currencies=USD,BTC' ) );
if ( $data ) {
$rates['USD_RPD'] = $data->rapids->usd;
$rates['BTC_RPD'] = $data->rapids->btc;
}
return $rates;
}
add_filter( 'wallets_rates', 'wallets_rates_rapidcoin', 100 );
You can insert this into your theme or as a separate one-file plugin.
Or, if you are using a file similar to this one, you can add the code at the bottom of the file.
with regards
Hi Alex,
Great that does over-ride the price, now correct prices showing in exhange-rate and woocommerce product.
You are a genius ::
- You must be logged in to reply to this topic.