Support » Plugin: WooCommerce » Displaying “Price on Request” when the regular price is set to 0

  • Hello,

    I would like the possibility to set the price to “Price on Request” when the regular price is set to 0.

    I have read about how to make a blank space into SOLD.

    The code looks like this:

     
    add_filter('woocommerce_empty_price_html', 'custom_call_for_price');
    
    function custom_call_for_price() { 
    return 'Call for price'; 
    } 
    

    However I wish to also have an option for “Price on Request” by setting price to 0.

    I know there was previously woocommerce_free_price_html hook, but it seems not to work any more..

    Is there a code I can add to functions.php in order to create “Price on Request” to show when making the price = 0 ?

    Thanks!

  • The topic ‘Displaying “Price on Request” when the regular price is set to 0’ is closed to new replies.