Automatically send USPS Tracking number in WooCommerce Order Completion Emails

Automatically Send USPS Tracking Number in WooCommerce Order Completion Emails

In this article, we will discuss the steps involved in automatically generating order notification emails that contain USPS tracking numbers for WooCommerce Customers. We will be using the ELEX Shipping Plugin with USPS Postage for WooCommerce to integrate USPS products and services into WooCommerce and the ELEX USPS Auto-generate & Email Add-On to configure the automatic generation of Order Notification Emails.


One of the biggest challenges eCommerce sites that sell physical goods face is shipping them. Customers today are more empowered than ever and need things delivered as fast as possible. Disappointing vocal customers can cost a business a lot of revenue as disgruntled customers are more likely to leave a negative review that can hurt your prospects. Additionally, it is more expensive to attract new customers than to satisfy the customers you already have. Having an efficient shipping system for your order fulfillment is a good first step in this direction. After all, the money, time and effort spent on designing your eCommerce store, marketing and personnel will be for naught when customers don’t even receive their products.

Customers today, expect their orders to reach them in the shortest time possible. Moreover, there is an expectation of information from the stores, regarding the status of their orders. Customers who do not know where their orders are, tend to get anxious and anxious customers are more likely to cancel their orders. This leaves the eCommerce store having to refund the irate customer and processing refunds. Not to mention handling the returns of the canceled order.

USPS WooCommerce Shipping and USPS Tracking:

Hence it is vital to make the customer feel included in the fulfillment process. This can be achieved by giving customers the ability to track their packages by themselves. Items shipped with USPS services have tracking numbers that can be entered on their site to find out their status. Here is a list of all the USPS services that can be tracked using USPS tracking numbers.

Service NameTracking Number Format
USPS Tracking®9400 1000 0000 0000 0000 00
Priority Mail®9205 5000 0000 0000 0000 00
Certified Mail®9407 3000 0000 0000 0000 00
Collect On Delivery Hold For Pickup9303 3000 0000 0000 0000 00
Global Express Guaranteed®82 000 000 00
Priority Mail Express International®EC 000 000 000 US
Priority Mail Express9270 1000 0000 0000 0000 00

EA 000 000 000 US

Priority Mail International®CP 000 000 000 US
Registered Mail™9208 8000 0000 0000 0000 00
Signature Confirmation™9202 1000 0000 0000 0000 00

WooCommerce stores can benefit greatly by integrating USPS shipping services and products for their order fulfillment. Especially those stores that have a significant customer base in the continental United States can use cost-efficient USPS services to supplement their shipping. Plugins like the  ELEX Shipping Plugin with USPS Postage for WooCommerce provide comprehensive shipping solutions to handle the requirements of any scale. The plugin can seamlessly integrate USPS shipping products and services like USPS tracking.

Integrating USPS Services into WooCommerce:

After installing and activating the plugin, you will need to enter the account User ID and Password. Navigate to the General settings tab of the – USPS plugin found under WooCommerce>Shipping> – USPS.

Here, enter the User ID and Password details in the User ID and Password fields.

USPS Tracking

It’s important to make sure the Real-Time Rates checkbox is enabled. When enabled, the plugin sends an API request to the servers with details like the origin, destination zip codes and the type of product being shipped. The rates returned from are then displayed to the customers.

The plugin also provides convenient Testing and Live modes for testing the various USPS services configured on the WooCommerce Store. Additionally, the plugin also has the option to include Shipping Insurance for your customers as well as Debug Mode to see the error logs in detail.

Enabling USPS Services in WooCommerce:

In the Rates & Services tab of the plugin settings, you will have to enable all of the USPS services that you need for your WooCommerce store. Doing this is as simple as navigating to the service that you desire and enabling all or some of the options for the service. Additionally, the plugin offers easy price adjustments for the USPS service rates. You can increment or decrement the price of a particular USPS service by percentage or a fixed amount.

USPS Tracking  It is important the Origin Postcode field contains the zip code of your store’s physical location. This is used by the plugin to send API request to to calculate the live shipping rates of the USPS services that you may have enabled on your site.

Generating USPS Tracking numbers for WooCommerce Shipments:

When you enable Shipment Tracking, a panel is added to the Order page that you can access for tracking items shipped in that order. The Order details page can be accessed from WooCommerce>Orders>Individual Order. USPS Tracking

The tracking IDs are automatically updated in this window once you have generated shipment and shipping label for that particular order. You can also find the tracking numbers for however many shipments are being used to fulfill the order, at the top of the Order details page, once shipments and labels for that order are generated. Clicking on the tracking number will redirect you to the USPS tracking web page, where the status is shown. USPS Tracking

Shipping labels generated using the plugin contain the USPS tracking number and a barcode by default. A sample USPS shipping label generated using the plugin looks like this: ELEX WooCommerce | Domestic Shipping Label


When an order is placed with your WooCommce store, order detail emails containing the invoice and the tracking details are sent to customers automatically. To send this information manually, you can use the Order actions panel in the Order page to Email invoice/ order details to the customer. USPS Tracking

The customer receives an automated delivery confirmation alert email. This email contains vital information regarding the status of the package(s) namely the WooCommerce USPS tracking information. It will contain the USPS Tracking Number and the estimated delivery date as well.
ELEX WooCommerce | Auto-Generate and Email Labels

Automating Order Notification Emails containing USPS Tracking Numbers:

To automatically generate order notification emails containing USPS tracking number URLs, you will need the ELEX USPS Auto-generate & Email Add-On. It is important to note that this addon works only with the ELEX Shipping Plugin with USPS Postage for WooCommerce.

After installing and activating the add-on, navigate to the settings from WordPress DashBoard>Stamps USPS Auto Generate Labels or from the ELEX Shipping Plugin with USPS Postage for WooCommerce setting’s page, navigate to theAdd-on – Auto Generate Labels tab.USPS Tracking

Here, you can configure the add on to automatically generate Order Notification Emails that are sent to your customers when the order reaches a particular status. The add-on can be used to automatically generate shipping labels as well. Generated shipping labels will be mailed to the WooCommerce store owners. Additionally, you can choose to include the shipping label, status of the order and USPS Tracking Number URLs in the emails sent to customers.

USPS TrackingFirst, you will need to choose the status of the order for which you want emails to be generated automatically. The dropdown menu contains all the possible order statuses and lets you choose one or more statuses as a trigger. The various order statuses are as follows:

  • Pending Payment
  • Processing
  • On Hold
  • Completed
  • Canceled
  • Refunded
  • Failed

USPS Tracking

In the Email Settings section, you can choose to whom the Addon will send the auto-generated emails. You can choose from Customer, Store Owner or a Custom Email. Selecting Custom Email will prompt you to enter the email address for the addon to send tracking details to. USPS Tracking

After this, you will then need to set up the content of the email itself. USPS Tracking

Fill up the From Email, From Name, Email Subject and Email Content. You can create content that makes the customer feel included and promotes long-lasting customer relationships using the Email Content Field. Furthermore, the addon also provides a way to automatically notify customers should the order fulfillment fail for some reason.

Enabling the Email Notification checkbox under the Shipment Failed Email Notification Settings will prompt you to enter the Email Subject and Email Content in the appropriate fields. When the customer’s order reaches a Failed status, the addon will generate an email with the Subject and Content you have specified and mails it to the customer’s email ID.  A sample order notification email generated using the addon looks like this: USPS Tracking


These are the steps involved in enabling USPS tracking on WooCommerce and the automatic generation of order notification emails that contain USPS tracking details. Providing this for your customers enhances their experience and helps forge meaningful long-lasting relationships with them. We used the ELEX Shipping Plugin with USPS Postage for WooCommerce to integrate USPS tracking into WooCommerce and the ELEX USPS Auto-generate & Email Add-On to automatically generate and send order notification emails. Apart from USPS tracking, the plugin can be used to:

  • Access real-time rates from USPS (United States Postal Service).
  • Print shipping labels.
  • Track shipments.
  • Pack items into custom boxes.
  • Offer discounts or add a markup on shipping rates, with Price adjustments.
  • Ensure packages with insurance amount.
  • Generate bulk shipment.
  • Configure USPS Flat Rate boxes, and much more!

To try out some of the premium features, you can download and install the free version of the plugin here. You can also visit the live demo site to see the plugin and addon in action.

    Leave a Reply

    WordPress Image Lightbox Plugin