Hi guys, i am working on an sales order email temp...
# advancedpdf
b
Hi guys, i am working on an sales order email template. I have the items showing correctly but the image is missing since this condition is not true.
<#if (itemimages[itemline.item.internalId])?has_content>
Any ideas how to get the image url inside the loop
<#list salesorder.item as itemline>.
d
if you print
itemline.item.internalId
, does it contain anything? Try
itemline.item.id
🙏 1
b
I tried that as well and nothing. 😕
d
it seems
itemline.item.id
is actually the id of the line in the format _`transactionid_lineid`_
seems the "native" way to do this would be to add a non stored-value column that sources the item's internal id. At which point you might as well just source the image URL directly from the item record as a column instead
b
So is it possible to access the item image url inside the loop:
<#list salesorder.item as itemline>