Jump to content

[SOLVED] Tracking Code URL. Don't change variable {followup}


Recommended Posts

In the email sent to costumer, never replace the variable {followup} to the real Tracking URL (placed in PrestashopBackend)

 

ej:

 

== Email Received ==

Your order with the reference ZDLUGPUYW is currently in transit..

 

You can track your package using the following link: {followup}

 

 

"Order history" section of your customer account by clicking My Account on our shop.

 

==

 

All carriers in DDBB (ps_carrier) have the same URL.

 

 

Prestashop Version 1.5.3.

 

This is my 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()

 

);

if (@Mail::Send((int)$order->id_lang, 'in_transit', Mail::l('Package in transit', (int)$order->id_lang), $templateVars,

$customer->email, $customer->firstname.' '.$customer->lastname, null, null, null, null,

_PS_MAIL_DIR_, true, (int)$order->id_shop))

{

Hook::exec('actionAdminOrdersTrackingNumberUpdate', array('order' => $order));

Tools::redirectAdmin(self::$currentIndex.'&id_order='.$order->id.'&vieworder&conf=4&token='.$this->token);

}

 

¿why prestashop doesnt change this variable?

¿any ideas?

 

Thx!

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

×
×
  • Create New...