0

I have created a custom field in "sales_flat_order" table and updating it over "checkout_type_onepage_save_order_after" event. Now I want to send this field's value in new order email to customer.
How can I do this ? by override any block or something else.

2
  • Prateek, do you have any idea regarding this..?
    – Atul
    Jan 14 '16 at 10:40
  • got a solution, its setting parameter for order email template in file - Sales/Model/Order.php , in below funcions - Below version 1.9.2 - public function sendNewOrderEmail() And in and above 1.9.2 public function queueNewOrderEmail() So, just override it as per the requirement.
    – Atul
    Jan 15 '16 at 4:49
1

I just put the answer in here instead in the comment

The solution: - set the parameter for the order email template in the file Sales/Model/Order.php

in below funcions

Below version 1.9.2 - public function sendNewOrderEmail()

And in and above 1.9.2 public function queueNewOrderEmail()

So, just override it as per the requirement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.