Liquid error message when calling the product thumbnail to display it in our invoces template

New Member
1 0 0

Hi, I'm receiving a Liquid error message when calling the product thumbnail to display it in our invoces template. I'm using all possible variations like line-item.image, line-item.image / img-url: thumb, etc, from https://store-printlife.myshopify.com/admin/apps/order-printer/41791/templates/variables?hmac=903b48... ... I'm adding the code inside and outside the IMG tag with no success in any case, it is still showing the line-item title but not the image. It was working last week but some update is causing an error today. The error message looks is like: "Liquid error: filter "product_img_url" can only be called on product images". Can you please help me? Thank you!

0 Likes
Highlighted
Shopify Staff
Shopify Staff
81 0 11

I'll move this to Shopify Design so you can get some help

0 Likes

Hey Jose,

Not sure if you worked this one out, but I think the issue is that you are using "line-item.image" instead of "line_item.image". Or it could be that the line item is just called "line" instead of "line_item" in the code. Have a look in the code for something that reads like this:

{% for line in line_items %}

or

{% for line_item in line_items %}

The one you find will be the version you need to use when accessing the image.

Cheers,
Bjorn

Bjorn Forsberg
Chief Eternal Optimist

Order Printer Templates
http://store.orderprintertemplates.com

Bjorn Forsberg | FORSBERG+two | Award-winning Shopify Apps since 2011
0 Likes