Hi,
thanks for your post, and sorry for the trouble.
Unfortunately, I’m not aware of an existing solution for this. You’d need to write custom code that queries some external bank site’s API for exchange rates.
Regards,
Tobias
I have a code that displays the necessary numbers on my site, but how can I insert them into tablepress and so that the table can calculate them ???
View post on imgur.com
Here you need to insert the exchange rate, since the entire table is calculated from these cells !!!
Hi,
ok, I see what you mean. If you want to use these in formulas, you’ll need to modify the table data in a plugin filter hook, tablepress_table_raw_render_data, see https://github.com/TobiasBg/TablePress/blob/8da0dfa7772147d9801681c5b89fa59d0039018d/classes/class-render.php#L119
You’ll need to hook into this filter hook, check if you are dealing with the correct table and then replace the fixed numbers with the up-to-date ones.
Regards,
Tobias
I admit honestly, I probably won’t be able to check it, because I don’t understand the code too much! (((I’ve found a workaround using Table Auto Update Extension 1.3 now I can every 15 minutes in which the currency is loaded)) But a new problem has appeared from -because of rounding, if I round on google, then all the same, the full value gets into tablepress and I don’t even know how to do it correctly. , but so far I can only see it !!!
Hi,
I’m not sure that I understand the last part with the rounding. Can you explain that more?
Regards,
Tobias