Title: Read tracking number from order notes
Last modified: February 25, 2021

---

# Read tracking number from order notes

 *  Resolved [uzair835](https://wordpress.org/support/users/uzair835/)
 * (@uzair835)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/read-tracking-number-from-order-notes/)
 * Hey everyone,
 * So, I’ve got an e-commerce site using Woocommerce, and I’m trying to see if I
   can allow for tracking numbers for my orders to be sent to my customers in the
   Order Complete email- but I have somewhat of a unique situation.
 * I’m using the Stamps.com integration. Not the one that allows me to print shipping
   labels from INSIDE WordPress- my orders get sent to Stamps.com, where I can print
   shipping labels, and then Stamps.com talks back to the WordPress site and marks
   my orders as complete. This workflow works fine, orders get sent to Stamps and
   orders get marked as complete on WordPress properly.
 * However, the tracking number is only sent to Woocommerce via an order note, then
   the order is marked as complete automatically when a label is printed in Stamps.
   com. How can I take this information from the notes and include it in the Order
   Complete email?
 * This is what the order notes look like:
 * > [View post on imgur.com](https://imgur.com/a/5HIsAGQ)
 * Is there some kind of code snippet or something that I can use to take that order
   note and put it into the Order Complete email? Ideally, it’d just copy the tracking
   number, but if the whole note needs to get copied that’s okay as well.
 * Let me know, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/read-tracking-number-from-order-notes/#post-14103987)
 * The note with the tracking number is in blue which means its a “Note to customer”.
   Whenever such notes are made, they are sent to the customer using the “Customer
   note” email, so ensure that email is enabled in settings.
 * If you manage to code a custom Completed order email, you’ll have the burden 
   of keeping it updated whenever WooCommerce change it.
 * If you still want to alter the Completed order email, you’ll first need to find
   out if the tracking number is available at the point in time when the email is
   sent. It may be added a moment later in the code execution sequence.
 *  [Victoria – a11n](https://wordpress.org/support/users/fylgjur/)
 * (@fylgjur)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/read-tracking-number-from-order-notes/#post-14132623)
 * Thanks [@lorro](https://wordpress.org/support/users/lorro/)!
 * For completeness, [here is documentation on order notes for a bit of further reading](https://docs.woocommerce.com/document/managing-orders/#order-notes),
   and [here’s how to check the customer order note is enabled in the outgoing email](https://docs.woocommerce.com/document/configuring-woocommerce-settings/#email-settings).
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Read tracking number from order notes’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3640790)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [emails](https://wordpress.org/support/topic-tag/emails/)
 * [order notes](https://wordpress.org/support/topic-tag/order-notes/)
 * [tracking](https://wordpress.org/support/topic-tag/tracking/)

 * 2 replies
 * 3 participants
 * Last reply from: [Victoria – a11n](https://wordpress.org/support/users/fylgjur/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/read-tracking-number-from-order-notes/#post-14132623)
 * Status: resolved