Hi Edwin,
To change it to include tax, you can add the code below in your child theme’s functions.php
file.
function x_woocommerce_navbar_cart() {
$cart_info = x_get_option( 'x_woocommerce_header_cart_info' );
$cart_layout = x_get_option( 'x_woocommerce_header_cart_layout' );
$cart_style = x_get_option( 'x_woocommerce_header_cart_style' );
$cart_outer = x_get_option( 'x_woocommerce_header_cart_content_outer' );
$cart_inner = x_get_option( 'x_woocommerce_header_cart_content_inner' );
$data = array(
'icon' => '<i class="x-icon-shopping-cart" data-x-icon-s="" aria-hidden="true"></i>',
'total' => WC()->cart->get_total(),
'count' => sprintf( _n( '%d Item', '%d Items', WC()->cart->cart_contents_count, '__x__' ), WC()->cart->cart_contents_count )
);
$modifiers = array(
$cart_info,
strpos( $cart_info, '-' ) === false ? 'inline' : $cart_layout,
$cart_style
);
$cart_output = '<div class="x-cart ' . implode( ' ', $modifiers ) . '">';
foreach ( explode( '-', $cart_info ) as $info ) {
$key = ( $info == 'outer' ) ? $cart_outer : $cart_inner;
$cart_output .= '<span class="' . $info . '">' . $data[$key] . '</span>';
}
$cart_output .= '</div>';
return $cart_output;
}
Hope that helps