Webfrog Posted January 3, 2013 Share Posted January 3, 2013 (edited) Hi Guys n Girls, I have been beating my head into the wall trying to figure out how to show tax in the order confirm email. Tax shows in cart, checkout and in the PDF invoice but not in the order confirmation email. I would like it to show something like: Total Ex Tax $10.00 Tax GST $1.00 Total Inc Tax $11.00 I have found solutions in the forum for previous versions but not for 1.5+ I am using 1.5 and i am sure it is a simple solution but i just cant figure it out any help would be greatly appreciated, Thanks in Advance ---------------------------------------------------------------------------------------------------------------- Thanks guys but i solved this myself if anyone else wants a solution ask here and i will post it up ---------------------------------------------------------------------------------------------------------------- Edited January 3, 2013 by Webfrog (see edit history) Link to comment Share on other sites More sharing options...
mp88 Posted January 5, 2013 Share Posted January 5, 2013 Can you please refer me to solution for previous versions. I use 1.4.8.2. Thank you. Link to comment Share on other sites More sharing options...
tdr170 Posted January 5, 2013 Share Posted January 5, 2013 How about just sharing your knowledge without making people ask this will help far more then it hurts for you to post a Mail Alert Tip. 1 Link to comment Share on other sites More sharing options...
mister006 Posted February 14, 2013 Share Posted February 14, 2013 Hi guys, I have the same problem: I can't see the total tax in the confirmation email. I see the total tax perfectly displayed in the PDF invoice but not in the emails. I would really like to see the total tax also in the emails. I also tried to programatically solve the problem with some information I found in other topics, but it didn't work, but it is not that straightforward in Prestashop 1.5.3.1 and I am not an expert in programming. Can you please provide me with the solution you found? Thanks in advance! Link to comment Share on other sites More sharing options...
yeus2001 Posted February 21, 2013 Share Posted February 21, 2013 Same issue here, can't figure out a way to see tax in confirmation email PS version 1.5.3 I will appreciate your solution for this. Link to comment Share on other sites More sharing options...
sscardefield Posted April 4, 2013 Share Posted April 4, 2013 This is tagged as Solved, but I don't see a resolution. I would really like to show this as well and am having a hard time figuring out what to modify to get it to show. If you could post your fix that would be awesome. Link to comment Share on other sites More sharing options...
Nuvish Posted May 22, 2013 Share Posted May 22, 2013 Hello, Anyone has a solution for this please ? Link to comment Share on other sites More sharing options...
jmfelip Posted April 14, 2014 Share Posted April 14, 2014 Hi webfrog, would you mind to explain me how did you solve this issue? Best, Josep M Felip Link to comment Share on other sites More sharing options...
patrikar Posted June 18, 2014 Share Posted June 18, 2014 Hello people, This issue has been addressed by the Prestashop developers and from version 1.5.6.1 this is included by default. For versions prior to 1.5.6 (I've tested in 1.5.4) this is how to achieve this: In /classes/PaymentModule.php add the following to the $data = array(...) on row 558 inside validateOrder(..): '{total_tax_paid}' => Tools::displayPrice(($order->total_products_wt - $order->total_products) + ($order->total_shipping_tax_incl - $order->total_shipping_tax_excl), $this->context->currency, false) Now you can use {total_tax_paid} in order_conf.html to show tax. Like this: <tr style="text-align: right;"> <td colspan="4">Total tax:</td> <td>{total_tax_paid}</td> </tr> This information and more is available in the bugfix commit in the Prestashop repository. Good luck! Link to comment Share on other sites More sharing options...
S7 Media Ltd Posted August 8, 2014 Share Posted August 8, 2014 Hello people, This issue has been addressed by the Prestashop developers and from version 1.5.6.1 this is included by default. For versions prior to 1.5.6 (I've tested in 1.5.4) this is how to achieve this: In /classes/PaymentModule.php add the following to the $data = array(...) on row 558 inside validateOrder(..): '{total_tax_paid}' => Tools::displayPrice(($order->total_products_wt - $order->total_products) + ($order->total_shipping_tax_incl - $order->total_shipping_tax_excl), $this->context->currency, false) Now you can use {total_tax_paid} in order_conf.html to show tax. Like this: <tr style="text-align: right;"> <td colspan="4">Total tax:</td> <td>{total_tax_paid}</td> </tr> This information and more is available in the bugfix commit in the Prestashop repository. Good luck! Thanks for this. Unfortunately I just cannot get this to work. Using 1.5.3.1. Any pointers would be super helpful, thanks. Link to comment Share on other sites More sharing options...
dymek01 Posted August 28, 2014 Share Posted August 28, 2014 @patrikar - Hi and thank you for your solution. It works well in 1.5.4, however there is problem when customer have discount, because this code dosen't count right tax value after discount. Could you please help improve it? Thanks in advance ... Link to comment Share on other sites More sharing options...
patrikar Posted September 1, 2014 Share Posted September 1, 2014 (edited) Thanks for this. Unfortunately I just cannot get this to work. Using 1.5.3.1. Any pointers would be super helpful, thanks. Sorry I can't be at help. I would have to see your code and so on. I can simply suggest you take closer look at the bugfix commit i linked to. @patrikar - Hi and thank you for your solution. It works well in 1.5.4, however there is problem when customer have discount, because this code dosen't count right tax value after discount. Could you please help improve it? Thanks in advance ... You are correct. I am affected by this as well, good thing we haven't launched our shop yet! Based on what I can tell from looking inside the database table ps_orders, I think this is the code we really want: '{total_tax_paid}' => Tools::displayPrice(($order->total_paid_tax_incl - $order->total_paid_tax_excl) + ($order->total_shipping_tax_incl - $order->total_shipping_tax_excl), $this->context->currency, false) Edited September 1, 2014 by patrikar (see edit history) Link to comment Share on other sites More sharing options...
NZUMW Posted February 11, 2015 Share Posted February 11, 2015 Hi, I have the same problem on Presta 1.6.0.11. Has anyone a solution? Link to comment Share on other sites More sharing options...
Klemart3D Posted April 2, 2015 Share Posted April 2, 2015 Same for me on Presta 1.6.0.13. Sometimes, I've the problem : And sometimes, no : I cannot understand why… Link to comment Share on other sites More sharing options...
tarabellek Posted July 8, 2016 Share Posted July 8, 2016 As a related question, I would like to add the total price including and excluding tax to me email. Any advice? Link to comment Share on other sites More sharing options...
winsonhee Posted October 12, 2017 Share Posted October 12, 2017 Hi, @patrikar - Hi and thank you for your solution. It works well in 1.5.4, however there is problem when customer have discount, because this code dosen't count right tax value after discount. Could you please help improve it? Thanks in advance ... Same thing here, I am using PS1.7, i solve using this method below: paste this code in payment module: '{total_tax_paid}' => Tools::displayPrice(($order->total_paid_tax_excl*0.07),$currency,false)); 0.07 is the tax rate. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now