Retrieve the minimum price excluding 0 and display it, rather than showing a range
// Min Price in Shop Page add_filter( ‘woocommerce_get_price_html’, ‘custom_change_variable_price_display’, 10, 2 ); function custom_change_variable_price_display( $price, $product_obj ) { global $product; if ( ‘variable’ !== $product_obj->get_type() || ‘product_variation’ === $product_obj->post_type ) { return $price; } else { $variations = $product_obj->get_available_variations(); $prices = array( $product_obj->get_variation_price( ‘min’, true ), $product_obj->get_variation_price( ‘max’, true ) ); // Translators: %s is […]