vc-module-catalog
vc-module-catalog copied to clipboard
When you add a category should determine whether the category name already exists
Expected behavior
- Create a new category [Test] and click save
- Create a new category with [Test], click save, Display warning "folder name already exists", create Yes or Cancel.
@Woland2k, have to decide about the resolution as it's doubtful
@eMazeika Field "Code" should be generated from the category name in realtime (as user types) and "Code" should have validation of uniqueness. Use can also manually change code to value he likes as well.
@qq550723504 VirtoCommerce supports multiple categories with same name, it provides ability to display different products for different customers and etc. I offer to add custom SQL constrain on CatalogId, ParentCategoryId, Code and Name to determine whether the category name already exists.