Viewing 4 replies - 1 through 4 (of 4 total)
  • Add the following code to your theme’s functions.php file and tweak it as necessary

    add_filter('woocommerce_variable_price_html', 'ashah_variation_price', 10, 2);
    
    function ashah_variation_price( $price, $product ) {
    
         $price = '';
         $price = 'From : ';
         $price .= woocommerce_price($product->get_price());
    
         return $price;
    }
    Thread Starter sunnylife

    (@sunnylife)

    @anandamd The above code is not working.

    Try switching to a default theme like Twenty Sixteen and see if it works then.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Code above should change something. If you see no changes at all, you may have added to the wrong place.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to hide price range of the same product’ is closed to new replies.