get_values_for_total( $field ) ) ); } /** * Apply rounding to item subtotal before summing. * * @since 3.9.0 * @param float $value Item subtotal value. * @return float */ protected function round_item_subtotal( $value ) { if ( ! $this->round_at_subtotal() ) { $value = round( $value ); } return $value; } /** * Should always round at subtotal? * * @since 3.9.0 * @return bool */ protected function round_at_subtotal() { return 'yes' === get_option( 'woocommerce_tax_round_at_subtotal' ); } }