Magento - Include Tracking Numbers In Shipment Emails

Note: This is a legacy document for Magento 1.x. For Magento 2, please refer to:

Magento 2 Integration Guide

Sending tracking numbers back to Magento via the API is a two-step process. First, a shipment is created for an order. Then, tracking numbers are added to the newly created shipment.

Why is it a two-step process?

By default, Magento sends an email notification to the customer after the shipment is created, but before the tracking numbers have been added. As a result, the customer receives an email notification that does not include a tracking number.

However, your PackageBee Integration can be configured to provide the tracking numbers to Magento, so they are included in shipment emails.

Create a Magento email template for shipment updates

First, create a new email template:

  1. In the Magento administration panel, click System > Templates > Transactional Emails.
  2. Click Add New Template.
  3. Under Load Default Template, select New Shipment from the Template list, then click Load Template.
  4. Under Template Information, in the Template Name box, give the template a unique name. For example, "Shipment Update With Tracking Number."
  5. Click Save Template.

Create a new template, load the New Shipment template, give the template a name.

Repeat the above steps

Next, Repeat Steps 1-5 with the template name "New Shipment for Guest."

Swap Email Templates

Then, follow these steps to swap email templates.

  1. In the Magento administration panel, click System Configuration.
  2. Under Sales, click Sales Emails.
  3. Expand the Shipment Email configuration, and set Enabled to No.
  4. Expand the Shipment Comments Email configuration, and set Enabled to Yes.
  5. Set Shipment Comment Email Template to the Template Name previously created.
  6. Set Shipment Comment Email Template for Guest to the Template Name previously created.

Configure the template, and click Save Config.

  1. Click Save Config.

When tracking numbers are pushed to your Magento store, the customer will receive one shipment notification that contains all tracking numbers.

Next: Review Order Status

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.