Add wc_cart_totals_taxes_total_html()
Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
This commit is contained in:
parent
16d935a2cb
commit
d4661d6623
|
@ -169,6 +169,16 @@ function wc_cart_totals_shipping_html() {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get taxes total
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function wc_cart_totals_taxes_total_html() {
|
||||
echo apply_filters( 'woocommerce_cart_totals_taxes_total_html', wc_price( WC()->cart->get_taxes_total() ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a coupon label
|
||||
*
|
||||
|
|
|
@ -57,7 +57,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
<?php else : ?>
|
||||
<tr class="tax-total">
|
||||
<th><?php echo esc_html( WC()->countries->tax_or_vat() ); ?></th>
|
||||
<td><?php echo wc_price( WC()->cart->get_taxes_total() ); ?></td>
|
||||
<td><?php echo wc_cart_totals_taxes_total_html(); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Reference in New Issue