Merge pull request #11362 from joshuadwire/master

Include child prices in grouped_price_html filter
This commit is contained in:
Claudio Sanches 2016-07-05 18:25:11 -03:00 committed by GitHub
commit 268d0b2241
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 ) {
$price = apply_filters( 'woocommerce_grouped_free_price_html', __( 'Free!', 'woocommerce' ), $this );
} 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 {
$price = apply_filters( 'woocommerce_grouped_empty_price_html', '', $this );