Add custom line items to order email confirmation

Topic summary

A user wants to add custom product details (Color Name, Color Code, Color Image) to order confirmation emails but is unsure which template tags to use.

Current Issue:

  • Custom color information isn’t appearing in email confirmations
  • User has shared screenshots showing their email template creation process

Suggested Solution:

  • First identify the field type (line item properties, metafields, etc.)
  • Reference Shopify’s variable documentation for proper syntax
  • If using metafields, implement with liquid syntax like: {{ line.product.metafields.NAMESPACE.KEY }}
    • Example: Color Name: {{ line.product.metafields.color_options.color_name }}
    • Where NAMESPACE = metafield namespace (e.g., “color_options”)
    • Where KEY = specific metafield key (e.g., “color_name”)

Status: Solution provided, awaiting implementation confirmation.

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

Hey all,

i’m looking to add custom lines on the product order in the emails.

Color Name

Color Code

Color Image

These aren’t coming through for obvious reasons but i’m not sure what tag to use to include them.

I’m creating my email confirmation

Identify first what fields those are (line item properties? metafields? etc).

Then check the variable reference to see how you can display those fields.

For example, if they’re metafields (like if you use a metafields app to show those custom fields), you could do something like this:


Color Name: {{ line.product.metafields.NAMESPACE.KEY }}

NAMESPACE = the name of the namespace of that metafield, example “color_options”

KEY = the key of the metafield, example “color_name”