Add Order Notes To WooCommerce Completed Order Email

Each you perform an action regarding a WooCommerce order, a note is created. This is the best way to track every single action made on an order, and of course that’s very useful when your team needs to get the full order history. That can be also useful to share this order notes history to your customer. The best way to do it is to add the notes in the completed order email. What you need to know is that these notes are WordPress comments, so any WordPress comments related function can be used, and you can retrieve any data using the comment object.

Here what you can see in the administration, on the order edit page:

admin-order-notes

To display all these notes in the order completed email, simply add the following code to the customer-completed-order.php file. Please note that this file is a template; basically a custom template allows you to override WooCommerce default files and use your own custom files instead. Here is a quick tutorial that will explain you how to create your custom templates: http://docs.woothemes.com/document/template-structure/

So, create a folder called woocommerce in your theme folder. In this folder, create a new folder called emails, and in this folder duplicate theĀ customer-completed-order.php from wp-content/plugins/woocommerce/templates/emails. And add this snippet at line 51:

Here is the result in the email:

email-order-notes

Found this post useful? Keep me awake with a coffee ;-)

13 thoughts on “Add Order Notes To WooCommerce Completed Order Email

  1. […] Check out How to remove “From: $$” from your product catalog by Patrick Rauland or How to Add Order Notes To WooCommerce Completed Order Email by Remi Corson. WooNinja Gerhard Potgieter also released a free plugin to refill stock for refunded […]

  2. Hiya Remi, what are your thoughts on the following?

    In woocommerce you can add purchase notes – which is displayed on both checkout + in confirmation email.

    If the “groups plugin” is installed and activated, the purchase notes are no longer sent in the confirmation email.

    Do you have any thoughts on what code could be entered into the email template to ensure purchase notes continue to be sent in the confirmation email?

  3. When I plug this into the code of my template, I only get the h2 header (Order Notes) but the rest of the info isn’t there. I’m using WP 3.6.1 any thoughts? HELP! :(

  4. the code is Exactly what you posted. For some reason I can’t post the code here because it will only show part of it.

    Alex

  5. Hey Rem. I sent a message last week about not being able to see the info on the order confirm.. Were you able to figure it out?

  6. Hey Remi,

    This post is very helpful! Is there any way to edit the code so only the customer notes are added to the email?

    Thanks!

    Lydia

  7. Remy, I have a question regarding one of the images you used here. In your email to the customer, in the table, there is NO tax behind your listed product. Why is that? Any idea where to option to fin to set it to be shown? I ask, becaue I have two shops. One is showing taxes behind the productname in this email-table, the other won’t. And all settings seems to be the same in both shops. Maybe you can help me where to find the option to show taxes behind products in the table in the customer email they get when they ordered. Here is a screenshot showing what information I mean.http://imgur.com/ABwTAok

  8. How about a snippet for adding the products original price into the mail next to the total price of the product(s).

    So it would go:
    Product | Quantity | Unit Price | Total Price ??

    Is it possible to do something like that in the new order email?

    Man Thanks

Leave a Reply