I'm trying to add images of products that a customer has bought to the Order Confirmed email notification. I currently am using this as my attempt:
<img src="{{ line.line_item | img_url: 'small' }}">
I tried that based on this page. I also tried the following:
{{ item.product.featured_image | product_img_url | img_tag }}
Neither way worked. All I'm getting back is a placeholder image that says "no image" on it. This leads me to believe that my syntax is correct, but Shopify can't find the image I'm looking for. I set an image for the product in the admin page, and to make sure I have a big image and a smaller one, as well as set an image on the variant (although there is only the default, one variant for this product). None of it is working. Does anyone have any experience in this and can point me in the right direction?
Thanks!
line_items
but by using theimg_filter
in some way. – pjlamb12<ul style="list-style-type:none">
{% for line in fulfillment.fulfillment_line_items %}<li>
<img src="{{ line.line_item | img_url: 'small' }}" />
{{ line.quantity }}x {{ line.line_item.title }}
</li>{% endfor %}
</ul>
– pjlamb12