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

OrderForm Total Discrepancy After Upgrading From Commerce 10 to 12

Vote:
 

Hi Community,

We have recently upgraded Episerver Commerce from 10.1.1 to 12.3.0 and have noticed changes with discounts and totals relating to shipping. We have a running promotion, where if a customer spends over 1000, then they will receive free shipping otherwise they will be charged a flat rate of 100 for shipping.

Pre-upgrade, the following values where returned from the checkout process:

  • Cart.ShippingTotal = 0.00
  • Cart.Total = 2285
  • Cart.SubTotal = 2285
  • OrderForm.Shipments.First().ShippingDiscountAmount = 100
  • OrderForm.Total = 2285

Post Upgrade, we receive the following values:

  • Cart.ShippingTotal = 100
  • Cart.Total = 2285
  • Cart.SubTotal = 2285
  • OrderForm.Shipments.First().ShippingDiscountAmount = 100
  • OrderForm.Total = 2385

Does anyone happen to know why the Order Form doesn't seem to be applying the discount to shipping after the upgrade to Epi 12? We are aware there were recent changes to order form calculations, but it was our assumption that the total should still be incorporating the discounted amount.

Thank you in advanced for any assistance you can provide.

#193948
Jun 08, 2018 11:31
Vote:
 

Hi - are you using builtin calculators and promotions, or are you using custom ones? 

#193949
Jun 08, 2018 11:55
Vote:
 

We are using Episervers built in calculators and promotions.

#193950
Jun 08, 2018 11:57
Vote:
 

IOrderGroup.ShippingTotal is the total of shipping cost, without discount

IOrderForm.Total is the total of shipment items + shipping cost, without discount 

IOrderForm.SubTotal is sum of shipment items 

IOrderGroup.SubTotal is sum of IOrderForm.SubTotal 

IOrderGroup.Total is sum of IOrderGroup.SubTotal + shipping cost total + handling cost total, minus order level discount

So the calculation seems to be correct to me. Yes there were changes in the way things are calculated, but it's hard to trace where and why  

#193959
Jun 08, 2018 14:02
* 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.