I’m trying to edit my invoice so that it prints a message only for Amazon order. Those orders have a sales channel of “Amazon” and a shipping method which contains “Amazon” and a tag saying “Amazon”. I’m trying something like
if order dot channel == ‘Amazon’
print my message…
but obviously order.channel does not exist in Liquid. I tried to get order dot shipping_method, but when I print it out, it shows something like “ShippingLineDrop”, not “Amazon FreeEconomy” like I would expect from looking at the order grid. As for the tag, I don’t know how to loop through all the tags and find one which says “xxx”.