Is there any way to force to show the price of the Product Variation I set as defaul in product page settings, instead of lower and higher prices?
I've got this code to show just one price, but the shown price is not the price of the default variation:
/*******************************
SHOW ONLY ONE PRICE FOR VARIATIONS
*********************************/
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
function custom_variation_price( $price, $product ) {
$price = '';
$price .= woocommerce_price($product->get_price());
return $price;
}