Support » Plugin: WooCommerce » Display tax totals “Itemized” not working when tax is 0%

  • Resolved anotherbreed



    I’m updating to the latest version of WooCommerce from a very old version. I have noticed that when using the option “Display tax totals: Itemized”, the Tax name is not displayed anymore in the Sub Total line included in Cart page, Checkout page and in any customer e-mail, invoice, etc.

    The reason appears to be that if the Tax rate is set to 0.0000%, the new version of WooCommerce automatically hides that line in the Sub Total.

    The problem is that I need that information to be displayed, the VAT rates in my store are always 0% due to a VAT extemption regime, but depending on the customer country I need to write what Tax extemption is being used, and I’m using the Tax name for that.

    Any ideas? Any Tax name shortcode I can use in my order page, emails, etc.?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support RK


    As far as I’m aware that will require some customisation – there’s no simple shortcode that can be added to a page.

    A quick search did show the following code snippet that might help:

    With that said, if you’re having difficulty with the code involved, I recommend getting in touch with a web developer to make those changes for you. Alternatively, you could also reach out to someone at for more help in this regard.

    Plugin Support Hannah S.


    Automattic Happiness Engineer

    That snippet does work with a small modification:

    Thanks for the help.

    I used the following code in my functions.php file and it worked just like I wanted:

    add_filter( 'woocommerce_cart_hide_zero_taxes', '__return_false' );

    Now the problem is that while I have the Tax Name row displayed in Cart and Checkout, it still doesn’t appear in the e-mail receipt. Any help with that?

    Plugin Support dougaitken


    Automattic Happiness Engineer

    Hey @anotherbreed

    it still doesn’t appear in the e-mail receipt

    Each of the emails sent by WooCommerce uses a different template so you would need to edit these as well to reflect the changed you need.


    Well, that was a bit generic. Anyway I got some help by another WooCommerce user, the code to use is:

    add_filter( 'woocommerce_order_hide_zero_taxes', '__return_false' );

    And I have put this code on the template file: email-order-details.php

    On a side note, for users of Woocommerce Print Invoices & Packing lists, this code also work on the invoice template, I have put this code on file: order-table-before.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display tax totals “Itemized” not working when tax is 0%’ is closed to new replies.