Kemal Taskiran
Kemal Taskiran

Reputation: 311

hybris promotion coupon is not applied to total price

I am adding active coupon with rule. When I am redeeming coupon, I can set coupon and in storefront writes coupon is applied. But total price of cart is not changed. Also when I publish rule, there is no change in total price of cart.

Thanks for responses and I am writing some details about situation:

First of all I added these extensions:

<extension name='rulebuilderbackoffice' />
<extension name='couponbackoffice' />
<extension name='droolsruleengineservices' />
<extension name='ruledefinitions' />
<extension name='promotionengineservices' />
<extension name='couponfacades' />
<extension name='promotionenginesamplesaddon' />
<extension name='promotionengineatddtests' />

Then I made ant clean all, ant initialize and start hybris.

From backoffice:

Create single code coupon (state is active, no date restriction, max redemption for customer is 10, max total redemption is 100),
Create rule (website is default, set priority 500, set as stackable, set rulegrup orderpromotionrulegroup), 
Add to rule condition as coupon code, set coupon code as created coupon code
Add to rule action as fixed discount on cart as 100 TRY
Publish rule to promotion-module, status is published
Promotion module's version is increased but catolog of promotion module is empty I don't know is it important?

In storefront:

I added an item to bag, its price is 338,28 TRY (there is no other discount)
I entered the coupon, 
In the page, says coupon is applied, but total price is didn't change, still 338,28 TRY.

In command line writes,

INFO  [hybrisHTTP17] [AbstractOrderRaoPopulator] Order discount list is empty, skipping the conversion

Upvotes: 1

Views: 3029

Answers (1)

Sebastian
Sebastian

Reputation: 1783

It's hard to say what is going wrong without more details, but a common thing to forget (I do all the time) is to add the websitegroup to the SourceRule to match the website your promotion is targeted for. You would then have to republish the rule.

Also be aware that after your rule is published you have to modify the cart in order to trigger a re-evaluation of promotions. If you simply reload the cart page nothing will change as the promotion calculation is only done when the cart is modified.

If that's not the solution, could you provide more details? Ideally you could post the corresponding DroolsRule's ruleContent attribute (that contains the actual drools syntax being evaluated). Other information such as hybris version, log output etc would be helpful too.

Upvotes: 1

Related Questions