Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Promotion calculation




I have a question about the best practice in coding a custom promotion for EPiServer 10, Commerce 10.8.0.

The promotion needs to provide a user specific percentage discount (e.g. 10 pct. discount) on the order,
if a specific user specific combination of products are added to the basket alongside a campaign code.

So I need 

  1. to able to inspect the line items of the basket
  2. to see if a campaign has been applied
  3. apply an overall percentage discount to the basket

I would be pleased if you could point me in the right direction, i.e. api/classes and/or documentation?



May 18, 2018 9:06

Hi Michael

Would the built in discount “Buy products and get discount on order” suit your needs?


May 18, 2018 10:07

If you are interested in more techincal detail, this can be a start: 

So basically in the processor you can have almost any logic you want. 

May 18, 2018 11:43
* 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.