Jump to content

How to add customer mail to mailalerts module confirmation email: new_order.html delivery_block_html


Recommended Posts

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?

  • Like 1
Link to comment
Share on other sites

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>

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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