From 40c64b54e2d2770bbcd84909b44d3329018996d1 Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Thu, 29 Aug 2013 17:13:48 +0200 Subject: [PATCH] [+] MO : Mailalerts - Add Total tax paid to order confirmation --- modules/mailalerts/mailalerts.php | 1 + modules/mailalerts/mails/en/new_order.html | 4 ++++ modules/mailalerts/mails/en/new_order.txt | 1 + 3 files changed, 6 insertions(+) diff --git a/modules/mailalerts/mailalerts.php b/modules/mailalerts/mailalerts.php index 1516c0de5..417ae3fa9 100644 --- a/modules/mailalerts/mailalerts.php +++ b/modules/mailalerts/mailalerts.php @@ -380,6 +380,7 @@ class MailAlerts extends Module '{total_products}' => Tools::displayPrice($order->getTotalProductsWithTaxes(), $currency), '{total_discounts}' => Tools::displayPrice($order->total_discounts, $currency), '{total_shipping}' => Tools::displayPrice($order->total_shipping, $currency), + '{total_tax_paid}' => Tools::displayPrice(($order->total_products_wt - $order->total_products) + ($order->total_shipping_tax_incl - $order->total_shipping_tax_excl), $currency, false), '{total_wrapping}' => Tools::displayPrice($order->total_wrapping, $currency), '{currency}' => $currency->sign, '{message}' => $message diff --git a/modules/mailalerts/mails/en/new_order.html b/modules/mailalerts/mails/en/new_order.html index 43ee09f10..9f150f596 100644 --- a/modules/mailalerts/mails/en/new_order.html +++ b/modules/mailalerts/mails/en/new_order.html @@ -42,6 +42,10 @@ Shipping {total_shipping} + + Total Tax paid + {total_tax_paid} + Total paid {total_paid} diff --git a/modules/mailalerts/mails/en/new_order.txt b/modules/mailalerts/mails/en/new_order.txt index 02b5f99d5..769cdb075 100644 --- a/modules/mailalerts/mails/en/new_order.txt +++ b/modules/mailalerts/mails/en/new_order.txt @@ -8,6 +8,7 @@ Carrier : {carrier} Payment: {payment} Discounts: {total_discounts} Shipping: {total_shipping} +Total Tax paid: {total_tax_paid} Products: {total_products} Gift-wrapping: {total_wrapping} Total paid: {total_paid}