Support » Plugin: Booster for WooCommerce » Hide Product Add On Price

  • Hoping someone can point me in the right direction to hide the price for Product Add Ons.
    If I set the price to zero it still displays “$0” next to the addon. If I leave the price field blank then it pulls in the variation price of the product which I had to set to get variations to work correctly. I’m using a plugin to turn WooCommerce into a request a quote platform which doesn’t show a price and it works well except for the product add ons.
    I’m guessing a slight modification to the product add ons php file is what I need to do but I’m struggling to find the right part of the code to modify. If anyone can point me in the right direction it would be much appreciated!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi James, thought id come back on this as I was trying to do the same thing!!
    You can edit the product-addons.php file, take out the variable on the select options(front end)

    $select_options .= ‘<option value=”‘ . $label . ‘”‘ . $is_checked . ‘>’ . $labels[ $i ] . ‘ (‘. wc_price( wcj_get_product_display_price( $_product, $this->maybe_convert_currency( $prices[ $i ] ) ) ) . ‘)’ . ‘</option>’;

    Of course -if you use the select drop down that is

    If you need my help pop me a message happy to see if I can help further

    Thank you for replying Kelly, much appreciated! 🙂 In the end I went with incorporating the add-ons into attributes with variations instead to negate the need for a product add-on plugin which works well and I can keep the price hidden.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Product Add On Price’ is closed to new replies.