Add wc_cart_totals_taxes_total_html()

Also introduces the new 'woocommerce_cart_totals_taxes_total_html' filter.
This commit is contained in:
Brent Shepherd 2014-03-20 17:54:42 -07:00 committed by Mike Jolley
parent 16d935a2cb
commit d4661d6623
2 changed files with 11 additions and 1 deletions

View File

@ -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
*

View File

@ -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; ?>