Adding Notes field to order confirmation email

Hi there,
Not sure I’ve posted this to the correct sub-group.
I’m trying to add the contents of the notes field in the cart drawer to the order confirmation email that goes to the customer. I’ve added the following:
{% if note != ‘’ %}

Note:

{{ note | newline_to_br}} {% endif %} But when I preview, all I see is "Note:" I was expecting to see some placeholder text in the preview as confirmation of formatting, etc. But is this an incorrect assumption, and my code is correct?

Thanks!
Don

@Don_Hinshaw ,

Please share your store url.

Hey Don,

Couple things I’d check:

  1. Make sure you’re looking at the correct confirmation email. If you look at the order page and scroll to the bottom, you can look at actual confirmation email sent to the customer. I’d do a test order and look for it there. If you’re just looking at the preview in the notifications screen, idk if the sample order that shows up in the preview actually has a note, so you might not see anything.

  2. Make sure the note is definitely being added to the order.

  3. Looks to me like you’re doing it right, note is a valid email variable:
    https://help.shopify.com/en/manual/fulfillment/setup/notifications/email-variables

  1. Maybe try {% if note != blank %} or just {% if note %}? Just a thought.

Hope this helps!

Best,
Robbie

1 Like