Jump to content

Adding A Calculation In {Total_Paid] For Order Confirmation Email


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...