Line item properties appear in cart but not in the confirmation email

Topic summary

A user is experiencing an issue where line item properties display correctly on the cart page but fail to appear in order confirmation email templates.

Current Implementation:

  • Line item properties are successfully accessed in the cart using a Liquid code loop that iterates through line.properties
  • The code checks for blank values and assigns property names and values accordingly

The Problem:

  • The same properties are not rendering in confirmation email templates
  • No solution or explanation has been provided yet

Status: The issue remains unresolved with no responses or troubleshooting suggestions offered. This appears to be a template rendering discrepancy between cart and email contexts in the e-commerce platform.

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

As the title suggests, the line item properties for our products shows up fine in the cart page but when I try to access them in the confirmation email templates nothing appears.

I’m accessing them in the cart like so:

{% for p in line.properties %}
  {% if p.last %}
    {% assign name = p.first %}
    {% assign value = p.last %}
  {% else %}
    {% assign name = p.name %}
    {% assign value = p.value %}
  {% endif %}
  {% unless value == blank %}
    

      {{ name }}:
      {{ value }}
    {% endif %}
    

  {% endunless %}
{% endfor %}