Friday, 11 April 2014



How do I disable the Promotion Engine in Websphere Commerce?
   
You can disable the Promotion Engine either at the store level or instance level.

Store level:
Not passing the calusage id -1 to OrderCalculate, which represents the calculation usage for discounts, means that the promotion engine will not be invoked.

Search JSPs and custom code for the store in which the Promotion Engine is to be disabled.

Remove references where calusage id -1 is passed to the OrderCalculate command.

In addition, the calusage must also be disabled in STENCALUSG.

Execute the following sql to disable calusage -1 from STENCALUSG:

      UPDATE stencalusg set USAGEFLAGS = 0 where storeent_id=<your_storeent_id>


Instance Level

Modify the instance xml file as follows.

The instance xml is located in <WC_install>/instances/<instance>/xml/<instance>.xml


1. Search for RLPromotionComponentConfiguration and set the enable parameter to false.
After the change the line should look as follows:
<component
 compClassName="com.ibm.commerce.tools.epromotion.RLPromotionComponentConfiguration"
enable=" false" name="Rule-based Discount Configuration">


2. Search for Discount RulesBasedDiscount="true" and set this to false.
After the change the line should look as follows:
<Discount RulesBasedDiscount="false" display="false"/>


3. Search for component enabled="true" name="RulesBasedDiscount" and disable the component.
After the change the line should look as follows:
<component enabled="false" name="RulesBasedDiscount"/>
 

Once the changes are complete, execute the UpdateEAR ant task to have the change reflected on the application server.

No comments:

Post a Comment