A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.umbraco.com/umbraco-commerce/key-concepts/ui-extensions/order-line-properties below:

Order Line Properties | Umbraco Commerce

Order Line Properties | Umbraco Commerce
  1. Key Concepts
  2. UI Extensions
Order Line Properties

Order Line 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 Line. 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 .

"extensions": [
    {
        "type": "ucOrderLineProperty",
        "alias": "Uc.OrderLineProperty.FirstName",
        "name": "Customer FirstName",
        "weight": 400,
        "meta": {
            "propertyAlias": "firstName",
            "readOnly": false,
            "showInOrderLineSummary": true,
            "summaryStyle": "inline",
            "editorUiAlias": "Umb.PropertyEditorUi.TextBox",
            "labelUiAlias": "Umb.PropertyEditorUi.Label"
        }
    }
]

Each entry must have a type of ucOrderLineProperty 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

The alias of the order line property to edit

Set whether the property should be defined as read only and so should be viewable but not editable

Set whether the property should display on the orderline summary

Can be either inline in which case the property value will be displayed inline with other inline properties below the product name, or table in which case the property value will be displayed in a table below the product name

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

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:

ucProperties_{alias}Label

A main label for the property

ucProperties_{alias}Description

A description for the property

Here {alias} is the property alias of a property.

Last updated 4 months ago


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4