Jump to content

Add field in "payment accepted" customer mail


Recommended Posts

Hi,

 

I want to add the 2 fields {carrier} and {planning} from the shops "new order" mail to the customers "payment accepted" mail.

 

How can this be achieved?

It seems i have to define/add the variables to a mail handler for the mail template to know the information corresponding to the variable - but where?

Link to comment
Share on other sites

go in classes/order/OrderHistory.php -> public function addWithemail() and assign your datas here :

			$data = array(
				'{lastname}' => $result['lastname'],
				'{firstname}' => $result['firstname'],
				'{id_order}' => (int)$this->id_order,
				'{order_name}' => $order->getUniqReference()
			);
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...