Modifier l’affichage du prix sur la fiche produit

J’ai résolu une partie du problème.

I solved part of the problem.

**function change_product_price_display( $price ) {
if ( is_product() && has_term( array( 'clair', 'moyen', 'fonce' ), 'product_cat' ) ) {
    $price_unit = $price;
    $prices     = get_post_meta( get_the_ID(), '_price', true );
    $surface    = get_field( 'surface' );
    $surfaces   = str_replace( '.', ',', get_field( 'surface' ) );
    $price_surface = $prices/$surface;
    if ( !empty( $surface ) ) {
       return '<p><ins><span class="woocommerce-Price-amount amount"><bdi>'. str_replace( '.', ',', sprintf("%.2f", $price_surface ) ) .'<span class="woocommerce-Price-currencySymbol"> €</span></bdi></span></ins><small class="woocommerce-price-suffix"> TTC/m²</small><br>Soit ' . $price_unit . ' le paquet de ' .$surfaces . ' m²</p>';
    }
}
return $price;

}
add_filter( ‘woocommerce_get_price_html’, ‘change_product_price_display’ );**

Voici le résultat :

67,70 € TTC/m²
Soit 135,40 € TTC le paquet de 2 m²

How can we retrieve this function to display it in the cart under the name?

Comment peut-on récupérer cette function pour l’afficher dans le panier sous le nom ?

add_action( ‘woocommerce_after_cart_item_name’, ‘…’ );