Parcel information

Parceldata can be retrieved with the following webhook code:

Loop parcel items:

{{for $parcel in $parcels}}

   parcel nr: {{ $parcel.nr }}<br>

   {{for $pItem in $parcel.items}}

       item: {{$pItem.sku}}, qty: {{$pItem.qty}}<br>

   {{next pItem}}

{{next parcel}}


Loop parents/childs:

{{for $parcel in $parcels}}

   {{if $parcel.parent_nr === null}}

        parent nr: {{ $parcel.nr }} (type {{$parcel.type}})<br>

        parent items:<br>

        {{for $pItem in $parcel.items}}

            --- item: {{$pItem.sku}}, qty: {{$pItem.qty}}<br>

        {{next pItem}} 

        childs:<br>

        {{for $child in $parcel.childs}}

            --- child nr: {{ $child.nr }} (type {{$child.type}})<br>

            {{for $pItem in $child.items}}

                ------ item: {{$pItem.sku}}, qty: {{$pItem.qty}}<br>

            {{next pItem}}    

        {{next child}}

        <br>

   {{/if}}

{{next parcel}}


Parcel Label:

PARCEL NR: {{$nr}}
PARCEL TYPE: {{$type}}

{{for $item in $items}}

OID: {{$item.order_item_id}
SKU: {{$item.sku}}
QTY: {{$item.qty}} of {{$item.qty_total}}
CO: 

{{for $co in $item.orderItem.custom_options.option_data}}
{{$co.label}}: {{$co.value}}
{{next co}}

{{next item}}

parcel label print event: warehouse.shipment.parcel.label.print template vars:


$shipment.order

$shipment_id

$nr (parcel number)

$type (parcel type)

$weight

$weight_unit

$dim1

$dim2

$dim3

$dimension_unit