Jump to content

Customers Receive tracking email notification with NO link


Recommended Posts

Hello

so i created a carrier (USPS), uploaded a logo, and I put in the URL www.usps.com. I chose the zone that I will ship to etc..

 

the USPS carrier shows in the cart during checkout and everything works perfect.

when I opened an order and provided a tracking number, the customer received an email

with a missing link and tracking number!

 

You can track your package using the following link:

this line is empty

You can review your order and download your invoice

 

any ideas please?

thank you

Link to comment
Share on other sites

so I found this email template

 

Hi {firstname} {lastname},

Thank you for shopping with {shop_name}!

Your order with the reference {order_name} is currently in transit.

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

 

You can review your order and download your invoice from the "Order history" section of your customer account by clicking "My account" on our shop.

If you have guest account, you can follow your order using this link: {guest_tracking_url}

{shop_name} - {shop_url}

{shop_url} powered by PrestaShop™

 

I am not sure what to do next. Kindly note that the email that the customer received does NOT contain any link or tracking number.

in the template above, where does the variable {followup} come from?

 

thank you so much

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

I have the same problem:

 

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);

}

Link to comment
Share on other sites

  • 1 year later...

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