Overview
An Order Template is the blueprint for a kind of order. It fixes the order’s type (sale, purchase, transfer, invoice, return, …) and defines its rules: the workflow an order follows, which contacts and products are allowed on it, how its title and slug are generated, and which taxonomies it can carry. Every order is created from one. For the order types and their inventory effects, see the Commerce overview.Where to find it
Order templates live under Commerce → Order Templates.Properties
| Property | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Display name of the template. |
slug | string | Yes | Identifier. |
type | enum | Yes | The order type this template creates. |
description | string | No | Optional description. |
inventory_effect | enum | Conditional | inbound or outbound — required for inventory-adjustment templates. |
workflows_config | object | No | The order’s workflow steps. |
contact_profiles | array | No | Whitelist of contact profiles allowed on the order. |
allowed_product_templates | array | No | Whitelist of product templates allowed on line items. |
allowed_child_templates | array | No | Whitelist of child order templates that can be created from an order. |
default_child_templates | array | No | Child templates suggested by default on a new order. |
default_price_list_slug | string | No | The price list orders use for line-item prices by default. |
naming_convention | object | No | The pattern for auto-naming orders. |
taxonomies_ids | array | No | The taxonomies an order may use (allow-list). |
default_taxonomies_ids | array | No | Taxonomies applied to every new order of this template. |
Workflow
A template can wire two workflow steps: the initial step a new order starts on, and the completed step an order must reach to be marked completed.Whitelists
Opt-in lists keep an order’s contents in bounds — leave one empty for no restriction:- Contact profiles — only contacts in these profiles can be set on the order.
- Allowed product templates — only these product templates can appear on line items.
- Allowed child templates — which child order templates can be created from an order (a default subset is suggested on each new order).
Naming convention
New orders get their title and slug generated automatically from the template’s naming convention — a sequence of segments:| Segment | Renders |
|---|---|
| Literal | Fixed text. |
| Date | The current date (year, month, or day) in the commerce timezone. |
| Counter | An incrementing number, zero-padded to a minimum width. |
| Value | A property or attribute from the template, order, contact, organization, user, or location. |
{template title} - {year} - {month} - {counter}.
The timezone used for dates and counter resets is set at
Settings → Commerce → Naming timezone.
Taxonomies
taxonomies_ids is the allow-list of taxonomies an order
may carry; default_taxonomies_ids is the subset applied to every new order (always
within the allow-list).
Line-item columns
The columns and formulas shown on an order’s line items are defined on the product template (a content template), not here — an order template just gates which product templates are allowed.Seeds
Order templates travel between environments as structural Seeds. Each is anorder_templates item; its references
(contact profiles, product templates, child templates) are carried as denormalized
{ title, slug } entries:
Governance & permissions
Only a super admin or Master can create, edit, and delete order templates.API access
Order templates have full CRUD. See the API reference.Related
Orders
The orders created from this template.
Workflows
The steps an order moves through.