You are currently viewing documentation for Linnworks Desktop, if you are looking for Linnworks.net documentation, click here.


How to ignore composites in an Order Email

When an item is not a composite item it will have a sort order of 0 therefore the below evaluation can be used to only display an item if it is the composite parent item.

FOREACH(OrderItems){BEGIN}EVAL<IIF["[{ORDERITEMS.COMPSORTORDER}]"="0","[{ORDERITEMS.ITEMNUMBER}] - [{ORDERITEMS.ITEMTITLE}] x [{ORDERITEMS.NQTY}]",""]> {END}

To install the script go to Settings - Email Notifications - Double click on the Despatch Notification Email then paste the above code into the template.