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

  1. Open WebSphere Commerce Developer.

  2. Open Java EE perspective and select Enterprise Explorer view.

  3. Navigate to LOBTools > WebContent >  WEB-INF > src > lzx > commerce > catalog > objectDefinitions.

  4. Open the CatalogCommonObjectDefinitions.lzx file.

  5. 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.

    1. Locate the class definition of catBaseMerchandisingAssociationReferencedCatalogEntries by searching for the following substring  <class name="catBaseMerchandisingAssociationReferencedCatalogEntries" .

    2. 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>
      

    3. Save the changes. WebSphere Commerce Developer compiles the code to produce an updated ManagementCenter.swf file under the WCDE_INSTALL\workspace\LOBTools\WebContent directory.


+

Search Tips   |   Advanced Search