Ben90 Posted March 10, 2016 Share Posted March 10, 2016 Hi guys, I would like to add a surcharge in the order confirmation email. This is the a of code from /public_html/themes/default-bootstrap/mails/en/order_conf.html <font size="4" face="Open-sans, sans-serif" color="#555454"> {total_paid} </font> I wanna add 1.5% surcharge, so I've tried like this before (assume total_paid = $50): [spam-filter]total_paid} * 101.5/100} but the result in the email is like this {$50 * 101.5/100} {total_paid * 101.5/100} but the result in the email is like this {total_paid * 101.5/100} I would like to get the result of the calculation. I was looking for the PHP file that defines {total_paid} but couldn't find it. I am thinking to define a new variable like {total_with_surcharge}. Any help which file should I take a look at? Or any easy solution for this? I thank you in advance --------------------------------------------- Prestashop Default-Theme 1.6.0.9 Link to comment Share on other sites More sharing options...
kalle@makewebo Posted March 10, 2016 Share Posted March 10, 2016 The .php file you are looking for is PaymentModule.php that you can find under Classes folder. In the validateOrder() function the Order confirmation mail is being sent. So override that and change the total_paid or add more parameters. 1 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