Email variables - product type

Livio_Sassolini
Shopify Partner
7 0 3

Hi everybody,

Is there a way to create a custm line products in the email notifications?

I have just created 2 types of product and I have just customized two different types of product page. Now I would like to customize the line in the notifications email but I cant use the product.type properties in the email template.

Do you have some suggestions?

Thank you

/paolo

 

0 Likes
Alex135
Astronaut
1889 1 460

Let's use the following as an example.

{% for line in line_items %}
  {{ line.quantity }}x {{line.title }} (P/N: {{ line.sku }}) for {{ line.price | money }} each
{% endfor %}

In this case, we would need to use line.product.type.

{% for line in line_items %}
  {{ line.product.type }}: {{ line.quantity }}x {{line.title }} (P/N: {{ line.sku }}) for {{ line.price | money }} each
{% endfor %}
0 Likes
Livio_Sassolini
Shopify Partner
7 0 3

Thanks!! :)

0 Likes
Kodamo
Tourist
16 0 1

Hi @Alex135 may you can help me too. 

I want to add the product type to my order confirmation email. 
Unfortunately the product type appears multiple times. Each product shows all types of the whole order. 

this is the code I’ve used. 

{% for line_item in line_items %}
 {{ line_item.product.type }}
{% endfor %}

 

0 Likes