Develop > Presentation layer > Management Center framework
Display a new merchandising association type
You can customize the Catalogs tool by adding a new merchandising association type so it is available to the merchandising association grid. In this example, it is assumed that the MASSOCTYPE table contains a merchandising association type called NEWMATYPE as a massoctype_id.
Procedure
- Open WebSphere Commerce Developer.
- Open Java EE perspective and select Enterprise Explorer view.
- Navigate to LOBTools > WebContent > WEB-INF > src > lzx > commerce > catalog > objectDefinitions.
- Open the CatalogCommonObjectDefinitions.lzx file.
- Add the new merchandising association type as a property value to the name property definition as shown in the following example. The property values for the merchandising association types are defined in the catBaseMerchandisingAssociationReferencedCatalogEntries class.
- Locate the class definition of catBaseMerchandisingAssociationReferencedCatalogEntries by searching for the following substring <class name="catBaseMerchandisingAssociationReferencedCatalogEntries" .
- Add the code shown in bold:
<!--- This property definition represents the options for the type of merchandising associations available between two catalog entries. --> <wcfPropertyDefinition propertyName="name" required="true" displayName="${catalogResources.merchandisingAssociationAssocType.string}"> <wcfPropertyValue displayName="${catalogResources.merchandisingAssociationName_REPLACEMENT.string}" value="REPLACEMENT"/> <wcfPropertyValue displayName="${catalogResources.merchandisingAssociationName_ACCESSORY.string}" value="ACCESSORY"/> <wcfPropertyValue displayName="${catalogResources.merchandisingAssociationName_UPSELL.string}" value="UPSELL"/> <wcfPropertyValue displayName="${catalogResources.merchandisingAssociationName_XSELL.string}" value="X-SELL"/> <wcfPropertyValue displayName="${extCatalogResources.merchandisingAssociationName_NEWMATYPE.string}" value="NEWMATYPE"/> </wcfPropertyDefinition>
- Save the changes. WebSphere Commerce Developer compiles the code to produce an updated ManagementCenter.swf file under the WCDE_INSTALL\workspace\LOBTools\WebContent directory.