Add additional details to staff order notification

Topic summary

A user added custom fields to their cart page that appear as additional order details. They want these fields to display in Staff Order Confirmation and Fulfillment Service notification emails.

Current Issue:

  • Attempted Liquid code to loop through order.attributes isn’t working
  • The code includes a loop structure with {% for attribute in order.attributes -%} to display attribute key-value pairs

Visual Context:
Two screenshots are provided showing:

  1. The desired output or current implementation
  2. The notification template or related interface

Status: The discussion remains open with no responses yet. The user is seeking guidance on correct Liquid syntax or approach to successfully render custom order attributes in email notifications.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

I added some custom fields at the cart page, which are added to an order as additional details. I would like to add these to the Staff Order Confirmation and to the Fullfilment service notification. I tried to add several codes, but it doesn’t work. Example:

Uitsparing

    {% for attribute in order.attributes -%}
  • {{ attribute.first }}: {{ attribute.last }}
  • {%- endfor %}

What am I doing wrong? How can I add this?