VirtoCommerce/vc-module-catalog

Property values are not inherited from non-product parent

j-mok opened this issue · 1 comments

I noticed that property and property values inheritance on products works in an unexpected way: it seems that while all properties are inherited from a product's line of ancestry up to the catalog, the values of those properties are only inherited if the parent is another product. This can be clearly seen in code - CatalogProduct.InheritPropertyValues() is called only from InheritFromCatalogProduct() which is a no-op when the parent is not a product.

Is this by design?

Version info:

  • Platform version: 3.800.12
  • Module version: 3.803.0

Expected behavior

CatalogProduct inherits property values from all types of ancestors: main products, categories and catalogs.

Actual behavior

CatalogProduct inherits property values only from main products.

At this moment, it's by design. We will think how to improve UX to simplify clarification the inheritance from main product.