Skip to content

Packing Slip PDF

The Packing Slips document prints one slip per order, designed to go in the box.

The toolbar action Print → Packing Slips in the picking modal calls:

POST /api/p2lab-packing-slips/print/view/orders
{ "orderIds": ["…", "…"] }

The plugin’s DocumentRendererService fetches the orders (with their line items, addresses, custom fields and product images), renders the view_orders.html.twig template via Dompdf for each order, and merges every page into one PDF via FPDI. Multi-order responses are downloaded as a single file.

Per order, top to bottom:

  • Header — order number, order date, total item count.
  • Ship to — the order’s primary shipping address.
  • Bill to — the order’s billing address.
  • Customer comment (optional) — the checkout note, in the configured font size and optional bold.
  • Line items table — see column list below.
  • Order summary (optional) — subtotal, shipping, tax, total.
  • Payment method (optional) — payment method name.
  • Shipping method (optional) — shipping method name.
  • Page numbering — “X / Y” footer added automatically by the PDF post-processor.

Set in Settings → Plugins → Packing Slips → Print | Packing Slips → Columns to display in the items list:

ColumnNotes
PhotoProduct cover image. Adds visual weight; turn off for compact prints.
Product numberSKU.
Manufacturer numberUseful for warehouses that order by mfr number.
EANPrint as text, not as a scannable barcode.
QuantityAlways present. Optionally highlighted when greater than 1.

Plus one optional custom-field column per layout: any product custom field can be pinned as an extra column, with a configurable width in pixels.

The Types of items to display multi-select lets you choose which line-item types are rendered:

  • Product, Custom item, Credit, Promotion, Discount, Container.

Defaults render Products and Custom items only; Promotion / Discount rows are usually omitted because the slip is about what’s in the box, not what was negotiated at checkout.

The Don’t show digital items switch removes downloads from the slip entirely. Default on.

The line items are sorted on the printed slip independently of the modal:

  • Sort order: Name or Product number.
  • Sort direction: Ascending / Descending.

Three font-size knobs (in pixels):

  • Font size — default base (e.g. addresses, footer).
  • Line item font size — product name and quantity table.
  • Comment font size — customer comment block.

Plus a Bold font for comment switch.

BlockDefaultWhy turn off
Show payment methodOnThe slip is a packing aid, not a tax document; some shops omit it.
Show shipping methodOnIf your courier label already says it, omitting cleans up the slip.
Show order summaryOnSome shops don’t want the customer to see prices on the slip.
Highlight quantity if it is greater than 1OnOff for very compact slips.
  • If the slip’s photo column is too wide, drop the photo column entirely — text columns reflow naturally to the recovered space.
  • For thermal printers with narrow paper, set all font sizes one or two pixels smaller and turn off the photo column.
  • The default file name pattern is timestamped (packing_slips_<UTC>.pdf) — your browser groups multiple downloads naturally.