Jump to content

[CONTRIBUTION] Include tracking no in ’Package in transit’ email

Recommended Posts

Deal All,
I recently installed the PrestaShop for my friend, it very good:)

But for the 'Package in transit' email, we only can see the tracking Uri, but for some Express, they don't allow tracking through Uri, so we have to tell our customers the tracking no.

So I did a little change of the mail template file "in_transit.html" and "in_transit.txt", add the tag "{shippingnumber}" which will be changed to the correct tracking no.

I add

Tracking No: {shippingnumber}


You can track your package by clicking on the following link: {followup}

Also you can add any where you want, but make sure it contain "{shippingnumber}".

Then modify "/admin/Tab/AdminOrders.php"

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

and add a new line bellow

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

Oak, it's done.


Share this post

Link to post
Share on other sites
  • 4 weeks later...
  • 3 months later...
  • 1 month later...

but where and when can I put the tracking number on the order tab?????????????

someone just tell we have comment off the lines in adminorders.php but it never was commented // in ps


please help

Share this post

Link to post
Share on other sites
  • 3 years later...
This topic is now closed to further replies.
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More