Episerver 10: Combining multiple promotion coupon in the cart throws error

Member since: 2014

We have two coupons,

  1. one 30% of a lineItem - lineitem coupon
  2. One is 100% off on shipping charge. - shipping coupon

We have total based shipping. So this is causing an issue.

When we apply both this coupon to the cart we get internal server error. Looking more details into error, it seems this is what is happening.

Total before discount $53.44 / This puts you in shipping cost bracket of $9.99 

So when you apply SHIP2 coupon the shipment discount = 9.99 

Your total shipping charge = 9.99 -9.99 = 0.00 

Applying coupon MPMPA30 gives you 30% off. So now your total is 53.44 - 16.03 = 37.41 

So you are now in shipping cost bracket of 5.99 

But the SHIP2 discount was already calculated as 9.99 

So shipment charge = 5.99-9.99 = $-4.00 (negative) This throws error

Is there any way you can decide the priority/sequence in which the coupons are applied, with epi 10 promotion module?

#181154 Aug 09, 2017 19:56
  • Member since: 2011


    You can set the priority of promotions, so promotion with coupon A can be processed in promotion with coupon B.

    However this sounds like a bug for me. What version are you using? Would you mind trying Commerce 10.8.0 to see if it's fixed? 

    #181157 Aug 10, 2017 0:28
  • Member since: 2014

    Hi Quan!

    For this particular project we are using Episerrver Commerce 10.4.3

    How can we set the promotion priority in new promotion module?

    Do you remember if this is a known bug, and if it fixed in a later version?

    #181174 Aug 10, 2017 16:09
  • Member since: 2014


    This page explains how a merchandiser would apply discount priorities: http://webhelp.episerver.com/latest/commerce/marketing/prioritizing-discounts.htm.

    #181175 Aug 10, 2017 16:52
  • Member since: 2014

    Thank you Bob!

    That helped.

    #181177 Aug 10, 2017 18:28
  • Member since: 2014

    Hi Quan

    So per Bob above I did try to adjust the coupon priority and it worked for us.

    But then we upgraded to 10.8.0 and it stopped working again. As you mentioned above 10.8.0 could fix it. It seems liek it broke it rather. Any insight on this. 

    Our customer often use promotions in combination with shipping promotions. And they have order total range based shipping charges.

    Meanining 0-25 order total - Shipping charge = 5.99
    25.01-50  order total - Shipping charge = 9.99

    50.01-75  order total - Shipping charge = 14.99

    75+  order total - Shipping charge = Free

    So if one promotion  changes your shipping threshold, and you are using free shipping coupon it breaks the cart.


    #182510 Sep 21, 2017 20:54
  • Member since: 2016

    Could you tell me how it breaks the cart? Which promotions are applied and what items do you have in the cart etc? 

    #182515 Sep 21, 2017 22:59
  • Member since: 2014

    I have given the details in the first discussion on this thread. Please let me know if you need anything else

    #182516 Sep 21, 2017 23:06
  • Member since: 2016

    It sounds very much as the shipping discount has higher priority than the lineitem discount. Is that the case perhaps? 

    #182528 Sep 22, 2017 8:41
  • Member since: 2014

    It is not the case. We moved the shipping discount all the way down.

    #182556 Sep 22, 2017 15:42
  • Member since: 2014

    Hi all

    This is still an issue for us. We created a ticket but couldn't get this resolved yet. Any of you have any more insights on this?

    We should be able to use shipping coupon with other promotions. 

    Please note: that is works fine. Except that when the shiiping charge changes after promotion 1 is applied, the cart breaks. This is due to tiered shipping cahrge. We have shipping based on order total.

    My quick question is - how are you guys able to verify the priority of the shipping coupon is workign fine when the shipping charge is a fixed amount. The ticket is claiming the issue is in our code. If that was the case we would be able to debug it. 

    The cart fails at the first instance of tryign to fetch cart total. 

    Really really appreciate any help.

    #183505 Oct 16, 2017 17:21
First   1 2 3   Last