All things Shopify and commerce
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?
Solved! Go to the solution
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 %}
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:
Go to Shopify Admin > Settings > Notifications > Order Confirmation.
Click Edit code.
Find the section that starts with {% for line in line_items %} – this is the loop that renders each product in the order.
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. ☕❤️
Hello,
Thank you for your reply. I am attaching the email code, could you help me?
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 %}
Hello,
Thank you for your reply. Could not find {% for line in line_items %}.
Could you help me?
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025