|
@@ 2234-2237 (lines=4) @@
|
| 2231 |
|
*/ |
| 2232 |
|
public function get_taxes_total( $compound = true, $display = true ) { |
| 2233 |
|
$total = 0; |
| 2234 |
|
foreach ( $this->taxes as $key => $tax ) { |
| 2235 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2236 |
|
$total += $tax; |
| 2237 |
|
} |
| 2238 |
|
foreach ( $this->shipping_taxes as $key => $tax ) { |
| 2239 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2240 |
|
$total += $tax; |
|
@@ 2238-2241 (lines=4) @@
|
| 2235 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2236 |
|
$total += $tax; |
| 2237 |
|
} |
| 2238 |
|
foreach ( $this->shipping_taxes as $key => $tax ) { |
| 2239 |
|
if ( ! $compound && WC_Tax::is_compound( $key ) ) continue; |
| 2240 |
|
$total += $tax; |
| 2241 |
|
} |
| 2242 |
|
if ( $display ) { |
| 2243 |
|
$total = wc_round_tax_total( $total ); |
| 2244 |
|
} |