Search code examples
phpwordpresswoocommercecart

Remove woocommerce cart (estimated by country) tax text


I'm building a site in wordpress and when I goto cart this keeps popping up

"(estimated for Australia)" right after TAX then gives the value of the tax on the item/s.

I checked out another question and answer on here for the same thing however they had different code to the code I have. I tried a few different things but can't figure it out.

This is the code when I inspect it on google chrome for the cart.

<tr class="tax-total">
    <th>Tax <small>(estimated for Australia)</small></th>
    <td data-title="Tax">
       <span class="woocommerce-Price-amount amount">
       <span class="woocommerce-Price-currencySymbol">$</span>109.80</span> 
    </td>
</tr>

Can someone figure out a filter fix for me?


Solution

  • You can do it by editing WooCommerce cart template file of your theme. I guess that is hardcoded there in cart.php.

    Or if you want easier solution, just hide it with CSS.

    This code hides "(estimated for {country})" part:

    .tax-total th small {display:none!important}
    

    This one hides

    .tax-total {display:none!important}