> For the complete documentation index, see [llms.txt](https://galmis.gitbook.io/serializer-product-tracking/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://galmis.gitbook.io/serializer-product-tracking/getting-started/sharing-and-integration/share-item-information-with-customers/order-printer.md).

# Order printer

Use custom templates for receipts, packing slips, returns, and more.

{% hint style="info" %}
The official [Shopify Order Printer](https://apps.shopify.com/shopify-order-printer) app now supports order metafields via `order.metafields` Liquid variable. For example,

```liquid
{% assign tracked_line_items = order.metafields.serializer.properties.items
              | where: 'lineItemId', line_item.id
            %}
  
            {% if tracked_line_items.size > 0 %}
              {% assign sns = tracked_line_items | where: 'serialNumber' | map: 'serialNumber' %}
              {% if sns.size > 0 %}
                <small> Serial number(s): {{ sns | join: ', ' }} </small>
              {% endif %}
            {% endif %}
```

The Shopify Order Printer may be a better alternative than Serializer's order printer.&#x20;

Please check out [Liquid variables and filters reference for Shopify Order Printer](https://help.shopify.com/en/manual/fulfillment/managing-orders/printing-orders/shopify-order-printer/liquid-variables-and-filters-reference) for more details.&#x20;
{% endhint %}

## Create printer templates

1. Navigate to the "Printer templates" page in the app.&#x20;

<figure><img src="https://462855324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzhu3c9RXL4n7dptouWbv%2Fuploads%2FbUmIg9HXQ67hYaTdUB6E%2Fimage.png?alt=media&amp;token=7eac24ed-261b-4319-a477-7d32ee8f7806" alt=""><figcaption></figcaption></figure>

2. Click "Create template" or "Duplicate" an existing example template.
3. Code your template in Liquid templating language. Learn more about the available [Liquid variables and filters](/serializer-product-tracking/getting-started/sharing-and-integration/development-api-reference/order-printers-liquid-variables-and-filters.md).

{% hint style="info" %}
Liquid and HTML knowledge is required. If you need help, please get in touch with me.
{% endhint %}

## Print orders

1. From Shopify admin order page select "More Actions" > "Print with Serializer"&#x20;

   <figure><img src="https://462855324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzhu3c9RXL4n7dptouWbv%2Fuploads%2FELObsJxNMt29orAXiQQr%2Fimage.png?alt=media&amp;token=b6363cbd-e6ac-48ad-bef1-dfd39add9d97" alt=""><figcaption></figcaption></figure>
2. Select the printer template and "Print" (right hand side). <br>

   <figure><img src="https://462855324-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzhu3c9RXL4n7dptouWbv%2Fuploads%2FjavNxzr7lGyF6RW8mnya%2Fimage.png?alt=media&amp;token=efc520d9-d39d-4496-8acd-bb61bdc092bd" alt=""><figcaption></figcaption></figure>
3. A printer wizard should open where you can select the printer or save the content as PDF.
