Line item properties in order notifications

Hi,

The line item properties won’t show up in the order notification email.

{% for line in line_items %}
								
								
								  

| <br>								      {% if line.image %}<br>								        <br>								      {% endif %}<br>								     | <br>								      {% if line.product.title %}<br>								        {% assign line_title = line.product.title %}<br>								      {% else %}<br>								        {% assign line_title = line.title %}<br>								      {% endif %}<br>								<br>								      {% if line.quantity < line.quantity %}<br>								        {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}<br>								      {% else %}<br>								        {% assign line_display = line.quantity  %}<br>								      {% endif %}<br>								<br>								      {{ line_display }} x {{ line_title }}<br><br>								<br>								      {% if line.variant.title != 'Default Title' %}<br>								        {{ line.variant.title }}<br><br>								      {% endif %}<br>								      {% if line.line_item.properties %}<br>										<br><br><br>											{% for p in line.line_item.properties %}<br>												{% unless p.last == blank %}<br>													{{ p.first }}:<br>			<br>													{% if p.last contains '/uploads/' %}<br>														{{ p.last | split: '/' | last }}<br><br>													{% else %}<br>														{{ p.last }}<br><br>													{% endif %}<br>			<br>													{% endunless %}<br>											{% endfor %}<br>										<br><br><br>										{% endif %}<br><br>								      <br>								      <br>								     | <br>								        {% if line.original_line_price != line.line_price %}<br>								          <del>{{ line.original_line_price | money }}</del><br>								        {% endif %}<br>								        <br><br>{{ line.line_price | money }}<br><br><br>								       |
| - | - | - |

								
								
{% endfor %}

I use almost the same code for the shipping notification and it does show up. Any help appreciated.

{% for line in fulfillment.fulfillment_line_items %}
				  
				    
				      

| <br>				          {% if line.line_item.image %}<br>				            <br>				          {% endif %}<br>				         | <br>				          {% if line.line_item.product.title %}<br>				            {% assign line_title = line.line_item.product.title %}<br>				          {% else %}<br>				            {% assign line_title = line.line_item.title %}<br>				          {% endif %}<br>				<br>				          {% if line.quantity < line.line_item.quantity %}<br>				            {% capture line_display %} {{ line.quantity }} of {{ line.line_item.quantity }} {% endcapture %}<br>				          {% else %}<br>				            {% assign line_display = line.line_item.quantity  %}<br>				          {% endif %}<br>				<br>				          {{ line_display }} x {{ line_title }}<br><br>				<br>				          {% if line.line_item.variant.title != 'Default Title' %}<br>				            {{ line.line_item.variant.title }}<br><br>				          {% endif %}<br>							{% if line.line_item.properties %}<br>							<br><br><br>								{% for p in line.line_item.properties %}<br>									{% unless p.last == blank %}<br>										{{ p.first }}:<br><br>										{% if p.last contains '/uploads/' %}<br>											{{ p.last | split: '/' | last }}<br><br>										{% else %}<br>											{{ p.last }}<br><br>										{% endif %}<br><br>										{% endunless %}<br>								{% endfor %}<br>							<br><br><br>							{% endif %}<br>				         |
| - | - |

	    			
	  			
{% endfor %}

Hello,

please check site: https://www.envision.io/blogs/ecommerce-pulse/95036801-how-to-create-customizable-products-in-shopify-without-an-app

Open the Order Confirmation email template and find the code {{ line.title }}.

Replace it with the following:

{{ line.title }}{% for p in line.properties %}{% unless p.last == blank %} - {{ p.first }}: {{ p.last }}{% endunless %}{% endfor %}

Save it und make a test.

For me worked this code. You can do the same way for order canceling. Please try it, but do a backup before.

Hi Martha,

thanks for your answer.

Leaving line_item out of {% for p in line.properties %} did it.

Thanks Rolf

The linked solution no longer works (at least for Dawn theme), since {{line.title}} no longer appears in the Order Confirmation email code. Help?