Skip to Content
0
Apr 22, 2015 at 09:03 AM

ClassificationPropertyValueProvider in v5.4

579 Views

Hi,

after migrating from 4.8 to 5.4 I experience some problems with the ClassificationPropertyValueProvider which does not provide any values for configured classification features anymore.

It seems that this Provider fetches the feaures by loading the FeatureContainer:

 FeatureContainer cont = FeatureContainer.load((Product) this.modelService.getSource((ProductModel) model));

After debugging into that I found out that the container is only loading the obsolete "Untyped Features". All correct "Typed Features" are missing. Then I tested the following method which is used inside of FeatureContainer#load

 CatalogManager.getInstance().getClassificationClasses(product);

And I saw that the result is always empty. I assume that this could be the problem of the incorrectly loaded features, but I do not know why the classification classes could not be retrieved?

Is there any kind of "extra/new configuration" related to classifications in hybris 5.4?

UPDATE

So, I think I am a little bit closer to the problem now. By digging deeper in to the method

 CatalogManager#getSupercategories

I could see that the method

 Category#getSupercategories()

does no provide ClassificationClasses here, although these classes are referenced correctly as supercategories - which can be checked in the hmc as well.

Maybe anyone had similar problems when migrating hybris to 5.x?