• Resolved vadholyk

    (@vadholyk)


    Good afternoon everyone! I ask for help !!!! It is necessary to insert into the TablePress table the exchange rate from the bank’s website so that it was included in the races ???
    In other words, I have a price that should automatically change according to the exchange rate

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter vadholyk

    (@vadholyk)

    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 ???

    Thread Starter vadholyk

    (@vadholyk)

    View post on imgur.com


    Here you need to insert the exchange rate, since the entire table is calculated from these cells !!!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    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

    Thread Starter vadholyk

    (@vadholyk)

    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 !!!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m not sure that I understand the last part with the rounding. Can you explain that more?

    Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘how to insert currency rates from the bank’s website into TablePress’ is closed to new replies.