Bartek Posted February 25, 2019 Share Posted February 25, 2019 Hello, I am looking for a solution how can I add "Tracking number" to the "Shipped" e-mail in Prestashop 1.7.5 I was looking for a solution and tried to do it but nothing works please help Does anyone have a solution to this problem? Link to comment Share on other sites More sharing options...
tdsoft Posted February 26, 2019 Share Posted February 26, 2019 You can insert your variables on email file: mails\en\shipped.html Link to comment Share on other sites More sharing options...
Bartek Posted February 26, 2019 Author Share Posted February 26, 2019 Yes, I've tried to add "{followup}" and "{shipping_number}" but it does not work. Do you have any idea how to do it? Link to comment Share on other sites More sharing options...
ckvist Posted February 26, 2019 Share Posted February 26, 2019 Same problem. {followup} is not translated into shipping-link. Link to comment Share on other sites More sharing options...
Bartek Posted February 26, 2019 Author Share Posted February 26, 2019 Does anyone have a solution to this problem? Link to comment Share on other sites More sharing options...
feinkost Posted April 17, 2019 Share Posted April 17, 2019 Hi Bartek, it seems the variable {followup} is only available in the template "in_transit" Link to comment Share on other sites More sharing options...
BarkeyMedia Posted May 14, 2019 Share Posted May 14, 2019 Same problem here.. any solution? Link to comment Share on other sites More sharing options...
tdsoft Posted May 15, 2019 Share Posted May 15, 2019 Go to file: classes\order\OrderHistory.php Change function: sendEmail From line 489, change $data From $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int) $this->id_order, '{order_name}' => $order->getUniqReference(), ); To $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int) $this->id_order, '{order_name}' => $order->getUniqReference(), '{shipping_number}' => $order->getWsShippingNumber(), ); Then open mails\en\shipped.html Insert {shipping_number} to any place you want display it 2 2 Link to comment Share on other sites More sharing options...
feinkost Posted May 19, 2019 Share Posted May 19, 2019 Hi, should be fixed with 1.7.6https://github.com/PrestaShop/PrestaShop/pull/12705 1 Link to comment Share on other sites More sharing options...
stennnn Posted October 28, 2019 Share Posted October 28, 2019 On 5/15/2019 at 5:04 AM, tdsoft said: Go to file: classes\order\OrderHistory.php Change function: sendEmail From line 489, change $data From $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int) $this->id_order, '{order_name}' => $order->getUniqReference(), ); To $data = array( '{lastname}' => $result['lastname'], '{firstname}' => $result['firstname'], '{id_order}' => (int) $this->id_order, '{order_name}' => $order->getUniqReference(), '{shipping_number}' => $order->getWsShippingNumber(), ); Then open mails\en\shipped.html Insert {shipping_number} to any place you want display it Read more our posts for How to modify an email template of Prestashop: https://buy-addons.com/blog/create-new-token-insert-new-code-prestashop-email-template/ Thank you so much! This worked like a charm! 1 Link to comment Share on other sites More sharing options...
AndyNZ Posted April 18, 2021 Share Posted April 18, 2021 On 5/19/2019 at 9:39 PM, feinkost said: Hi, should be fixed with 1.7.6https://github.com/PrestaShop/PrestaShop/pull/12705 "should" or "is"..? I use currently 1.7.6.5 and it's not working... Link to comment Share on other sites More sharing options...
michylee Posted May 13, 2021 Share Posted May 13, 2021 Prestashop 1.7.7.4 and... i still have the same problem. Has anyone found any other solutions please? Many thanks. Link to comment Share on other sites More sharing options...
simon_68 Posted March 25, 2023 Share Posted March 25, 2023 The tracking number has to be in order_carrier table, not in order table, than it works :) Link to comment Share on other sites More sharing options...
@diegofrancesco Posted November 29, 2023 Share Posted November 29, 2023 Hello, I had the same problem on Prestashop 1.7.8, and I solved it thanks to your contribution by adding {shipping_number} in the file in_transit.html in .../emails/it/ to url tracking: {followup}{shipping_number} Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now