Eusebio100 Posted September 11, 2018 Share Posted September 11, 2018 (edited) Hi, {shipping_number} appears empty in intrasit email, how to fix it? thank. Edited September 12, 2018 by Eusebio100 (see edit history) Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 12, 2018 Share Posted September 12, 2018 I have checked the default email template (including in_transit but I don't think there is any {shipping_number} variable. Kindly confirm if you have added this variable manually? Link to comment Share on other sites More sharing options...
Eusebio100 Posted September 12, 2018 Author Share Posted September 12, 2018 hace 2 horas, Knowband Plugins dijo: Revisé la plantilla de correo electrónico predeterminada (incluyendo in_transit pero no creo que haya ninguna variable {shipping_number}). Por favor, confirme si ha agregado esta variable manualmente? yes, this included in mi template in_transit. I have also reviewed AdminOrdersController and this is what I have: $templateVars = array( '{followup}' => str_replace('@', $order->shipping_number, $carrier->url), '{firstname}' => $customer->firstname, '{lastname}' => $customer->lastname, '{id_order}' => $order->id, '{shipping_number}' => $order->shipping_number, '{order_name}' => $order->getUniqReference() ); even so in in_transit appears {shipping_number} as is. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted September 12, 2018 Share Posted September 12, 2018 I have checked the same at my end & its printing correctly. Not sure what's the reason for the same. Can you please check if there is any override of this controller in override folder? Link to comment Share on other sites More sharing options...
Eusebio100 Posted September 12, 2018 Author Share Posted September 12, 2018 hace 33 minutos, Knowband Plugins dijo: I have checked the same at my end & its printing correctly. Not sure what's the reason for the same. Can you please check if there is any override of this controller in override folder? I do not have any override that could affect, my prestashop is 1.6.1.20 in case is helpful. Link to comment Share on other sites More sharing options...
Eusebio100 Posted September 12, 2018 Author Share Posted September 12, 2018 I found the solution, I had to declare the variable in classes / order / OrderHistory. Thanks for your time. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now