November Happy Hour will be moved to Thursday December 5th.

Custom Promotion in Marketing on Commerce

Vote:
 

Hi to all,

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

1.http://marisks.net/2016/05/24/episerver-marketing-beta-creating-custom-order-promotion/

2.http://www.jondjones.com/learn-episerver-cms/episerver-commerce/using-the-new-promotions-engine-in-episerver-commerce

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.

#187986
Feb 08, 2018 7:13
Vote:
 

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?
#187996
Feb 08, 2018 8:50
Vote:
 

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.

#188041
Feb 09, 2018 10:13
Vote:
 

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. 

http://avensia.com/joel-yourstone/why-isnt-my-promotion-showing/

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!

#188062
Feb 10, 2018 14:02
Vote:
 

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

#188081
Feb 12, 2018 9:53
Vote:
 

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.

#188084
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.