Goal: show each line item’s price and weight on a Shopify packing slip (Liquid template) without duplications.
Latest progress: The requester successfully outputs the item’s price by matching the current line_item’s title (plus variant_title) to the order.line_items and rendering item.final_price | money. Weight display remains unresolved.
Suggested approach: Retrieve weight from the variant: item.variant.weight (per Shopify’s line_item/variant docs). Code examples are central to this thread. Note: One proposed snippet used non-Liquid syntax (set prev_sku) and an != comparison that would print other items, which likely caused issues.
Open issues: Multiple users ask where exactly to place the code in the packing slip template (likely inside the loop iterating order.line_items/line_item). Another user reports weight always shows “0.0 oz” and quantity misalignment (screenshot provided), suggesting the variant weight may be unset or unit/formatting is incorrect.
Status: Price output solved; weight and template placement unresolved. Next steps: confirm variants have weight values, use item.variant.weight (and appropriate unit formatting), and ensure code runs within the correct line item loop in the packing slip template.
I’d like to know this too, please. I am having a hard time showing the weight. It just says 0.0 oz all the time and also that quantity does not line up. Please help.