on 08-13-2018 1:17 PM
Hi Experts,
Help Needed
Buy X get Y Promotion, Free gift action not applying in cart. Its throwing exception while adding the product X to cart.
below is the exception
ices.rrd.RuleGroupExecutionRRD@612a4462[code=defaultRuleGroup-1816fc26-12c1-4770-acc6-87de08f7e2e2]]. org.kie.api.runtime.rule.ConsequenceException: Exception executing consequence for rule "6770a218-0d74-436d-88e0-cce36ad5240f" in de.hybris.platform.droolsruleengine: [Error: ruleFreeGiftAction.executeAction(new DefaultDroolsRuleActionContext(variables, kcontext), ["product":"8043567", "quantity":new Integer(1)]): null] [Near : {... Map variables = [ "de.hyb ....}] ^ [Line: 1, Column: 1] at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39) ~[drools-core-6.3.0.Final.jar:6.3.0.Final] at org.drools.core.common.DefaultAgenda.fireActivation(DefaultAgenda.java:1083) ~[drools-core-6.3.0.Final.jar:6.3.0.Final]
Rule is getting published successfully, Correct message is getting displayed in PDP as well
regards, Ankit
Hi ,
You might want to use implementation involving “Percentage discount on partner products”/“Percentage discount on products” actions instead of “Free gift” action in Conditions&Actions section in properties of your promotion . It should work fine.
Hope that helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.