I want to hide or remove VAT (tax) line from WooCommerce order emails. Result comes out from this function “get_order_item_totals()”. Already I can hide tax label from emails by using following code.
function sv_change_email_tax_label( $label ) {
$label = '';
return $label;
}
add_filter( 'woocommerce_countries_tax_or_vat', 'sv_change_email_tax_label' );
I want to hide the entire row of VAT from order emails.
Finally figured out a way do this. “get_order_item_totals()” function returns an Array of arrays. so i unset() the unwanted array. in this case $totals[tax]
following is my code in email template.
Thank you very much everyone who tried to help!
Regards!
Depending on the status of the order, you’ll need to edit the relevant email template.
For eg: If you have COD payment method enabled and the customer selected that option, the order status will be “Processing”, in that case you need to edit
customer-processing-order.php
template.