Try our conversational search powered by Generative AI!

Custom Promotion in Marketing on Commerce


Hi to all,

I am trying to create a sample model in the Custom promotion. So that I refer the following blogs.



There is no error in the code. I followed the Blog and Created an Additional Discount promotion and also added this promotion to Campaign.

The promotion processor may not hit while debugging the code. Are there any changes to apply? I am using Episerver Commerce 11.

Thank you In advance.

Feb 08, 2018 7:13

There are a lot of reasons why the promotion egine would decide not to select a promotion to process. And even if it selects a promotion, the processor may not always run Evaluate method. So, quick checklist:

  1. Is the SalesCampaign that has the Promotion as child in the same market as the cart?
  2. Does the promotion have any coupon code that isn't added to the OrderForm?
  3. Does the promotion have everything filled in in its conditions, including correct currency?
Feb 08, 2018 8:50

Hi Joel,

Thank you for your replay.

I checked all the items that you had mentioned.

I didn't apply any coupon code for a promotion. I checked markets and currency also.

But still, now I didn't get the promotion processor hit to check whether the custom promotion runs properly or not.

Feb 09, 2018 10:13

Hey Vetrivel,

I made a blog post about these issues, seeing as I've have seen them quite often! Take a look and do tell me if you can find your solution there.

If none of those tips work - please show me code for:

  1. Running promotions on your cart
  2. The promotion data object
  3. The promotion processor
  4. (If you have implemented your own) PromotionEngine

And the Commerce version!

Feb 10, 2018 14:02

Thank you, Joel, I will see your blog and let you know.

Feb 12, 2018 9:53

Thank you, Joel, I referred your Blog and also found my mistake. 

I didn't add the processor for each promotion types and also I made a mistake on the Coupon code.

My filter may not allow accessing the promotion processor due to the coupon code.

I changed my code and the promotion processor hit on Debugging.

Thank You.

Feb 12, 2018 11:24
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.