In WooCommerce è semplice ottenere l'output HTML del prezzo dei prodotti.
La soluzione è la seguente:
<?php
function my_price_html( $product_id ) {
$the_product = wc_get_product( $product_id );
return $the_product->get_price_html();
}
?>