How to add the production file link to your order confirmation email - Customily

Hello everyone, 
I need to add the code below so that our customers receive information about the customization preview of the Customily App. 
However, I have no programming knowledge and would like your support. 

The code to add is: "{% if line.properties['_customily-preview'] != blank %}
<img class="order-list__product-image" src="{{ line.properties['_customily-preview'] }}" width="60" height="60" align="left">
{% endif %}"

I am attaching the original code from the email, as my main question is where should we add the Customily code?

Hi @wemersonsoutos ,

You should add the Customily code inside the line_items loop in your order confirmation email template. Here’s how to do it step by step:

  1. Go to Shopify Admin > Settings > Notifications > Order Confirmation.

  2. Click Edit code.

  3. Find the section that starts with {% for line in line_items %} – this is the loop that renders each product in the order.

  4. Paste the Customily code right after the product image or title inside that loop.

Example placement:

{% for line in line_items %}
  <!-- existing product info like title/image -->

  {% if line.properties['_customily-preview'] != blank %}
    <img class="order-list__product-image" src="{{ line.properties['_customily-preview'] }}" width="60" height="60" align="left">
  {% endif %}

  <!-- rest of the product details -->
{% endfor %}

This ensures the preview image appears next to each customized product.

If you share your current email template code, I can tell you the exact line to insert.

If it resolves your issue, please mark my answer as a solution. Are you comfortable doing it on your own, or need a detailed guide? Or if you want to hire an expert to do it for you, I’m here. Please DM.

Hi,

Hope this will work

  • Open Notifications > Order Confirmation
  • Find {% for line in line_items %} and Paste Customily code inside the loop

Code example

{% for line in line_items %}
  
    
    {% if line.properties['_customily-preview'] != blank %}
      
        
      
    {% endif %}
    
    
      {{ line.title }}
    

  
{% endfor %}

Hello,

Thank you for your reply. I am attaching the email code, could you help me?

Hello,

Thank you for your reply. Could not find {% for line in line_items %}.
Could you help me?