When you enable the best deal feature for your 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. You 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 you begin
Ensure that you understand the best deal feature and its potential
performance impacts:
About this task
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:
WC_eardir/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.
- Restart the WebSphere Commerce server.
- Deploy
the configuration changes to the production environment.