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