Warning: This method has been deprecated. calculate_item_subtotals should already appropriately round the tax values instead.

WC_Cart_Totals::round_merged_taxes( array $taxes )

Round merged taxes.


Description Description


Parameters Parameters

$taxes

(Required) Taxes to round.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class-wc-cart-totals.php

611
612
613
614
615
616
617
protected function round_merged_taxes( $taxes ) {
    foreach ( $taxes as $rate_id => $tax ) {
        $taxes[ $rate_id ] = $this->round_line_tax( $tax );
    }
 
    return $taxes;
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 calculate_item_subtotals should already appropriately round the tax values.
3.5.4 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.