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

Solved

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

wemersonsoutos
Visitor
3 0 0
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?

 

 

Accepted Solution (1)

Small_Task_Help
Shopify Partner
1120 53 111

This is an accepted solution.

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 %}
  <tr class="order-list__item">
    
    {% if line.properties['_customily-preview'] != blank %}
      <td>
        <img class="order-list__product-image" src="{{ line.properties['_customily-preview'] }}" width="60" height="60" align="left">
      </td>
    {% endif %}
    
    <td class="order-list__product-description">
      {{ line.title }}
    </td>

  </tr>
{% endfor %}
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad

View solution in original post

Replies 4 (4)

shahrozbabar5
Shopify Partner
346 28 35

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.

Need a Shopify Expert and Specialist? Let's chat on WhatsApp +923046983349 and bring your vision to life!


Custom Shopify Store Design | Premium Themes | Variant Apps Expert


Your Coffee Tip a seamless synergy. ❤️

wemersonsoutos
Visitor
3 0 0

Hello,

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

Small_Task_Help
Shopify Partner
1120 53 111

This is an accepted solution.

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 %}
  <tr class="order-list__item">
    
    {% if line.properties['_customily-preview'] != blank %}
      <td>
        <img class="order-list__product-image" src="{{ line.properties['_customily-preview'] }}" width="60" height="60" align="left">
      </td>
    {% endif %}
    
    <td class="order-list__product-description">
      {{ line.title }}
    </td>

  </tr>
{% endfor %}
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
wemersonsoutos
Visitor
3 0 0

Hello,

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