Merge pull request #11362 from joshuadwire/master
Include child prices in grouped_price_html filter
This commit is contained in:
commit
268d0b2241
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue