cancel
Showing results for 
Search instead for 
Did you mean: 

Missing variant attribute in hmc

Former Member
0 Kudos

Hello

Recently, we recognized that in our hmc the list of variant attributes is incomplete. One of the fields is missing. As far as I check the code the fields are selected by de.hybris.platform.variants.jalo.VariantType.getVariantAttributes() which removes all not-variant attributes including my field. The reason of this is that the field is of type "AttributeDescriptor" and not "VariantAttributeDescriptor". The questions is where can I change the type of this field to "VariantAttributeDescriptor"?

Thanks for any help in adance.

Andy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is defined in items.xml, example:

             <itemtype code="ApparelStyleVariantProduct" extends="VariantProduct"
                       autocreate="true" generate="true"
                       jaloclass="de.hybris.platform.yacceleratorcore.jalo.ApparelStyleVariantProduct">
                 <description>Apparel style variant type that contains additional attribute describing variant style.
                 </description>
                 <attributes>
                     <attribute qualifier="style" type="localized:java.lang.String"
                                metatype="VariantAttributeDescriptor">
                         <description>Color/Pattern of the product.</description>
                         <modifiers/>
                         <persistence type="property"/>
                     </attribute>
 
                     <attribute qualifier="swatchColors" type="SwatchColorSet">
                         <description>A normalized color mapping to a standardized front-end navigable name.
                         </description>
                         <modifiers/>
                         <persistence type="property"/>
                     </attribute>
                 </attributes>
 
             </itemtype>