Is there any specific reason for having alphanumeric validation for Sellable item Name field.

In our case we need to allow products with special character Names( like product name with hyphen and percentage).

if AlphanumericOnly_NameValidation Validation Regex removed from Sellable Item Name Field, will there be any issue?

Our Sitecore version is 9.2


Changing name is fine as long as it is compatible with Sitecore Item name as well since these products are displayed in the content tree. So same rule should be applied.

Don't change the ID to use hyphen, it will break the system if you add a hyphen in the sellable item id. If you look at the sellable item id, it uses hyphen as an identifier. Then there is a parsing logic that extracts the number from this field, url logic, etc

enter image description here

  • @sckautilya Thanks for your answer. One thing i noticed is that in sitecore content tree item name is created based on display name and commerce product name we can see under Content section. So i am thinking why there is a alpha numeric validation for product Name's as product name could have characters like hyphen,Percentage.
    – Jinu
    Jun 13 '20 at 8:24
  • It is there to enforce certain validations, if not required, it can be changed. Jun 13 '20 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.