| @@ 764-767 (lines=4) @@ | ||
| 761 | $code = WC_Tax::get_rate_code( $key ); |
|
| 762 | ||
| 763 | if ( $code || $key === apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' ) ) { |
|
| 764 | if ( ! isset( $tax_totals[ $code ] ) ) { |
|
| 765 | $tax_totals[ $code ] = new stdClass(); |
|
| 766 | $tax_totals[ $code ]->amount = 0; |
|
| 767 | } |
|
| 768 | $tax_totals[ $code ]->tax_rate_id = $key; |
|
| 769 | $tax_totals[ $code ]->is_compound = WC_Tax::is_compound( $key ); |
|
| 770 | $tax_totals[ $code ]->label = WC_Tax::get_rate_label( $key ); |
|
| @@ 1374-1377 (lines=4) @@ | ||
| 1371 | ||
| 1372 | $code = $tax[ 'name' ]; |
|
| 1373 | ||
| 1374 | if ( ! isset( $tax_totals[ $code ] ) ) { |
|
| 1375 | $tax_totals[ $code ] = new stdClass(); |
|
| 1376 | $tax_totals[ $code ]->amount = 0; |
|
| 1377 | } |
|
| 1378 | ||
| 1379 | $tax_totals[ $code ]->id = $key; |
|
| 1380 | $tax_totals[ $code ]->rate_id = $tax['rate_id']; |
|