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
About this task
Procedure
- Open HCL 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 to1
. - 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.
-
To enable the best deal feature, change the value of the
- Save and close the file.