Jump to content

Include the tracking number in in_transit email template


Recommended Posts

Hi,

 

Just a quick question about including a tracking number into an email.

 

I have add {shipping_number} variable into in_transit email template but when the email comes, the tracking number didn't show up.

 

Am I doing this correctly?

 

PS 1.5.5

 

This is the code in controllers/admin/AdminOrdersController.php

$templateVars = array(
'{followup}' => str_replace('@', $order->shipping_number, $carrier->url),
'{firstname}' => $customer->firstname,
'{lastname}' => $customer->lastname,
'{id_order}' => $order->id,
'{shipping_number}' => $order->shipping_number,
'{order_name}' => $order->getUniqReference()
);
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...