Thanks @oaoyadeyi
I looked through the plugins (and many others) there are few that can add the tax line to the emails, however it seems steep to pay for just that one tiny functions (I’m happy with everything else in the email, formatting etc).
I’ve managed to make a solution by altering the following files:
woocommerce/templates/emails/email_order_details.php
woocommerce/templates/emails/email_order_items.php
In my case I needed to add a tax (GST) column that would display a tax subtotal for each product line. This way, both the invoice and the order confirmation display itemised tax information. Important when selling goods that are often claimed as business expenses etc.
The downside of this method is that if I were to update the theme or woocommerce, I’ll need to make sure that the files aren’t overwritten or that the workaround still functions! I’ll cross that bridge when I come to it…
To add another column to the order details table edit the email_order_details.php file:
<th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th>
<th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>
<th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Price', 'woocommerce' ); ?></th>
<th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'GST', 'woocommerce' ); ?></th>
You can see my new “GST” column tacked onto the end.
Now to make it fill with the tax total for each line item. You need to edit the email_order_items.php file.
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php echo wp_kses_post( $order->get_formatted_line_subtotal( $item ) ); ?>
</td>
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; vertical-align:middle; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;">
<?php echo wp_kses_post( $order->get_line_tax( $item ) ); ?>
</td>
Straight after the subtotal column I’ve added “get_line_tax” this displays a tax total for each line item. So for example, in my case GST is 10% so x10 of x1 product type at $1 each (0.91 cents with .09 cents GST) displays a total of $10 for the price and 0.91c in the GST column.
Hope this helps someone!