wordpresswoocommerce

WooCommerce - Show ex. VAT/incl. VAT label


In my WooCommerce store I have setup taxes for all European countries, but for all other countries there a no taxes. So I have made one tax line with a wilcard "*" for all other countries with 0 percent tax.

Futher more we also have business customers (custom user role) which also are eligible to get 0 tax (handled by another plugin).

The prices shows the correct price, but it is important for us to have a label show with the product that shows if the price is "incl. VAT" or "Ex. VAT"?

Have tried almost all settings, snippets I could find etc., but can not find a solution :(

Anyone who can help with that?

Thanks in advance πŸ™πŸ»


Solution

  • You need insert this snippets for Showing 0 value taxes:

    /* Show at cart/checkout */
    add_filter( 'woocommerce_cart_hide_zero_taxes', '__return_false' );
    
    /* Show at the order */
    add_filter( 'woocommerce_order_hide_zero_taxes', '__return_false' );
    

    Source: https://github.com/woocommerce/woocommerce/wiki/How-Taxes-Work-in-WooCommerce#showing-0-value-taxes