• Resolved hype123

    (@hype123)


    Hello,

    On the basket and checkout pages, it says for example: (includes £1.84 VAT)
    Is there anyway to change this so it just says (includes VAT)?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Add below function in your active child theme function.php file. this is for Cart page.

    add_filter( 'woocommerce_cart_totals_order_total_html', 'ahir_woo_rename_tax_inc_cart', 10, 1 );
    
    function ahir_woo_rename_tax_inc_cart( $value ) {
    	$value ='includes VAT'
    	return $value;
    }

    Let me know if that works then i will check for checkout page ??

    • This reply was modified 3 years, 6 months ago by Ahir Hemant.
    Thread Starter hype123

    (@hype123)

    Hello,

    I tried to add the code but I get the following error:
    Your PHP code changes were rolled back due to an error on line 210 of file wp-content/themes/vehica-child/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘return’ (T_RETURN)

    Line 210: return $value;

    Thanks

    Sorry was missed semicolon(;)

    add_filter( 'woocommerce_cart_totals_order_total_html', 'ahir_woo_rename_tax_inc_cart', 10, 1 );
    
    function ahir_woo_rename_tax_inc_cart( $value ) {
    	$value ='includes VAT';
    	return $value;
    }

    try this

    Thread Starter hype123

    (@hype123)

    I have just tried the code but it also removes the total price and now it just says:
    Total: includes VAT

    Thread Starter hype123

    (@hype123)

    Thread Starter hype123

    (@hype123)

    I have fixed this. thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove tax estimation’ is closed to new replies.