Enabling the best deal feature for promotions

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

  1. Open HCL Commerce Developer and switch to the Enterprise Explorer view.
  2. Open the promotion engine configuration XML file in an editor:

    workspace_dir/WC/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml

  3. 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>
    …
    1. To enable the best deal feature, change the value of the <EvaluationFlowControl> element to 1.
    2. 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.
  4. Save and close the file.