Hi there,
I’m working on a website where I have to show within the backend values, which are calculated from an user’s entry, you are right, I’m writing about the well loved VAT 😉
Right now I’m working within the javascript with “hardcoded” percentages, this isn’t a real problem, but it’s not ideal. All three values (net, reduced, full) are calculated on the fly and it doesn’t matter which price is edited.
On a ACF option page the user shall edit the percentage values for the two different VAT sums (a full and a reduced percentage). Is there an direct approach to receive the values via javascript? If not, what might be the best hook to receive the values via php and set two javascript constants?
Yours
Thomas