Posts

Showing posts with the label custom-properties

How to create catalog aware ItemType in Hybris?

Scenario Create an Item type which can have two versions(stage/online) like the product type. In simple word, it should be catalog aware. Solution We can declare any Item type as catalog aware using in *-items.xml < itemtype code = "MyConfiguratorSetting" extends = "GenericItem" autocreate = "true" generate = "true" > < deployment table = "ConfiguratorSettings" typecode = "1301" /> < custom - properties > < property name = "catalogItemType" >< value > java . lang . Boolean . TRUE </ value ></ property > < property name = "catalogVersionAttributeQualifier" >< value > "catalogVersion" </ value ></ property > < property name = "uniqueKeyAttributeQualifier" >< value > "code" </ value ></ property > </ custom - prope...