Add 'woocommerce_cart_totals_fee_html' filter

This commit is contained in:
thenbrent 2014-03-12 21:11:22 +10:00
parent 8238739987
commit 18efa7341a
1 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,9 @@ function wc_cart_totals_order_total_html() {
* @return void
*/
function wc_cart_totals_fee_html( $fee ) {
echo WC()->cart->tax_display_cart == 'excl' ? wc_price( $fee->amount ) : wc_price( $fee->amount + $fee->tax );
$cart_totals_fee_html = ( 'excl' == WC()->cart->tax_display_cart ) ? wc_price( $fee->amount ) : wc_price( $fee->amount + $fee->tax );
echo apply_filters( 'woocommerce_cart_totals_fee_html', $cart_totals_fee_html, $fee );
}
/**