fazlurr
2/21/2018 - 2:00 AM

Display Minimum Price

Only display minimum price on WooCommerce variable product

<?php
/**
 * Only display minimum price for WooCommerce variable products
 **/
function custom_variation_price( $price, $product ) {
  $price = '';
  $price .= woocommerce_price($product->get_price());
  return $price;
}
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);