• Good evening. I would like to know how I can hide the main price when using a variable product. The price that shows Price from and to (i.e. $50-$100).

    I would like to keep the price when selecting a variable product, but only remove the main price that shows min – max.

    Is this possible?

    Thank you
    Saake

Viewing 3 replies - 1 through 3 (of 3 total)
  • Add these lines at the very bottom of your theme’s functions.php file :

    
    add_filter( 'woocommerce_variable_sale_price_html', 'rt_remove_variation_price', 10, 2 );
    add_filter( 'woocommerce_variable_price_html', 'rt_remove_variation_price', 10, 2 );
     
    function rt_remove_variation_price( $price ) {
    $price = '';
    return $price;
    }
    
    Thread Starter saake

    (@saake)

    Thank you very much!

    You are welcome ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to hide variable product price (to and to)’ is closed to new replies.