presdani Posted January 5, 2013 Share Posted January 5, 2013 I would like to add some data e.g. customer email address to mailalerts module order confirmation email. In "new_order.html" file there is "delivery_block_html" which contains name, lastname, address, phone, etc. I would like to add some data here. How can I do this? 1 Link to comment Share on other sites More sharing options...
presdani Posted January 10, 2013 Author Share Posted January 10, 2013 Solved! To add customer email and phone_mobile to order confirmation: Defy $delivery->phone_mobile and $invoice->phone_mobile: /modules/mailalerts/mailalerts.php - $templateVars /classes/PaymentModule.php - $data add after delivery_phone and invoice_phone: '{delivery_phone_mobile}' => $delivery->phone_mobile, '{invoice_phone_mobile}' => $invoice->phone_mobile, Put phone_mobile and mail into template: /modules/mailalerts/mails/(lang)/new_order.html /mails/(lang)/order_conf.html paste this: <td style="padding: 0.5em 0 0.5em 0.5em; background-color: #ebecee;">{delivery_block_html}<br />{delivery_phone_mobile}<br />{email}</td> <td style="padding: 0.5em 0 0.5em 0.5em; background-color: #ebecee;">{invoice_block_html}<br />{invoice_phone_mobile}<br />{email}</td> 1 Link to comment Share on other sites More sharing options...
Bejo Posted May 17, 2015 Share Posted May 17, 2015 please explain it detail i m new bie thx 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