diff --git a/src/BlockTypes/MiniCart.php b/src/BlockTypes/MiniCart.php index 0c83fca1d60..9957caa2c82 100644 --- a/src/BlockTypes/MiniCart.php +++ b/src/BlockTypes/MiniCart.php @@ -303,6 +303,11 @@ protected function get_cart_price_markup( $attributes ) { $cart_controller = $this->get_cart_controller(); $cart = $cart_controller->get_cart_instance(); $cart_contents_total = $cart->get_subtotal(); + + if ( $cart->display_prices_including_tax() ) { + $cart_contents_total += $cart->get_subtotal_tax(); + } + return '' . esc_html( wp_strip_all_tags( wc_price( $cart_contents_total ) ) ) . ' ' . $this->get_include_tax_label_markup(); }