Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Need clarification on the way CalculateDiscountActivity works



I am using EPi Commerce 7.5

I need clarification on how the CalcualteDiscountActivity works.

If we have 1 lineitem level promotion and 1 order level promotion


LineitemLevel promotion

If Catalog X is added to cart then apply 10% discount

Order Level Promotion

If Order Subtotal is >1000$ the apply 10% discount.

If we have Order Subtotal as 1002$ by adding Catalog X to the cart, then once after the lineitem level promotion is added discount will be 100.2$.

So will the order subtotal be deducted before validating Order level promotion? i.e; 1002$-100.2$ =901$

Or will all the promotions will be validation against subtotal amount 1002$.

I Suspect all the promotions will be validated first. Then start getting applied one by one promotion.

Please let me know if my understanding is correct.


Manjeera T

Sep 21, 2017 14:12

In cases such as this I almost always answers: set it up and test it ^^

It isn't that hard to setup and you will get that safe feeling of actually having seen it yourself.

Of the top of my head i would say it is deducted from the subtotal before the order level promotion evaluates.

This is of course subject to change with different versions and the actual implementations of the promotions can also alter this behaviour.

Sep 21, 2017 16:02

Hi Manjeera,

Ppromotion will be evevulated based on the priority. 

Better to give the highest priority to Item level promotions, so they will be evaluated first whn you are combining the item level and order level promotions.  


Venkata Phani kumar R

Sep 25, 2017 8:28

Both Erik and Venkata are correct, and that works the same way in the new promotion system as well.

The promotions are applied in the priority order (higher priority = applied first). The next promotion will be applied with the result of the previous promotion. 

Sep 25, 2017 9:41


This concept is explained in the user guide:

Sep 25, 2017 16:38

Manjeera is talking about the old promotion system, so the link provided is not exactly what she/he wants. (They might behave the same, but that's not guaranteed)

Sep 25, 2017 16:40

They don't behave the same: in the old promotion system item-level discounts was always applied before order-level ones, the priority only changed the ordering within each level of discounts.

Sep 25, 2017 16:44

Good point Erik - yes, that's true. The old promotions system applies promotions in order of Lineitem level promotions, order level promotion, and finally shipping promotion.

In each type of promotion, the order of promotions to be applied is priority, and the lower priority promotion is applied on the result of the higher priority promotion (if it is not excluded itself)

Sep 25, 2017 16:50

Yep but for the life of me i can't remember if the subtotal was actually updated between each promotion validation as the OP desired.

I recall having issues with the subtotal but no details.

Sep 25, 2017 16:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.