This article lists LiquidJS variables for new (Liquid) print templates that are not in the Packing Slip LiquidJS Reference. For the syntax, see Getting Started with LiquidJS Templates. Default templates don't use these variables; add them to your own templates.
Pick list: item weight and dimensions
On pick list and grouped pick list templates, each item has:
weight and weightUnit: the item's weight.
totalWeight: weight times the quantity ordered, with 2 decimals.
length, width and height: the item's dimensions.
cbm, totalCbmItem and cbmDimensionUnit: the item's cubic size.
Pick list: the channel line name (lineName)
line.namingDetails.lineName is the line title as the sales channel sent it on the order, often with the variant text. To show it, with fallbacks when it's empty:
{{ line.namingDetails.lineName | default: line.namingDetails.existingListingName | default: line.namingDetails.name | default: line.name }}
Warehouse access: show only lines a user can fulfill
If some users can only see certain warehouses, templates can hide lines from other warehouses. Packing slips, invoices, shipment breakdowns, bills of lading, address labels and pick lists have:
currentUser.warehouseFilters: the warehouse IDs the user can access (empty means all).
currentUser.userHasAccessibleLines: true when at least one line can be fulfilled by the user.
line.userHasWarehouseAccess: true when the user can fulfill that line.
line.fulfillmentWarehouseId: the warehouse Geo Routing picked for the line, if any. Pick lists have line.fulfillmentWarehouseIds instead, because one row can span orders.
location.warehouseId and location.userHasWarehouseAccess on each line location.
Example: {% for line in lines %}{% if line.userHasWarehouseAccess %} ... {% endif %}{% endfor %}
Invoices: named tax lines, payment method and line totals
orderSummary.taxLines: the order's named taxes, each with title, rate and amount.
orderSummary.subtotal, shipping, total and totalItems: the order totals.
orderPayment.method: how the order was paid, as the sales channel reported it.
line.lineTotal: price times quantity, rounded to cents. line.discount is the discount per unit.
line.taxLines and line.tax: the line's named tax, when the channel gives tax per line.
Printed invoices, shipped e-mails and the invoice export all use the same values.
