While working for a freelance client, I did some research on the code that generates the “Order Totals” table. This shows on the Thank-you Page and also on the Email Receipt. So, what if we wanted to add a table row to the foot of such table?
Add a new row to the WooCommerce Order Totals table
PHP Snippet: Add Row to Order Totals Table – WooCommerce