Skip to Content

Classifying Products

Hi experts,

I would like to ask if this scenario is an intentional behavior. For example, I have the following impex:

$classificationSystemVersion=catalogVersion(catalog(id[default=sampleClasssificationSystem]),version[default=1.0])[unique=true]
$systemVersion=systemVersion(catalog(id[default=sampleClasssificationSystem]),version[default=1.0])[unique=true]
$catalogVersion=catalogVersion(catalog(id[default=Default]),version[default=Staged])[unique=true]

INSERT_UPDATE ClassificationClass;code[unique=true];supercategories(code,$classificationSystemVersion);$classificationSystemVersion;
;classifyingCategory_PARENT;;;
;classifyingCategory_CHILD;classifyingCategory_PARENT;;

INSERT_UPDATE Category;code[unique=true];supercategories(code,$classificationSystemVersion);$catalogVersion;
;productCategory;classifyingCategory_CHILD;;

INSERT_UPDATE Product;code[unique=true];supercategories(code,$catalogVersion);$catalogVersion;
;sampleProduct;productCategory;;

INSERT_UPDATE ClassificationAttribute;code[unique=true];$systemVersion;
;attribute_of_parent;;
;attribute_of_child;;

INSERT_UPDATE ClassAttributeAssignment;classificationClass(code,$classificationSystemVersion)[unique=true];classificationAttribute(code,$systemVersion)[unique=true];;attributeType(code[default=string]);visibility(code[default=visible]);$systemVersion;
;classifyingCategory_PARENT;attribute_of_parent;;;;
;classifyingCategory_CHILD;attribute_of_child;;;;

Basically, I have two classifying categories that have a parent-child relationship. Only the child classifying category is assigned to the product category. Upon checking in backoffice, the product is only classified by the child classifying category.

However, the classification attributes displayed are both from the parent and child classifying category.

It seems that there is a conflict in the implementation on the resolve(ProductModel) and getAllClassAttributeAssignments(Set<ClassificationClassModel>) methods of DefaultClassificationClassesResolverStrategy class.

Thank you in advance.

Regards

hyb-q1.png (66.5 kB)
hyb-q2.png (60.2 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.