Order Properties
Order Properties UI Extension for Umbraco Commerce
With the use of Properties, Umbraco Commerce allows a lot of flexibility to capture whatever data you need to record against an Order. To complement that functionality, it is also possible to configure those properties to be editable within the backoffice UI.
Order Properties are defined as manifest entries in your umbraco-package.manifest
.
Each entry must have a type of ucOrderProperty
along with a unique alias
and name
. An optional forEntityTypes
key can also be defined to control whether the property is visible on the Cart editor, or the Order editor, or both. The forEntityTypes
is an array and can accept either or both of uc:cart
or uc:order
values.
A meta
entry provides configuration options for the property
Name | Description |
---|---|
| The alias of the order line property to edit |
| Defines a group in which to display the property |
| The alias of the property editor to use to edit this property |
| A JSON serialized string to pass to the editor UI as config |
| The alias of the property editor to use to view this property |
Order Property Groups
Order properties can be defined as one of the following to control where the property is displayed.
Name | Description |
---|---|
| Displays the property in the Customer fieldset of the customer details editor modal |
| Displays the property in the Billing fieldset of the customer details editor modal |
| Displays the property in the Shipping fieldset of the customer details editor modal |
| Displays the property in the Notes section of the Order editor |
| Displays the property in the Additional Info fieldset of the Order editor |
Localization
When displaying your properties in the backoffice UI it is necessary to provide localizable labels. This is controlled by Umbraco's UI Localization feature.
Umbraco Commerce will automatically look for the following entries:
Key | Description |
---|---|
| A main label for the property |
| A description for the property |
Here {alias}
is the property alias of a property.
Last updated