Nothingbuttea Posted October 22, 2014 Share Posted October 22, 2014 At the moment we are putting the tracking numbers for packages into the order pages, but when Presta shop sends the order dispatched email it says this: Order OYKRXJYLC - In transit Your order with the reference OYKRXJYLC is currently in transit. You can track your package using the following link: http://www.royalmail.com What do i put in the template so that the second order number becomes the tracking number from the order page? Link to comment Share on other sites More sharing options...
bellini13 Posted October 22, 2014 Share Posted October 22, 2014 Can you describe how you are putting the tracking number in the order pages? Also what version of Prestashop are you using? Link to comment Share on other sites More sharing options...
Nothingbuttea Posted October 22, 2014 Author Share Posted October 22, 2014 1.6.0.6 We have been entering the tracking number in the space for the tracking number in the shipping bit on the order page that says tracking number (see below) Link to comment Share on other sites More sharing options...
Nothingbuttea Posted October 23, 2014 Author Share Posted October 23, 2014 Can anyone tell me what i need to change in the email template please? Link to comment Share on other sites More sharing options...
bellini13 Posted October 23, 2014 Share Posted October 23, 2014 (edited) are you doing this before or after changing the order status to 'shipped'? You don't need to change anything in the email template. Prestashop will automatically include the tracking number in the carrier URL, if it was saved before changing the status to 'shipped' You need to confirm 2 things 1) What is the carrier URL that you entered for this carrier? 2) When are you adding the tracking number (before or after updating the status to shipped) Edited October 23, 2014 by bellini13 (see edit history) Link to comment Share on other sites More sharing options...
Nothingbuttea Posted October 23, 2014 Author Share Posted October 23, 2014 the url shows as www.royalmail.com 2. the tracking number is being entered before the status is being moved to shipped At least it is when i do it. Is it possible that if the update hasn't finished after you click save on the tracking number the order reference gets entered there instead? I'd better retrain my staff tomorrow. Link to comment Share on other sites More sharing options...
bellini13 Posted October 23, 2014 Share Posted October 23, 2014 If you change your Carrier URL to the following, then Prestashop will automatically include the tracking number in the URL in the email. The customer can then just click on the link. https://www.royalmail.com/track-your-item?tracking_number=@ To add just the tracking number to the email, requires more extensive changes to the order controller and the email template. 1 Link to comment Share on other sites More sharing options...
Nothingbuttea Posted October 24, 2014 Author Share Posted October 24, 2014 Brilliant. Thank you, I have done that. Link to comment Share on other sites More sharing options...
chaipeng Posted October 25, 2014 Share Posted October 25, 2014 If you change your Carrier URL to the following, then Prestashop will automatically include the tracking number in the URL in the email. The customer can then just click on the link. https://www.royalmail.com/track-your-item?tracking_number=@ To add just the tracking number to the email, requires more extensive changes to the order controller and the email template. Hi Bellini13 Do you have steps to add tracking nummber into shipped email tamplate? I was searching around but none of the workaround works for version 1.6.XX. Link to comment Share on other sites More sharing options...
bellini13 Posted October 25, 2014 Share Posted October 25, 2014 Sorry I do not have steps documented. It would require coding changes to the order controller and email templates to show just the tracking number Link to comment Share on other sites More sharing options...
chaipeng Posted October 26, 2014 Share Posted October 26, 2014 Sorry I do not have steps documented. It would require coding changes to the order controller and email templates to show just the tracking number Thank you for you prompt reply. I'm not good in PHP & really a big thanks if you can show the coding change in AdminOrdersController.php Link to comment Share on other sites More sharing options...
misu3108 Posted December 26, 2014 Share Posted December 26, 2014 To get tracking number in the email template you should use something like: <p>Tracking number: {shipping_number}</p> Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 26, 2015 Share Posted January 26, 2015 Hi misu3108, I have tried adding this line in the in_transit.html template, but i am seeing only the word {shipping_number} not the tracking number. And i tried adding the code in the AdminOrderController.php but no luck. I am using 1.5.6 PS version. Can you please help me on this? Regards, Mani Link to comment Share on other sites More sharing options...
misu3108 Posted January 26, 2015 Share Posted January 26, 2015 I'm using ps 1.6.0.9 I don't know how it works in 1.5.6. I'm using AftetShip module for tracking. I created a CMS page for tracking so users can track any carrier. So in order details I just show the tracking # and under a link to the CMS page to track the package. I hope this helps a little. Link to comment Share on other sites More sharing options...
Mani rathnam Posted January 26, 2015 Share Posted January 26, 2015 Hi misu3108, Thanks for the quick reply. I am able to track the order with the tracking number once customer logged in. But i want to send the tracking number in mail. Default behavior in PS is it will send the tracking URL. I don't want the URL. Can you please share how you are sending the tracking number in mail? Thanks in advance, Mani. Link to comment Share on other sites More sharing options...
Recommended Posts