Skip to Content
author's profile photo Former Member
Former Member

Buy X get Y Promotion, Freegift action not applying in cart ?

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 21, 2018 at 12:59 PM

    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,

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.