Migrate > Take the first steps after WebSphere Commerce migration > Migrating promotions
Sample promotionMigrationConfig XML file
The promotionMigrationConfig.xml file is used by the promotion migration utility to configure the mappings between default promotion types and their corresponding XSL templates. These templates are used to transform the runtime promotion XML to an intermediate XML containing the data needed to populate the Management Center promotion database tables.
The promotionMigrationConfig.xml file is located in the WC_INSTALL/migration/optional/components/component-services/subcomponents/promotion/config directory. The XSL templates are in the WC_INSTALL/migration/optional/components/component-services/subcomponents/promotion/templates directory. Do not modify the promotionMigrationConfig.xml file.
Sample
The following sample illustrates the default promotionMigrationConfig.xml file:
<?xml version="1.0" encoding="UTF-8"?> <PromotionMigrationTemplates> <TemplateMapping> <PromotionType>OrderLevelFreeGift</PromotionType> <Template>OrderLevelFreeGiftTemplate.xsl</Template> </TemplateMapping> <TemplateMapping> <PromotionType>OrderLevelFixedShippingDiscount</PromotionType> <Template>OrderLevelFixedShippingDiscountTemplate.xsl</Template> </TemplateMapping> <TemplateMapping> <PromotionType>CategoryLevelBuyXGetYFree</PromotionType> <Template>CategoryLevelBuyXGetYFreeTemplate.xsl</Template> </TemplateMapping> <TemplateMapping> <PromotionType>CategoryLevelSameItemPercentDiscount</PromotionType> <Template>CategoryLevelSameItemPercentDiscountTemplate.xsl</Template> </TemplateMapping> <TemplateMapping> <PromotionType>ItemLevelBuyXGetYFree</PromotionType> <Template>ItemLevelBuyXGetYFreeTemplate.xsl</Template> </TemplateMapping> <TemplateMapping> <PromotionType>ItemLevelValueDiscount</PromotionType> <Template>ItemLevelValueDiscountTemplate.xsl</Template> </TemplateMapping> </PromotionMigrationTemplates>
Related tasks
Migrate promotions built on default promotion types: complete migration
Migrate promotions: partial migration