---
title: Order Shipped Stylesheet - Liquid Template for Pipe-Separated Files
description: Render the pipe-separated Order Delivered messages of the Nodinite Order-to-Cash demo as a delivery note with proof of delivery, using the Liquid Stylesheet O2C - View Order Shipped on the raw body (7.12).
---

# Order Shipped Stylesheet

> This page provides the **Liquid** [Stylesheet][Stylesheets] **O2C - View Order Shipped** for the pipe-separated (PSV) **Order Delivered** messages (Step 6) in the [Order-to-Cash demo][Generate-Demo].

![O2C BPM Viewer with order ORD-10005 for Tailspin Toys, Action on the Order Delivered event and View message formatted as O2C - View Order Shipped, ending on the Delivery Note DLVY-2025-10005, animated walkthrough (7.12)][1]  
*Animated walkthrough: in the BPM Viewer of [BPM Log Search][Search log events from a BPM], open **Action** on the *Order Delivered* event of order `ORD-10005` and choose **View message formatted as 'O2C - View Order Shipped'**.*  

**Answer "was it delivered?" in one look.** With <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Stylesheets][], support reads the delivery note and its proof of delivery instead of pipe-separated rows. On this page, you will:

* ✅ Render a pipe-separated message with Liquid, without a parser  
* ✅ Read four sections of the file: header, details, proof, and footer  
* ✅ Open the delivery note from [Log Views][] and from [BPM Log Search][Search log events from a BPM] <sup><span class="nodinite-new-badge">New 7.11</span></sup>  

## <i class="fal fa-diagram-project" aria-hidden="true"></i> Understanding the Order Shipped Stylesheet

A [Stylesheet][Stylesheets] is tied to a [Message Type][Message Types]. The business [Log Event][] of Step 6, *Order Delivered*, carries the Message Type `O2C.Order.Delivered/1.0`, so <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> offers **O2C - View Order Shipped** for it.

The template uses the same pattern as the CSV [Order Confirmation Stylesheet][CSV-Stylesheet]: the body arrives as one string in `data`, `newline_to_br | split: '<br />'` gives the lines, a section name (`DeliveryConfirmationHeader`, `DeliveryDetails`, `DeliveryProof`, `DeliveryFooter`) starts a section whose first line holds the column names, and `split: '|'` gives the fields.

<div class="mermaid">
graph LR
    A["fa:fa-inbox Order Delivered<br/>Log Event (PSV)"] --> B["fa:fa-font Raw body<br/>in data"]
    B --> C["fa:fa-scissors Split into lines<br/>and four sections"]
    C --> D["fa:fa-table-columns Split each line<br/>on pipes"]
    D --> E["fa:fa-file-alt Delivery note"]
    style A fill:#2678BD
    style B fill:#9E59BB
    style C fill:#E47528
    style D fill:#E47528
    style E fill:#93d16d
</div>

*The pipe-separated [Log Event][] (blue) reaches the Liquid template as one string (purple); the template splits it into sections, lines, and fields (orange) and renders the delivery note (green).*

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>A field that contains a pipe would be split too: Liquid has no parser for delimited files. The demo files have no such fields.</p></div>
</aside>

### <i class="fal fa-puzzle-piece" aria-hidden="true"></i> Where Users Open the Delivery Note

|Where|How|
|---|---|
|[Log Views][]|Search the Log View, open **Action** on the *Order Delivered* event, and choose **View message formatted as 'O2C - View Order Shipped'**.|
|[Log Search][Search log events from a BPM] on a BPM <sup><span class="nodinite-new-badge">New 7.11</span></sup>|Click **Log Search** on the Order-to-Cash [BPM][], search for the order number, and open **Action** on the Order Delivered event in the BPM Viewer.|

The dialog is titled **View message body formatted as 'O2C - View Order Shipped'** and has the buttons **Open in New Window**, **Print**, and **Close**. The forwarding event of the step, *Order Delivered Received*, logs `O2C.Forwarding/1.0`, so this Stylesheet isn't offered there.

![Delivery Note DLVY-2025-10005 for order ORD-10005 and Tailspin Toys rendered by the O2C - View Order Shipped Stylesheet, with the delivery address, proof of delivery from Nordic Freight, one delivered item, and the status DELIVERED (7.13)][2]  
*The pipe-separated Order Delivered message rendered as a delivery note: delivered-to address, proof of delivery with carrier, tracking, recipient and location, the delivered items, and the order total.*  

### <i class="fal fa-gear" aria-hidden="true"></i> Stylesheet Settings

|Setting|Value|Why|
|---|---|---|
|Name|`O2C - View Order Shipped`|The name users pick in the **Action** menu|
|Type|Liquid|XSLT 1.0 can't split text|
|Render as HTML|**Checked**|The template outputs HTML|
|Message Body is Json|Unchecked|It has no effect on a PSV body, which always lands in `data`; leave it unchecked|
|Message Types|`O2C.Order.Delivered/1.0`|Only the Step 6 business event gets the Stylesheet|

## <i class="fal fa-file-lines" aria-hidden="true"></i> Input PSV

The Order Delivered body of order 1 as logged by the [demo data script][Generate-Demo], the same message as on the [Step 6 page][Order-Shipped-Message]. The correlation ID differs per order and run.

```text
DeliveryConfirmationHeader
DeliveryId|DeliveryDate|CorrelationId|OrderId|CustomerID|CustomerName|ShippingAddress|DeliveryStatus
DLVY-2025-10001|2025-10-20T14:32:15Z|<correlation id>|ORD-10001|CUST-001|Contoso Corporation|100 Commerce Drive, Suite 100, Springfield, IL 62701|DELIVERED

DeliveryDetails
LineNumber|SKU|Description|QuantityOrdered|QuantityDelivered|Condition
1|SKU-DEMO-001|Demo Widget|1|1|GOOD

DeliveryProof
TrackingNumber|Carrier|DeliverySignature|DeliveryTime|RecipientName|ProofOfDeliveryLocation|PhotoUrl
TRK-20251016-10001|Standard Courier|ACM-AUTO-SIGN|2025-10-20T14:32:15Z|Auto-confirmed|Front Porch|https://pod.courier.example/2025/10/dlvy-10001.jpg

DeliveryFooter
OrderTotal|Currency|ReturnWindow|ReturnInstructions
99.95|USD|30|Visit returns.contoso.com
```

### <i class="fal fa-table" aria-hidden="true"></i> PSV to Delivery Note Mapping

|Section|Field (position)|Shown in the delivery note as|
|---|---|---|
|Header|`DeliveryId` (`h[0]`)|The title|
|Header|`OrderId`, `DeliveryDate` (`h[3]`, `h[1]`)|*Order … delivered* under the title|
|Header|`CustomerName`, `CustomerID`, `ShippingAddress` (`h[5]`, `h[4]`, `h[6]`)|**Delivered to**|
|Header|`DeliveryStatus` (`h[7]`)|*Status*, as a badge|
|Details|every data line|**Delivered Items** table: Line, SKU, Description, Ordered, Delivered, Condition|
|Proof|`Carrier`, `TrackingNumber`, `RecipientName`, `DeliverySignature`, `ProofOfDeliveryLocation` (`p[1]`, `p[0]`, `p[4]`, `p[2]`, `p[5]`)|**Proof of delivery**|
|Footer|`OrderTotal`, `Currency`, `ReturnWindow` (`t[0]`, `t[1]`, `t[2]`)|*Order total* and *Return window*|

PSV values show exactly as the message holds them. The delivery time, the photo URL, and the return instructions are not displayed.

## <i class="fal fa-code" aria-hidden="true"></i> Liquid Template

```liquid
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" />
{%- comment -%} The pipe-separated (PSV) body arrives as one string in 'data': split it into lines, then each data line on '|'. {%- endcomment -%}
{%- assign lines = data | newline_to_br | split: '<br />' -%}
{%- assign section = '' -%}
{%- assign pos = 0 -%}
{%- assign rows = '' -%}
{%- for raw in lines -%}
  {%- assign line = raw | strip -%}
  {%- if line == 'DeliveryConfirmationHeader' or line == 'DeliveryDetails' or line == 'DeliveryProof' or line == 'DeliveryFooter' -%}
    {%- assign section = line -%}
    {%- assign pos = 0 -%}
  {%- elsif line != '' -%}
    {%- assign pos = pos | plus: 1 -%}
    {%- if pos > 1 -%}
      {%- assign f = line | split: '|' -%}
      {%- if section == 'DeliveryConfirmationHeader' -%}
        {%- assign h = f -%}
      {%- elsif section == 'DeliveryProof' -%}
        {%- assign p = f -%}
      {%- elsif section == 'DeliveryFooter' -%}
        {%- assign t = f -%}
      {%- else -%}
        {%- capture rows -%}{{ rows }}<tr><td>{{ f[0] }}</td><td>{{ f[1] }}</td><td>{{ f[2] }}</td><td class="text-center">{{ f[3] }}</td><td class="text-center">{{ f[4] }}</td><td>{{ f[5] }}</td></tr>{%- endcapture -%}
      {%- endif -%}
    {%- endif -%}
  {%- endif -%}
{%- endfor -%}
<div class="container mt-4">
  <h1 class="mb-0">Delivery Note {{ h[0] }}</h1>
  <span class="text-muted">Order {{ h[3] }} delivered {{ h[1] }}</span>
  <div class="row mt-3">
    <div class="col">
      <h6 class="text-muted mb-1">Delivered to</h6>
      <strong>{{ h[5] }}</strong> <span class="text-muted">{{ h[4] }}</span><br/>
      {{ h[6] }}
    </div>
    <div class="col">
      <h6 class="text-muted mb-1">Proof of delivery</h6>
      {{ p[1] }}, tracking <strong>{{ p[0] }}</strong><br/>
      Received by {{ p[4] }} ({{ p[2] }}), {{ p[5] }}
    </div>
  </div>
  <h5 class="mt-4">Delivered Items</h5>
  <table class="table table-sm">
    <thead>
      <tr><th>Line</th><th>SKU</th><th>Description</th><th class="text-center">Ordered</th><th class="text-center">Delivered</th><th>Condition</th></tr>
    </thead>
    <tbody>{{ rows }}</tbody>
  </table>
  <p>Status: <span class="badge badge-success">{{ h[7] }}</span> &middot; Order total {{ t[0] }} {{ t[1] }} &middot; Return window {{ t[2] }} days</p>
  <div class="mt-5 pt-3 border-top text-center text-muted"><small>Rendered by a Nodinite Stylesheet (Liquid) from the pipe-separated Order Delivered message</small></div>
</div>
```

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-palette" aria-hidden="true"></i> [Order Invoiced Stylesheet][Next-Stylesheet] — The JSON invoice of Step 7  
* <i class="fal fa-palette" aria-hidden="true"></i> [View all O2C stylesheets][Overview] — Every demo Stylesheet and its settings  
* <i class="fal fa-play" aria-hidden="true"></i> [Generate O2C Demo Data][Generate-Demo] — Create test messages for this Stylesheet  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-arrow-left" aria-hidden="true"></i> [Order Ready Stylesheet][Previous-Stylesheet]  
* <i class="fal fa-truck" aria-hidden="true"></i> [6. Order Delivered][Order-Shipped-Message] — The step this message belongs to  
* <i class="fal fa-file-lines" aria-hidden="true"></i> [What is a Stylesheet?][Stylesheets]  
* <i class="fal fa-file-circle-plus" aria-hidden="true"></i> [Add or manage Stylesheet][]  
* <i class="fal fa-tags" aria-hidden="true"></i> [Message Types][]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/O2C_Stylesheet_6-Order-Shipped_Open.gif
[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/WebClient/Repository/BPMs/O2C/O2C_Stylesheet_6-Order-Shipped.png

[Add or manage Stylesheet]:https://docs.nodinite.com/administration/customize/stylesheets/features/add-or-manage-stylesheet/
[BPM]:https://docs.nodinite.com/repository-model/bpms/overview/
[CSV-Stylesheet]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/3-order-confirmation/
[Generate-Demo]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/generate-o2c-demo-data/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[Next-Stylesheet]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/7-order-invoiced/
[Order-Shipped-Message]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/6-order-shipped/
[Overview]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/overview/
[Previous-Stylesheet]:https://docs.nodinite.com/repository-model/bpms/examples/order-to-cash/stylesheets/5-order-ready/
[Search log events from a BPM]:https://docs.nodinite.com/getting-started/repository/bpms/search-log-events-from-a-bpm/
[Stylesheets]:https://docs.nodinite.com/administration/customize/stylesheets/features/what-is-a-stylesheet/