Develop > Presentation layer > Customize IBM Sales Center


Apply custom merchandising associations

You can create custom merchandising association types based on the requirements. For example, you may want to offer a down-sell merchandising association to suggest lower-priced catalog entries based on the selected catalog entry.

All custom merchandising associations defined in the WebSphere Commerce Server are listed in the Merchandising Associations view, but cannot be applied to an order or quote without customization. In the Sales Center, supported merchandising associations can be applied in two ways:

In order to allow custom association types, customize the Sales Center and drag sides of the application.

To apply custom merchandising associations:


Procedure

  1. To customize the drag side of the application:

    1. Extend the ModelRoot class and override the getSupportedAssociationTypes method to return the custom list of supported association types. The list of supported association types are retrieved from ModelRoot class to check before allowing any associations to drag and apply.

    2. Extend the Association class and override the getAssociationTypeToDisplay and getAssociationImage methods to customize the display name and icon for the associations.

  2. To customize the drop side of the application:

    1. Extend the application:The DropAssociationAction class and override the doAssociationDrop method to add the logic while applying the associations to the order. The application:The DropAssociationAction class is responsible to perform the drop activity for any supported association types to the Order Items table in the Order editor.


Related concepts

Deploy customizations to the IBM Sales Center


+

Search Tips   |   Advanced Search