A
A
alex steel2020-05-04 20:00:15
WordPress
alex steel, 2020-05-04 20:00:15

How to recalculate ACF field values?

There is a custom record type where there is an ACF price field.
The price can be set in 2 currencies, for example, currency1 and currency2 (you can make 2 fields for each currency) In
the records archive, the filter works only for currency1 (this is important)
these fields of values ​​in the second changed automatically according to the given coefficient?

For example, when currency1 * coefficient was filled in, the result was filled in currency2, and when currency2 was changed, it was recalculated according to the formula currency2 / coefficient . The coefficient value will be set separately.

I also want to ask in passing how to change the field values ​​for all records if the coefficient has changed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question