Hello Umbracian,
I have added a custom order line property in Umbraco Commerce 15 using the following snippet:
“extensions”: [
{
“type”: “ucOrderLineProperty”,
“alias”: “Uc.OrderLineProperty.Sequence”,
“name”: “Sequence”,
“weight”: 400,
“meta”: {
“propertyAlias”: “sequence”,
“readOnly”: true,
“showInOrderLineSummary”: true,
“summaryStyle”: “table”,
“editorUiAlias”: “Umb.PropertyEditorUi.TextBox”,
“labelUiAlias”: “Umb.PropertyEditorUi.Label”
}
}]
This works fine, but now I’d like to add regex validation.
What is the recommended way to add validation rules to custom order line properties in Commerce 15? Should this be done via editorConfig ?
Any guidance or working examples would be much appreciated!
Thanks in Advance