Develop > Presentation layer > Customize promotions > Promotions customization: Management Center
Revert order-level free gift promotions to pre-Version-7 behavior
If you are migrating promotions to Management Center Version 7 and you do not want migrated order-level free gift promotions to use the v7 choice of free gift option, you can disable this option for the site. As a result, migrated order-level free gift promotions will work as they did before migration.
The features of pre-Version-7 of order-level free gift promotions are:
- Customers cannot remove the free gifts from their shopping carts if they do not want the gift
- The promotion can have only one SKU as a gift, although multiples of the SKU are allowed
Procedure
- Navigate to the WC_EAR/xml/config/com.ibm.commerce.promotion-ext/template directory.
- Open the OrderFreeGiftBehaviourControl.xsl file in an editor.
- Locate the following line of code:
<xsl:variable name="preventRemovalOfFreeGiftFromCart">false</xsl:variable>
- Change the value false to true.
- Save the changes.
- Deploy your changes to the production server.