To save anyone the bother of investigating this further… These are the only variables available on a packing slip.
Obviously this is just a hack to get around something like line_item.original_price not being available, so Shopify, just make that available please!
The hack no longer works because Shopify have removed some of the parameters of the line_item object that they suggest ARE genuinely available on their docs page.
It looks like anything that makes line_item unique (key, id, sku & variant_id params), are all unavailable when looping through: line_items_in_shipment.
Started my first Shopify site a little while ago and already seen this identical confusing, undocumented behaviour on handling blogs in templates:
- Docs suggests it object is available
- Community post still exists referencing legacy method
- Try method, it doesn’t work, looks like Shopify changed how it works
- Find other community posts complaining about it no longer working
- No follow up from Shopify staff clearing up the issue on community post