vc-module-catalog icon indicating copy to clipboard operation
vc-module-catalog copied to clipboard

When you add a category should determine whether the category name already exists

Open OlegoO opened this issue 7 years ago • 4 comments

@qq550723504 commented on Wed Jan 13 2016

20160113154500

OlegoO avatar Sep 05 '17 13:09 OlegoO

Expected behavior

  1. Create a new category [Test] and click save
  2. Create a new category with [Test], click save, Display warning "folder name already exists", create Yes or Cancel.

OlegoO avatar Sep 05 '17 13:09 OlegoO

@Woland2k, have to decide about the resolution as it's doubtful

eMazeika avatar Oct 25 '17 08:10 eMazeika

@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.

Woland2k avatar Oct 25 '17 08:10 Woland2k

@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.

OlegoO avatar Oct 26 '17 10:10 OlegoO