Enable the best deal feature for promotions
When we enable the best deal feature for the site, the promotion engine automatically calculates the best deal for orders that qualify for more than one promotion in the same promotion group with the same priority. We can also minimize the performance impact of the best deal feature by specifying an upper limit for the number of promotion sequences to evaluate for each order.
Before starting
Ensure that you understand the best deal feature and its potential performance impacts:
Task info
This procedure affects promotions created in Management Center only.
Procedure
- Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.
- Open the promotion engine configuration XML file in an editor:
workspace_dir/WC/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml
- Within the <DefaultBehavior> element, locate the lines of code labeled 1 and 2 in the following example:
<DefaultBehavior> <StatelessInvocation>true</StatelessInvocation> <CheckTargetingAtRuntime>true</CheckTargetingAtRuntime> <SkipTargetingOnCodeEntered>true</SkipTargetingOnCodeEntered> <PriceAdjustmentBasedOnStandardOfferPrice>true</PriceAdjustmentBasedOnStandardOfferPrice> <EvaluationFlowControl>0</EvaluationFlowControl> 1 <SequenceCombinationLimit>50</SequenceCombinationLimit> 2 <Debug>false</Debug> </DefaultBehavior> …
- To enable the best deal feature, change the value of the <EvaluationFlowControl> element to 1.
- Optional: To change the upper limit for the number of sequences to evaluate for each promotion, change the value of the <SequenceCombinationLimit> element to a different number.
- Save and close the file.