I’m using ACF with Woocommerce to add extra product details.
I’m wondering whether it is possible to use the Woocommerce product price as part of a math function in ACF?
For example, an electrical cable is $20 and is 10 meters long – I’d like to output the “Price Per Meter” (price/length) as a field. We would enter the “length” as a custom field, then the output of the calculation could be displayed on the product page (ideally using a shortcode).
It is important that this uses the Woocommerce product price, not a manually-entered ACF field, due to the nature of how the site is set up.
I’m not sure where to look for the answer to this one?