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
- In the Enterprise Explorer view, navigate to the directory.
- Open the PromotionTypeTemplatePicker.xml properties view definition file, which defines the properties view for the Promotion Type Selector.
-
Locate the following line of code within the file.
<PropertyValuesFilter displayName="${promotionResources.promotion_folder_FreeGiftPromotions}" propertyName="promotionType" values="OrderLevelFreeGift, ProductLevelBuyXGetYFree, CategoryLevelBuyXGetYFree"/>
-
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
"/>