remove duplicate application of taxes to price display for grouped products (https://github.com/woocommerce/woocommerce-blocks/pull/1505)

This commit is contained in:
Darren Ethier 2020-01-07 10:48:32 -05:00 committed by GitHub
parent 1d95c11f60
commit 01e5398564
1 changed files with 2 additions and 2 deletions

View File

@ -302,8 +302,8 @@ class ProductSchema extends AbstractSchema {
if ( ! empty( $child_prices ) ) {
return [
'min_amount' => $this->prepare_money_response( $price_function( $product, [ 'price' => min( $child_prices ) ] ), wc_get_price_decimals() ),
'max_amount' => $this->prepare_money_response( $price_function( $product, [ 'price' => max( $child_prices ) ] ), wc_get_price_decimals() ),
'min_amount' => $this->prepare_money_response( min( $child_prices ), wc_get_price_decimals() ),
'max_amount' => $this->prepare_money_response( max( $child_prices ), wc_get_price_decimals() ),
];
}
}