Jump to content

Email templates with {shipping_number}


Hezmars

Recommended Posts

I read all post regarding this question, but cannot find solutio.

 

The thing is that I have disabled in-transit auto emails and added {shipping_number} and {followup} variables in email template "Shipped", but only {shipping_number} doesn't show any number.

 

What can be the problem ?

 

I am attaching sample to make it more clear :)

 

 

error.bmp

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Finally got it:

 

You have to change the following codeline located in the file /controllers/admin/AdminOrdersController.php:

 

if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number)$templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url));

 

To this:

 

if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number)$templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url),

'{shipping_number}' => $order->shipping_number
);

 

Thanks a lot to the user tebdilikiyafet that posted it.

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