Woocomemrce add text after price plugin and php code

<?php 

add_filter( 'woocommerce_get_price_html', 'njengah_text_after_price' );

function njengah_text_after_price($price){

    $text_to_add_after_price  = ' / por unidad'; //change text in bracket to your preferred text

    return $price .   $text_to_add_after_price;

}


add_action('woocommerce_add_to_cart', 'custome_add_to_cart');

Leave a Reply

Your email address will not be published. Required fields are marked *