Try our conversational search powered by Generative AI!

Commerce 11 rounding issues after a cart validation


I found a strange issue which didn't happen in Commerce 10.

It happens when:

  1. I have a discount on the cart and calculating it produces a number with three or more decimal places. For example, item price - 34.55 with 10% discount produces the discount 3.455. Episerver rounds it to 3.45 and it is fine. The total then is 31.1.
  2. Before the checkout, I am running a cart validation like in the Quicksilver. After validation the total changes to 31.095.
  3. Once I save the cart, it changes back to 31.1.

In the Commerce 10, it did not change the total to the unrounded version after the validation.

Is this correct behavior?

Sep 08, 2017 16:33
* 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.