theboina Posted August 15, 2013 Share Posted August 15, 2013 (edited) 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 August 20, 2013 by theboina (see edit history) Link to comment Share on other sites More sharing options...
theboina Posted August 20, 2013 Author Share Posted August 20, 2013 Solucionado en http://www.prestashop.com/forums/topic/268322-solved-variable-followup-in-email-template-is-not-replaced/page__p__1341408#entry1341408 Link to comment Share on other sites More sharing options...
Recommended Posts