Include child prices in grouped_price_html filter

This commit is contained in:
Joshua Dwire 2016-07-05 09:44:26 -04:00
parent ce8e94b5ff
commit 2c42a81089
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class WC_Product_Grouped extends WC_Product {
if ( $is_free ) { if ( $is_free ) {
$price = apply_filters( 'woocommerce_grouped_free_price_html', __( 'Free!', 'woocommerce' ), $this ); $price = apply_filters( 'woocommerce_grouped_free_price_html', __( 'Free!', 'woocommerce' ), $this );
} else { } else {
$price = apply_filters( 'woocommerce_grouped_price_html', $price . $this->get_price_suffix(), $this ); $price = apply_filters( 'woocommerce_grouped_price_html', $price . $this->get_price_suffix(), $this, $child_prices );
} }
} else { } else {
$price = apply_filters( 'woocommerce_grouped_empty_price_html', '', $this ); $price = apply_filters( 'woocommerce_grouped_empty_price_html', '', $this );