Jump to content

Adding tracking number in the in_transit mail is not working in PS 1.5.6


Mani rathnam

Recommended Posts

Hi all,

 

My client is using PS 1.5.3.1. Requirement is to add the tracker number in the mail. i have tried the solution from the below topic. But it is not working. 

 

https://www.prestashop.com/forums/topic/148270-solved-add-tracking-number-to-email-template/page-3

 

Can anyone please help me on this?

 

Thanks in Advance.

Manirathnam S

Edited by manirathnam1988 (see edit history)
Link to comment
Share on other sites

Hi Bellini13,

 

My client is using PrestaShop™ 1.5.3.1

I want to add the tracking number in the mail not the URL. URL is already available in the mails.

 

Production site is "http://www.thecraftshop.in/"

 

i did the changes as below.

 

public_html/controllers/admin/AdminOrdersController.php
 
 
$templateVars = array(
'{followup}' => str_replace('@', $order->shipping_number, $carrier->url),
'{firstname}' => $customer->firstname,
'{lastname}' => $customer->lastname,
'{id_order}' => $order->id,
'{order_name}' => $order->getUniqReference(),
'{tracking_number}' => Tools::getValue('tracking_number')
 
In the below template, 
Localizations ->  Translations -> in_transit.html
 
Used the variable -> {tracking_number}

 

 

Thanks in Advance,

Mani

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...