• zzbeck

    (@zzbeck)


    Hello,

    Is it possible to remove the tax in the total field? Right now it displays “XXX Amount (includes XX of taxes)”. Is it possible to only show the amount and hide the tax field?

Viewing 1 replies (of 1 total)
  • Hi @zzbeck

    This is the WooCommerce functionality. The total is displayed in the same way it is displayed on Cart & Checkout page. You will have to change it using the WooCommerce filter ‘woocommerce_get_order_item_totals’.

    Add the following code in your theme’s functions.php file –

    add_filter( 'woocommerce_get_order_item_totals', 'wc_get_order_item_totals', 10, 3 );
    function wc_get_order_item_totals( $total_rows, $order, $tax_display ) {
    	$total_rows['order_total'] = array(
                'label' => __( 'Total:', 'woocommerce' ),
                'value'    => $order->get_formatted_order_total(),
            );
    	return $total_rows;
    }

    Let me know if this works for you.

    Regards,
    Rashmi

Viewing 1 replies (of 1 total)
  • The topic ‘Hide “Includes XX tax”’ is closed to new replies.