Jump to content

mailalert template edit


Purehate

Recommended Posts

Hello, 

 

I want to add customer identification number (dni/nif/nie) for my new_order e-mail template. 

 

under localization/translation/email templates/core/en i found new_order template and added just a single line with html editor

 

'' id {dni} ''

 

but it didnt work.

 

and i added this

 

'' '{dni}' => $result['dni'], ''  

 

into classes/order/orderhistory.php

 

no change

 

also i unclicked null section on my sql adress table for dni

 

still it doesnt work. Is there any way to add this? I am not an expert just trying to figure it out

Link to comment
Share on other sites

Hi,

the new_order emails are generated and sent by the module mailalert. You should add in the /modules/mailalert/mailalert.php file the {dni} assignment to the $template_vars array , before the mail is sent out . that is at line that look like :

Mail::Send(
$mail_id_lang,
'new_order',
sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),
$template_vars,
..........................
Regards, Leo
Link to comment
Share on other sites

Another problem with this works for en language but it doesnt work for other language. Even if i replaced new_order.html and new_order.txt files from mailalerts/mails/en to mailalerts/mails/tr still it doesnt work. it still sends in tr language without dni information. 

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...