Home Forums WoodMart support forum How to Change Price tag to Custom Text ?

How to Change Price tag to Custom Text ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #575576

    wanuja
    Participant

    I have added prices for all of products. but prices are changing daily, so
    How can I add “Discount Available” (custom text) instead of Price tag?
    Thank you.

    #575672

    Hello,

    Add the code below to the functions.php file in your child theme:

    add_filter('woocommerce_get_price_html', 'custom_price_message');
    function custom_price_message($price) {
        return '<span class="custom-price">Discount Available</span>';
    }

    Best Regards.

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)