Administer > Manage WebSphere Commerce features > Promotions > Configure the promotion engine


Enable the best deal feature for promotions

When you 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. 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:

This procedure affects promotions created in Management Center only.


Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.

  2. Open the promotion engine configuration XML file in an editor:

    WC_EAR/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.

  5. Restart the WebSphere Commerce server.

  6. Deploy the configuration changes to the production environment.


+

Search Tips   |   Advanced Search