|
@@ 2215-2218 (lines=4) @@
|
| 2212 |
|
*/ |
| 2213 |
|
public function get_taxes_total( $compound = true, $display = true ) { |
| 2214 |
|
$total = 0; |
| 2215 |
|
foreach ( $this->taxes as $key => $tax ) { |
| 2216 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2217 |
|
$total += $tax; |
| 2218 |
|
} |
| 2219 |
|
foreach ( $this->shipping_taxes as $key => $tax ) { |
| 2220 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2221 |
|
$total += $tax; |
|
@@ 2219-2222 (lines=4) @@
|
| 2216 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2217 |
|
$total += $tax; |
| 2218 |
|
} |
| 2219 |
|
foreach ( $this->shipping_taxes as $key => $tax ) { |
| 2220 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2221 |
|
$total += $tax; |
| 2222 |
|
} |
| 2223 |
|
if ( $display ) { |
| 2224 |
|
$total = wc_round_tax_total( $total ); |
| 2225 |
|
} |