Support » Plugin: Booster for WooCommerce » Free price text product

  • Hello,thanks for a great plugin. I am very happy. I bought the PRO Plugin and I try to change the text “Free” when you set the product price to 0. Where can I change this text?
    I do not find the option.

    I found some code, but I prefer to use the plugin service 🙂

    add_filter( ‘woocommerce_variable_free_price_html’, ‘hide_free_price’ );
    add_filter( ‘woocommerce_free_price_html’, ‘hide_free_price’ );
    add_filter( ‘woocommerce_variation_free_price_html’, ‘hide_free_price’ );
    function hide_free_price($price){
    return ‘Price Not Announced’;

    Thanks a lot for your help.

    Fredrik Webdesigner

Viewing 1 replies (of 1 total)
  • Plugin Author Algoritmika Ltd


    Hi Fredrik,

    Thanks for the idea. I’ve just implemented it in the development version. If you wish to check it out, development version is here – You will need to uninstall the old version first (don’t worry your saved settings won’t disappear). New module is in “WooCommerce > Settings > Booster > Button & Price Labels > Free Price”. I’ve also added options to set different text depending on view (single product page, related products, product category etc.). Please let me know if you have any questions or find any bugs.

    P.S. If I may suggest – from your code I see that you want to hide the price from your customer (i.e. “Price Not Announced”), but your customer still will be able to add this product to the cart. If you want to hide the add to cart button, I suggest leaving the price empty (not zero), and then using Booster’s “Call for Price” module (in “WooCommerce > Settings > Booster > Button & Price Labels > Call for Price”) to customize the message (e.g. set it to “Price Not Announced”).

    P.P.S. If you like Booster, please leave us a rating.

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Free price text product’ is closed to new replies.