Skip to main content
Contributor I
February 21, 2023
Solved

Adding product size in order confirmation

  • February 21, 2023
  • 2 replies
  • 474 views

Hey everyone

I am trying to add the product size to each item ordered in the order confirmation email

I’ve added this code {{ event.extra.line_items.0.product.variant.options|lookup:'Select Size' }} but the problem is that when someone orders more than 1 product, it shows the same size in all the products on the order confirmation email

We are on shopify by the way

Happy to get help here

This topic has been closed for replies.
Best answer by retention

@itsu600,

Since you’re on Shopify, and I’m assuming this code is in a Table Block, try this instead:

{{ item.product.variant.options|lookup:'Select Size' }}

If that doesn’t work, can you share a screenshot or more details on your Table Block “Row” settings?  It might look something like this:

Let me know if it worked or not.

2 replies

retention
Partner - Platinum
retentionAnswer
2025 Champion
February 21, 2023

@itsu600,

Since you’re on Shopify, and I’m assuming this code is in a Table Block, try this instead:

{{ item.product.variant.options|lookup:'Select Size' }}

If that doesn’t work, can you share a screenshot or more details on your Table Block “Row” settings?  It might look something like this:

Let me know if it worked or not.

Joseph Hsieh // retentioncommerce.com // X: @retention
itsu600Author
Contributor I
February 22, 2023

This worked perfectly

Thank you so much