folkifoon Posted September 21, 2015 Share Posted September 21, 2015 My shop automatically recieves the tracking number from my carier.After that, prestashops automatically sends the email "shipped", but this email does not show the trackingnumber.In the "shipped" email template i try to put the variable {followup} but this does not work. Also i tried {shipping_number}.I found a topic https://www.prestashop.com/forums/topic/268272-add-tracking-number-in-shipped-email/ but this is not for 1.6.x .How can i manage this? 1 Link to comment Share on other sites More sharing options...
deech123 Posted October 30, 2015 Share Posted October 30, 2015 seems nobody knows... i'm also looking for 10 days for a solution. just adding this : <a href="{followup}">{followup}</a> will not work if you update the status like : $order = new Order($id_order); $order->setCurrentState(4); it will show the link if you resend the email from the BO.... a bit a bumber, since I update tracknumbers every night in batch files.... D. Link to comment Share on other sites More sharing options...
folkifoon Posted October 31, 2015 Author Share Posted October 31, 2015 it should be possible right? Link to comment Share on other sites More sharing options...
deech123 Posted November 2, 2015 Share Posted November 2, 2015 seems really nobody know how to do it... I find it very strange no reactions do come on this request.... :-( Link to comment Share on other sites More sharing options...
deech123 Posted November 7, 2015 Share Posted November 7, 2015 UP... is there really nobody that can answer this question? is that not possible in Prestashop... I would doubt it... :-( Link to comment Share on other sites More sharing options...
Nero_ Posted January 30, 2016 Share Posted January 30, 2016 still nobody ? Link to comment Share on other sites More sharing options...
Grindelf Posted February 29, 2016 Share Posted February 29, 2016 Up Link to comment Share on other sites More sharing options...
tdr170 Posted February 29, 2016 Share Posted February 29, 2016 This function should already be present in the Emails, you enter the tracking number on the order page,shipping section and click update and it will send an In transit email with the tracking number to the customer. Link to comment Share on other sites More sharing options...
Mister Denial Posted April 18, 2016 Share Posted April 18, 2016 This function should already be present in the Emails, you enter the tracking number on the order page,shipping section and click update and it will send an In transit email with the tracking number to the customer. Yes, but what if you want to show the tracking number separately to the customer? Like, "Your parcel was shipped with the tracking number XXXXXXXXX - you can follow progress of delivery here: (insert link). That's a feature some of us need. I used it in my previous version of Prestashop, but since I updated, the old method no longer works. So I would be interested too in finding out how to include the tracking number in the email, in addition to the full link. Link to comment Share on other sites More sharing options...
Mister Denial Posted April 18, 2016 Share Posted April 18, 2016 Okay, I found the solution: in 1.6.1.14 you don't need to edit any of the core files. Simply add {shipping_number} in your email template, and it will be replaced by the tracking number. 1 Link to comment Share on other sites More sharing options...
mortenbennedsen Posted July 13, 2016 Share Posted July 13, 2016 I have tried that, but it ony works for me if i manually put the tracking number, and press "add" We got our tracking numbers automatically from the suppliers and curriers. If i put it like that, in the mail, it just show like: Here is your shipping-number: {shipping_number}My PrestaShop version is 1.6.1.2 Link to comment Share on other sites More sharing options...
kinderyum Posted August 25, 2016 Share Posted August 25, 2016 (edited) Would also love an answer! Running 1.6.1.4 and when I enter {shipping_number} in the (theme, not core) email template I get {0_number} shown in the email. I've tried a couple of suggestions I found through a Google search but no luck there either. Edited August 25, 2016 by kinderyum (see edit history) Link to comment Share on other sites More sharing options...
mortenbennedsen Posted September 16, 2016 Share Posted September 16, 2016 Up I'm still looking for a solution. Anybody know? Link to comment Share on other sites More sharing options...
juweeltje5 Posted January 26, 2017 Share Posted January 26, 2017 here also the same problem...no solution.... used to work with the cloud version, worked perfect with {folowup}, now im working with 1.6.1.10 with host...;and i doesnt work anymore Link to comment Share on other sites More sharing options...
jeff8899 Posted August 12, 2017 Share Posted August 12, 2017 got same problem, anyone can solve this issue? Link to comment Share on other sites More sharing options...
leps Posted August 15, 2017 Share Posted August 15, 2017 try this http://customprestshoptemplates.blogspot.com.br/2016/03/how-to-add-tracking-number-to.html I did it , version 1.6 and it worked. You need to find the code in the controllers/admin/AdminOrdersController. Look for the following code Find this: ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number) { $templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url)); change it to : ($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); After that, put {shipping_number} ianywhere in in_transit.html file 1 Link to comment Share on other sites More sharing options...
veltors Posted September 8, 2017 Share Posted September 8, 2017 I found a solutin. My Prestashop is 1.6.16 I have changed the lines from 409 to 413 $templateVars = array('{shipping_number}' => $order->shipping_number);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); and i have edited the "in transit" email template in the BO. I have added {shipping_number} and other details like email template "Shipped" and then unclicked shipped email template from status to not send email to recevier because when you add tracking number the received get all details about order status and tracking nuber and carriers page details. It works perfectly. Best Regards . 1 Link to comment Share on other sites More sharing options...
Recommended Posts