1

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

In our case, we need to allow products with special character Names( like product names with hyphens and percentages).

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

Our Sitecore version is 9.2

1 Answer 1

1

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

2
  • @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, 2020 at 8:24
  • It is there to enforce certain validations, if not required, it can be changed. Jun 13, 2020 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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