Email notifications on product pages using line.properties

In order to sell personalized products, we have added a name input field to line.properties.
We would like to display the information entered by the customer on the product page in the automatic email that is sent when the product is ordered.

We have modified the template in Settings>Notifications>Order Management>Order Confirmation as follows, but it does not work as expected.
We have tried everything: previewing, sending a test email, and sending an email with test payment enabled, but the content of all emails did not show the content entered.

{% if line.variant.title != 'Default Title' %}
	{{ line.variant.title }}

{% endif %}

{% assign property_size = line.properties | size %}
{% if property_size > 0 %}
{% for p in line.properties %}
  {% assign first_character_in_key = p.first | truncate: 1, '' %}
  {% unless p.last == blank or first_character_in_key == '_' %}
    {{ p.first }}: {{ p.last }}

  {% endunless %}
{% endfor %}
{% endif %}

{% if line.selling_plan_allocation %}
	{{ line.selling_plan_allocation.selling_plan.name }}

{% endif %}

Environment

Theme: Highlight (v.2.2.1)

1 Like

I am facing the same issue…custom line item properties show up in the order confirmation online, but do not appear in the email confirmations for the customer OR the shop’s email. If you have resolved this issue, could you post your code here? Thanks!!!