how to insert an image in the customer's order details?

kateryna2805
Tourist
5 0 0

Hi there,

Could you please help me?

May I kindly ask you if you know how to insert an image in the customer's order details in the client's dashboard?

p7DFm.jpg

 

Thanks!

Kateryna

Reply 1 (1)
kateryna2805
Tourist
5 0 0
{% if line_item.image %}
{{ line_item | image_url: width: 100, height: 100 | image_tag: srcset: nil | link_to: line_item.product.url }}
{% else %}
 <img src="{{ 'item-remove.png' | asset_url }}" width="100" height="100">
{% endif %}