I need to add variant to confirmation emails

I need to add variant to confirmation emails

ifromm
New Member
4 0 0

Hi, 
I need code to add to my notification emails that reflects the variants on certain products built in the Custom Product Builder app. The orders in Shopify show the variants, but I need the confirmation and notification emails to show that too. And all the different variations don't have a corresponding SKU, so I'm unsure what to do. 
Please help. 

Replies 2 (2)

kalebd
Shopify Partner
5 0 0

Hey, i know this isnt the solution your looking for but i just thought you might find this helpful to pump out emails a bit faster, 

Im not selling anything btw just looking for a minute of your time.

I’m building an AI tool to make ecom email marketing effortless in a few clicks,

I would really appreciate it if you could help me see if this is something you would use

You’ll get early access at the end if you would like,

https://forms.gle/D6CmzwipLLzxuf8x8

Appreciate it! 🙌

ifromm
New Member
4 0 0

I found this code somewhere, but it lists the variants for all products on each product, so each product show the variables for all the other products. 
Can someone help me adjust this code so each product only shows the variants for the corresponding product. Please! Thank you. 

 

{% for line in subtotal_line_items %}

  {{ line.title }} - {{ line.variant.title }}

  {% if line.variant.sku %}

    (SKU: {{ line.variant.sku }})

  {% endif %}

  Quantity: {{ line.quantity }}

{% endfor %}