Packing Slip PDF
The Packing Slips document prints one slip per order, designed to go in the box.
Generated from
Section titled “Generated from”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.
Layout
Section titled “Layout”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.
Configurable columns
Section titled “Configurable columns”Set in Settings → Plugins → Packing Slips → Print | Packing Slips → Columns to display in the items list:
| Column | Notes |
|---|---|
| Photo | Product cover image. Adds visual weight; turn off for compact prints. |
| Product number | SKU. |
| Manufacturer number | Useful for warehouses that order by mfr number. |
| EAN | Print as text, not as a scannable barcode. |
| Quantity | Always 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.
Item type filtering
Section titled “Item type filtering”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.
Typography
Section titled “Typography”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.
Optional blocks
Section titled “Optional blocks”| Block | Default | Why turn off |
|---|---|---|
| Show payment method | On | The slip is a packing aid, not a tax document; some shops omit it. |
| Show shipping method | On | If your courier label already says it, omitting cleans up the slip. |
| Show order summary | On | Some shops don’t want the customer to see prices on the slip. |
| Highlight quantity if it is greater than 1 | On | Off 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.