> ## Documentation Index
> Fetch the complete documentation index at: https://www.twicecommerce.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to print a label for each customer on a receipt printer

> Build a small label template, add a print button to each customer card on an order, and print one slip per customer on your receipt printer.

> [card] [Open in TWICE Admin](https://admin.twicecommerce.com/settings)
>
> settings

Print one slip per customer on an order, with their name, dates and items, sized for your receipt printer, so staff can tape it to the goods they prepare. [Documents settings](https://www.twicecommerce.com/docs/settings/documents.md) explains document templates and their variables.

## Prerequisites

> [!WARNING]
>
> **Required permissions:** `account_settings:documents` (create and manage) to build the template, which Owner, Admin and Manager hold. `account_settings:orders:manage` to add the shortcut, which only Owner and Admin hold. Printing from an order works for every built-in role, Member included. See [Users & Roles](https://www.twicecommerce.com/docs/settings/users-roles.md).

> [!NOTE]
>
> **Have ready before you start:**
>
> * **A receipt printer installed on the counter computer**, and the width of its paper roll, such as 80 mm.
> * **An order with two or more customers**, to test the label on.
> * **An order attribute for anything you write by hand today**, such as a group number, if you want it on the label. See [Settings → Attributes & Tags](https://www.twicecommerce.com/docs/settings/attributes-tags.md).

## The walkthrough

**1. Start a new document template**

Open **Settings → Documents** and click **Add** at the top right of **Document templates**. The **Create document** editor opens on its **Settings** section.

**2. Name the label and make it an order document**

Switch on **Enable document** and enter a **Document title** such as **Customer label**. Set **Content** to **Order**, and pick **Order** under **Visible in**. The template's name becomes the print button's name on the order.

**3. Paste the label's HTML**

Click **Content** in the editor's left column and replace the code with the label below. Set `size` in `@page` to your roll's width and the label's length. The preview on the right updates as you type.

```html Customer label theme={null}
<style>
  @page { size: 80mm 100mm; margin: 4mm; }
  body { font-family: sans-serif; font-size: 12pt; }
  h1 { font-size: 20pt; margin: 0 0 2mm; }
</style>
{{#each customers}}<h1>{{fullName}}</h1>{{/each}}
<p>{{formatDateTimeRange earliestStartDate latestEndDate}}</p>
<p>Group {{attributes.group_number.formatted}}</p>
<ul>
  {{#each groupedLineItems}}<li>{{localeField name}} × {{quantity}}</li>{{/each}}
</ul>
<p>{{reference}}</p>
```

**4. Check it against one of your orders**

Click **Test data**, search for your test order under **Test data source** and pick it. The preview renders the label with that order's names, dates and items. Click **Publish** at the top right. The template is now active.

**5. Add a print shortcut to the customer card**

Open **Settings → Orders → Order view**. Under **Customer card shortcuts**, click **Add print shortcut**. A new row appears with **Icon** and **Document to print**.

**6. Pick the icon and the label**

Pick the printer under **Icon**, and **Customer label** under **Document to print**. Click **Save changes** in the banner at the bottom.

**7. Print the first customer's label**

Open the order and stay on its **Summary** tab. In the header of a customer card, click the printer icon named **Customer label**. Your browser's print dialog opens. Choose the receipt printer and print.

**8. Print the rest of the order**

Click the same icon on each remaining customer card. Each slip carries only that customer's name, dates and items.

## How do I know it worked?

Each customer card on an order carries a printer icon named **Customer label**. A click prints one slip at your roll's width, with that customer's name, rental or booking dates and items, and nobody else's.

## Troubleshooting / common pitfalls

> [accordion] The label prints on A4 or is cut off at the side
>
> Match `size` in `@page` to the roll, and pick the receipt printer and its roll in the print dialog. Print one label before you print a day's worth.

> [accordion] Print documents on the Orders table prints the whole order
>
> **Print documents** prints one page per order, with every customer on it. Print per customer from the customer cards. See [Documents settings](https://www.twicecommerce.com/docs/settings/documents.md).

> [accordion] The customer card has no printer icon
>
> The template is a draft, or not available for orders. Open it, switch on **Enable document**, and pick **Order** under **Visible in**. See [Order view](https://www.twicecommerce.com/docs/settings/orders/order-view.md).

## Related articles

> [card] [Documents settings](https://www.twicecommerce.com/docs/settings/documents.md)
>
> Document templates, their variables and printing for many orders.

> [card] [Order view](https://www.twicecommerce.com/docs/settings/orders/order-view.md)
>
> Side panel and customer card shortcuts.

> [card] [Emails](https://www.twicecommerce.com/docs/settings/emails.md)
>
> The Handlebars variables and helpers templates share.

> [card] [Save a daily view](https://www.twicecommerce.com/docs/guides/orders/save-a-daily-view.md)
>
> Save tomorrow's pickups as a tab to work through.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.