Do you want to simplify your WooCommerce prices by removing confusing tax labels?
This code tutorial is your guide to removing the “incl. tax” and “ex. tax” labels from your cart, checkout, and order totals in WooCommerce when your “Prices entered with tax” tax option is set to “Yes, I will enter prices inclusive of tax“.
Whether you find them unnecessary or want to create a cleaner pricing display, this tutorial will walk you through two effective snippets to achieve this customization.
Enjoy!
PHP Snippet 1: Hide “(incl. tax)” “(incl. VAT)” @ WooCommerce Cart, Checkout, Order Pages
/**
* @snippet Remove incl. tax suffix @ Woo Cart, Checkout, Order
* @tutorial Get CustomizeWoo.com FREE
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 8
* @community Join https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_countries_inc_tax_or_vat', '__return_empty_string' );
PHP Snippet 2: Hide “(ex. tax)” “(ex. VAT)” @ WooCommerce Cart, Checkout, Order Pages
/**
* @snippet Remove ex. tax suffix @ Woo Cart, Checkout, Order
* @tutorial Get CustomizeWoo.com FREE
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 8
* @community Join https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_countries_ex_tax_or_vat', '__return_empty_string' );