I'm using dynamic data to populate a text field. I have selected the Woocommerce price option and selected Regular Price. It's outputting this field incorrectly, or at least not as expected. Variation product prices are being output incorrectly. For instance, I have a product with multiple variations that are all the same price. It's outputting as "20.00 - 20.00". Additionally, variation prices that are correct show as "13.00 - 20.00". When I prepend them with a dollar sign it shows as "$13.00 - 20.00". The best and easiest way to fix this is to use the get_price_html function.
I'm using dynamic data to populate a text field. I have selected the Woocommerce price option and selected Regular Price. It's outputting this field incorrectly, or at least not as expected. Variation product prices are being output incorrectly. For instance, I have a product with multiple variations that are all the same price. It's outputting as "20.00 - 20.00". Additionally, variation prices that are correct show as "13.00 - 20.00". When I prepend them with a dollar sign it shows as "$13.00 - 20.00". The best and easiest way to fix this is to use the
get_price_html
function.