Change variable product price range to “From: min price”

// Variable Product Price Range: "From: $$$min_price"
 
add_filter( 'woocommerce_variable_price_html', 'awk_variation_price_format_min', 9999, 2 );
  
function awk_variation_price_format_min( $price, $product ) {
   $prices = $product->get_variation_prices( true );
   $min_price = current( $prices['price'] );
   $price = sprintf( __( '<span class="priceFrom">From:</span> %1$s', 'woocommerce' ), wc_price( $min_price ) );
   return $price;
}
Scroll to Top