In this lesson, the Management
Center is modified to include Ranking as a sort criteria in the Order
Search Result action.
For example:
Procedure
- Navigate to the following directory:
- WCDE_installdir\workspace\LOBTools\WebContent\config\commerce\marketing\objectDefinitions\activityBuilder
- Open the OrderSearchResultFlowElementObjectDefinition.def file
and perform the following update:
<PropertyDefinition displayName="${mktMarketingResources.orderSearchResult_orderByField}" propertyName="orderByField" required="true">
<PropertyValue displayName="${mktMarketingResources.displayProduct_manufacturerName}" value="mfName"/>
<PropertyValue displayName="${mktMarketingResources.displayProduct_name}" value="name_ntk"/>
<PropertyValue displayName="${mktMarketingResources.displayProduct_offerPrice}" value="price_USD"/>
<PropertyValue displayName="${extCatalogResources.displayProduct_ranking}" value="customerRanking"/>
</PropertyDefinition>
Note: The property value is configured to be customerRanking
as
a float for display purposes.
- Save your changes and close the file.
- Add
the new property to the custom bundle or create your own bundle in
the following file:
- LOBTools\WEB-INF\classes\com\mycompany\commerce\client\lobtools\properties\CatalogLOB_en_US.properties
- Save your changes and close the file.