Adding the new promotion type to the Promotion Type Selector

In this lesson, you add your new promotion type to the Free gift promotions folder in the Promotion Type Selector so business users can select the template when starting a new promotion.

Procedure

  1. In the Enterprise Explorer view, navigate to the LOBTools > WebContent > WEB-INF > src > xml > commerce > promotion > propertiesViews directory.
  2. Open the PromotionTypeTemplatePicker.xml properties view definition file, which defines the properties view for the Promotion Type Selector.
  3. Locate the following line of code within the file.
    
    <PropertyValuesFilter displayName="${promotionResources.promotion_folder_FreeGiftPromotions}" 
    propertyName="promotionType" values="OrderLevelFreeGift, ProductLevelBuyXGetYFree, CategoryLevelBuyXGetYFree"/>
  4. Add your custom promotion type to the Free gift promotions folder by adding the object template name for your custom promotion type (ProductLevelFreeGift) to the list of values.
    
    <PropertyValuesFilter displayName="${promotionResources.promotion_folder_FreeGiftPromotions}" 
    propertyName="promotionType" values="OrderLevelFreeGift, ProductLevelBuyXGetYFree, CategoryLevelBuyXGetYFree, ProductLevelFreeGift"/>

Results

In this lesson, you added your custom promotion type to a folder in the Promotion Type Selector window. In the next lesson, you register a new serialization JSP file to convert the promotion authoring elements from the PX_ELEMENT and PX_ELEMENTNVP tables into the Management Center user interface for the Purchase Condition and Reward section.