Skip to main content
Version: Thelia 3

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​

ArgumentDescriptionDefaultExample
codeStatus codecode="a_code"
idA single or a list of order status idsid="2", id="1,4,7"
orderA list of values see Expected valuesmanualorder="random"

Plus the global arguments

Outputs​

VariableValue
$CHAPOthe order status short description
$CODEthe order status code
$COLORthe order status hexadecimal color code
$DESCRIPTIONthe order status description
$IDthe order status id
$IS_TRANSLATEDwhatever the order status is translated or not
$LOCALEthe order status locale
$POSITIONthe order status position
$POSTSCRIPTUMthe order status postscriptum
$PROTECTED_STATUS1 if the order status is protected
$TITLEthe order status title

Plus the global outputs

Order possible values​

Arguments

Ascending valueDescending valueSorted fields
alphaalpha-reverseI18n title
manualmanual-reverseposition