Fluent Commerce Logo
Docs

Configure Printable Order Labels

How-to Guide

Author:

Yulia Andreyanova

Changed on:

5 Sept 2025

Key Points

  • Use an HTML template to tailor the Order Labels to your specific needs.
  • This document provides step-by-step instructions for setting up and modifying fragments needed to customize generated PDFs.
No alt text provided

Steps

Step arrow right iconDefine the HTML Structure

Start by defining the HTML structure for your Order Labels. You can use the base template below and customize it using your preferred HTML editor to achieve the layout and fields you desire.

Step arrow right iconConfigure the Page Query in the Pack Fragment

Next, you'll need to add the necessary fields to the pack fragment's page query. This will help populate the details on the pack slip and order label.This query ensures that all relevant order and customer details are available for use in your template.

Step arrow right iconAdd the Page Break Property

To divide content across multiple pages in your PDF, use the `break-after` property in your CSS. This feature is particularly useful when you have long lists or multiple sections.The above code snippet ensures that content breaks correctly across pages, maintaining a clean and organized appearance in your printed documents.

Step arrow right iconAdd Supported Fields

When iterating over arrays in your HTML, use the `{{#each <field>}}` notation. This allows you to dynamically display information from your data tree.This code effectively loops through the list of articles, displaying relevant details for each item.

Step arrow right iconCreate a Setting fc.store.summary.print.pack.label

You’ll need to set up a configuration setting for your labels. Here’s how you can do it:
Namefc.store.summary.print.pack.label
Value type`LOB`
LOB value`<..The HTML template, from Step 1..>`
Context`RETAILER -or- ACCOUNT`
Context ID`<RetailerID> -or- 0`
This configuration ensures your labels are properly set up and recognized within the system.