Adding Order Notes to Order Confirmation Email

Topic summary

Goal: Include customer-entered order notes in Shopify’s order confirmation email and preserve formatting.

Implementation steps:

  • Navigate to Settings → Notifications → Order confirmation and edit the template.
  • Insert the note where desired. Recommended variable: {{ order.note }} (more reliable in live emails than {{ note }}, which may only appear in previews/tests).

Conditional display and formatting:

  • Basic conditional (show only when present):
    {% if note != ‘’ %}

    Note:

    {{ note | newline_to_br }} {% endif %}
  • Use the Liquid filter newline_to_br to preserve line breaks in the note (e.g., {{ note | newline_to_br }}). This resolved the “one long string” issue for multiple users.

Open questions and mixed results:

  • Showing a default message when no notes are left: One user’s Liquid if/else occasionally worked, then didn’t. Another suggestion was to set a default via JavaScript on the cart page before checkout (pre-populate the notes field if empty), but no concrete JS implementation was provided.

Placement tip:

  • Some success reported placing the note block after the billing address section in the email template.

Status: Formatting with line breaks is resolved. Reliable default-message handling remains inconsistent/partially unresolved.

Summarized with AI on February 8. AI used: gpt-5.

Try

{{ note | newline_to_br}}

instead of just

{{note}}

it works for me and hopefully it works for you too!

1 Like