Replace “Includes $xx.xx Tax” in WooCommerce Cart
Here is a super snippet that will allow you to tweak the way the WooCommerce cart displays the tax amount included in the order total.
By default it will display, for example “Includes $12.50 Tax”, but if live in a country where the tax name is always the same or if you use only one single rate and be more specific by replacing “tax” by the actual name of the tax, to have something like “Includes $12.50 GST”, then use this snippet:
<?php // Do not include this if already open! Code goes in theme functions.php.
/**
* woocommerce_cart_totals_order_total_html
*
* @access public
* @since 1.0
* @return void
*/
add_filter( 'woocommerce_cart_totals_order_total_html', 'woo_rename_tax_inc_cart', 10, 1 );
function woo_rename_tax_inc_cart( $value ) {
$value = str_ireplace( 'Tax', 'GST', $value );
return $value;
}