Adding a custom field with rich text editor in Sitecore Experience Commerce
Sometimes we want to be able to edit sellable items in BizTools that contain rich text fields which will be displayed in the storefront UI using a rich text editor (RTE). To facilitate this, we need to tell Sitecore Commerce what type of editor to present in BizTools. Referring to the Sitecore documentation for a custom component1, in the GetNotesViewBlock.cs
class we will set the UiType property to “RichText”. Adding our property with a rich text editor in that class will now look like…
GetNotesViewBlock.cs
-
Last time I checked, the code in that article was for Sitecore Experience Commerce 9.0.1, and requires some modifications to work correctly with 9.0.2 which includes entity versioning. ↩