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

Need results stored on relevant objects, to avoid unnecessary calculations

Fixed in

EPiServer.Commerce 12.0.0

(Or a related package)

Created

Oct 12, 2017

Updated

Dec 19, 2023

Area

Core

State

Closed, Acceptance tests pass


Description

Previously, calculators recalculated prices and taxes even if an order had no changes or if the changes did not affect results. This practice is inefficient, especially when using an external tax service. It also creates problems with old orders, deleted products, expired promotions, new promotions, etc. Now if an order has no changes that affect results, no recalculations take place. Instead, the previously-calculated values are returned. Another improvement is that a new property is available to store TaxCategoryId for a line item. So, even if a product is deleted, Commerce retains tax information for processing the order later.