cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to update a transactional email with a var

Trying to update a transactional email with a var

I am trying to do something very simple - I want a var in a custom shipment notification that takes the current date and adds 8 days to it (In order to provide an estimated date of delivery).

 

The PHP is ridiculously simple for that : 

$date = new DateTime();

$date->modify("+8 days");

echo date_format($date, "Y-m-d");

 

So it kinda feels like going to all the trouble of adding the xml and the extra files would be like killing a mosquito with a sledgehammer. Is there a way to somehow put that in either the email PHTML or a custom variable so that I can just use it in the email text?