Always display WooCommerce variable product price

If all prices for a product’s variations are the same then variation price will not be displayed. But if it is the only displayed price then you are in trouble. To overcome this situation you can edit your template functions.php file like this:

// Display variation's price even if min and max prices are the same
add_filter('woocommerce_available_variation', function ($value, $object = null, $variation = null) {
  if ($value['price_html'] == '') {
    $value['price_html'] = '<span class="price">' . $variation->get_price_html() . '</span>';
  return $value;
}, 10, 3);