Order status
Order status loop displays order status information.
{loop type="order_status" name="the-loop-name" [argument="value"], [...]}
Transitions are not loop data
Since Thelia 3.1 a merchant can declare which statuses an order may move to, and what runs when
it does. The loop still lists the statuses themselves; the graph and the actions live in the
order_status_transition and order_status_action tables and are enforced by the core when an
order changes status. See
Order Status Transitions.
Arguments
| Argument | Description | Default | Example |
|---|---|---|---|
| code | Status code | code="a_code" | |
| id | A single or a list of order status ids | id="2", id="1,4,7" | |
| order | A list of values see Expected values | manual | order="random" |
Plus the global arguments
Outputs
| Variable | Value |
|---|---|
| $CHAPO | the order status short description |
| $CODE | the order status code |
| $COLOR | the order status hexadecimal color code |
| $DESCRIPTION | the order status description |
| $ID | the order status id |
| $IS_TRANSLATED | whatever the order status is translated or not |
| $LOCALE | the order status locale |
| $POSITION | the order status position |
| $POSTSCRIPTUM | the order status postscriptum |
| $PROTECTED_STATUS | 1 if the order status is protected |
| $TITLE | the order status title |
Plus the global outputs
Order possible values
| Ascending value | Descending value | Sorted fields |
|---|---|---|
| alpha | alpha-reverse | I18n title |
| manual | manual-reverse | position |