You want the SKU on your packing slip, or the order note, or a price column, and the default template does not show it. The fix is a Liquid variable, but finding the right one is the hard part. Shopify packing slip variables are documented, yet the list is short and people often reach for fields that are not there.
This guide covers the variables you will use most, how to add common fields, and why some variables render blank.
What Are Liquid Variables in Shopify Templates?
Liquid variables are placeholders that Shopify replaces with real order data when it renders a document. You write {{ order.name }} and the template prints the order name, such as #1004. Shopify’s packing slip variable reference describes packing slips as rendered with Liquid, its template language.
How Shopify templates pull order data
A template has access to objects such as order, shop and, for packing slips, the shipment’s line items. Within a loop you can access fields of each line item. Variables only work if the object exposes that field, which is why some seem to do nothing.
Where to edit the template
Packing slip templates are edited in your Shopify admin settings under shipping and delivery. Menus move over time, so follow the current Help Center steps, and copy the original code somewhere safe before you change anything.
Shopify Packing Slip Variables You Will Use Most
The official reference groups variables into order variables and shipment variables. These are the ones most stores need.
Order and customer fields
Two order variables people mix up:
- order.order_number is the number without prefix or suffix, such as 1004.
- order.name includes the prefix or suffix set in your store settings, such as #1004.
The reference also lists customer and address fields for the shipping and billing details. Use order.name when you want the number to match what your customer sees.
Line item fields: title, SKU, quantity
The line_items_in_shipment variable holds the items included in this shipment. Loop through it and print fields such as line_item.title, line_item.variant_title and line_item.quantity. For partial shipments, line_item.shipping_quantity shows how many units ship now, so you can print “2 of 5”.
Shipping address and notes
The shipping address prints from the order’s shipping address fields. A handy variable for split orders is includes_all_line_items_in_order, which lets you show a message when other items ship separately. Community answers also point to order.shipping_method.title for the chosen shipping method.
How Do You Add Price or Other Fields to a Packing Slip?
Check the official variable list first. If the field is not listed for packing slips, adding it may print nothing. A common workaround is to match the line item against the full order and read the value from there.
Adding line item price
The default packing slip shows quantity but not price. Community threads disagree: some suggest line_item.final_price, while others report that price is not exposed to the packing slip line item at all. Test it on your own store. If it renders blank, use an invoice template instead, since invoices are built for amounts.
Adding order notes and custom fields
Order notes and attributes come from the order object. Wrap any optional field in an if check so empty values do not leave blank space on the page.
Testing a change safely
Edit a copy of the template, print a packing slip for a test order, and check the result before you roll the change out. Keep the original code until you are sure.
Common Variable Mistakes
Most template problems come from three causes: a wrong variable name, a missing field, or the wrong document type.
Variables that render blank
A variable renders blank when the object does not provide it. Barcodes are a frequent example: line_item.barcode is not in the official packing slip list, so adding it usually prints nothing. Look the field up in the reference before spending an hour debugging.
Differences between packing slips and invoices
Packing slips travel with the parcel and often hide prices on purpose. Invoices carry amounts, tax and payment terms. The variable sets differ, so code copied from one will not always work in the other. Our guide to Shopify packing slip templates covers layout.
Skip the Code: Template Editing With InvoiceForge
If you would rather not maintain Liquid, InvoiceForge lets you edit templates visually. You drag fields into place and the app fills them with order data.
Drag-and-drop editing
Change logo, fonts, columns and field order without touching code. See how to edit a Shopify invoice template for the options.
When code is still the better route
If you only need one extra field on the native packing slip, a single Liquid line is quick. For multiple document types with consistent branding, a visual editor is faster. Compare the options in Shopify Order Printer alternatives compared.
Next Steps
Write down the fields you need, look each one up in the reference, and test on a sample order.
Variable quick reference
- order.name: order name with prefix
- order.order_number: plain number
- line_items_in_shipment: items in this shipment
- line_item.shipping_quantity and line_item.quantity: units shipping and ordered
- includes_all_line_items_in_order: true when the shipment covers the whole order
Related guides
Read professional invoices on Shopify for the invoice side.
