juraganpsd Posted August 15, 2013 Share Posted August 15, 2013 Hello.. I just want to share the way to adding tracking number in the Shipped email which is sent to the customer. I was looking it in the forum, but i don't find any simple solution. I've been looking for hours and so depressed about it. So i decided to share in here, hope it helps guys I'm using Prestashop 1.5.4.1 First, edit the file : Root > controllers > admin > AdminOrdersController.php on line 350, you will find this code : $templateVars = array(); change to : $templateVars = array('{shipping_number}' => $order->shipping_number); The last step, edit your shipped.html in : Root > mails > en > shipped.html and place the code {shipping_number} to anywhere you want the Tracking Number displayed. That's all folks! Cheers! 3 Link to comment Share on other sites More sharing options...
Rajesh Kumar Yadav Posted August 19, 2013 Share Posted August 19, 2013 Nice share ! Link to comment Share on other sites More sharing options...
elpanda13 Posted September 5, 2013 Share Posted September 5, 2013 (edited) Beautiful! but i have a question, where should i place the tracking code (in the BO) so the code can recognize it? I added the code in the order but it doesn't recognize it, it just shows "{shipping_number} Edited September 5, 2013 by elpanda13 (see edit history) Link to comment Share on other sites More sharing options...
kotkotan Posted October 2, 2013 Share Posted October 2, 2013 I added the code in the order but it doesn't recognize it, it just shows "{shipping_number} the same problem, only {shipping_number} in email Link to comment Share on other sites More sharing options...
Michel (Ekimia SAS) Posted August 23, 2014 Share Posted August 23, 2014 I'd like to do the same thing can we get the full URL for tracking from the variables ? Link to comment Share on other sites More sharing options...
bincyclt Posted July 23, 2015 Share Posted July 23, 2015 any solution for PS 1.6 ? Link to comment Share on other sites More sharing options...
seongliyn Posted August 13, 2015 Share Posted August 13, 2015 Hi, I need this for Prestashop 1.6. Anyone can help? Link to comment Share on other sites More sharing options...
Nero_ Posted January 30, 2016 Share Posted January 30, 2016 (edited) almost half a year and no solution for version 1.6.x.x? Edited January 30, 2016 by Nero_ (see edit history) Link to comment Share on other sites More sharing options...
Boonyawat Posted February 26, 2016 Share Posted February 26, 2016 We are all waiting for a solution for 1.6..... Link to comment Share on other sites More sharing options...
dmouradov Posted March 12, 2016 Share Posted March 12, 2016 (edited) We are all waiting for a solution for 1.6..... https://www.prestashop.com/forums/topic/269324-how-can-we-add-tracking-url-variable-to-shipped-mail-template/?p=1402070 It works if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number) $templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url), '{shipping_number}' => $order->shipping_number ); Edited March 12, 2016 by dmouradov (see edit history) Link to comment Share on other sites More sharing options...
Mister Denial Posted April 18, 2016 Share Posted April 18, 2016 In 1.6.1.14 you don't need to edit any of the core files anymore. Simply add {shipping_number} in your email template, and it will be replaced by the tracking number. Link to comment Share on other sites More sharing options...
psbruce Posted November 23, 2016 Share Posted November 23, 2016 This isn't correct - if you add {shipping_number} to the email template, then {shipping_number}, not the actual tracking number, is what is presented in the email. A solution for this seemingly very simple feature, would be wonderful. Link to comment Share on other sites More sharing options...
Recommended Posts