Jump to content

How can I insert the expedition number in the email "order in transit"


Recommended Posts

In previous versions I modified the file admin/tabs/AdminOrders.php,

 

if ($shipping_number)

global $_LANGMAIL;

$customer = new Customer(intval($order->id_customer));

$carrier = new Carrier(intval($order->id_carrier));

if (!Validate::isLoadedObject($customer) OR !Validate::isLoadedObject($carrier))

die(Tools::displayError());

$templateVars = array(

'{followup}' => str_replace('@', $order->shipping_number, $carrier->url),

'{firstname}' => $customer->firstname,

'{lastname}' => $customer->lastname,

'{id_order}' => intval($order->id),

********

'{expedicion}' => $order->shipping_number

********

);

$subject = 'Package in transit';

Mail::Send(intval($order->id_lang), 'in_transit', ((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject), $templateVars, $customer->email, $customer->firstname.' '.$customer->lastname);

 

but now I can not find it. Please, help!

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