Jump to content
Sign in to follow this  
trait-tech.com

[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}


after

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"
find

'{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.

28608_7KNk4a5y54zuWq89Pley_t

Share this post


Link to post
Share on other sites

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 1.3.1.1



http://www.prestashop.com/forums/viewthread/63987/#365161



please help

Share this post


Link to post
Share on other sites

OK I can put the shipping code in the database, but even the followup and shippingnumber can't show

Anybody Could help me please

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

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