Reference > Shop flow URLs > Order Management subsystem URLs > Order task commands


CalculateOrderCmd task command

The CalculateOrderCmd task command handles free gifts and implements the core logic of calculation.


Task command

CalculateOrderCmd


Implementation class

CalculateOrderCmdImpl


Commands called

DoInventoryActionCmd

OrderItemUpdateCmd

OrderItemAddCmd

OrderItemDeleteCmd


Possible callers

OrderCalculateCmdImpl

PrepareOrderCmdImpl

OrderProcessingHelper


Behavior

If doFreeGift is true:

If the PromotionsEngine component is enabled and freegift is to be refreshed:

For each CatalogEntry to be added to the Order, if ATP is disabled and there is insufficient inventory:

Remove free gifts listed in the deleting list

Update the quantities of free gifts listed in the updating list

Add the new free gifts listed in the adding list

Calculate the product total of the order

Initialize the specified CalculationUsages that are enabled

Apply the specified CalculationUsages that are enabled

Update the SubOrders for the Order unless that feature is disabled

Summarize the specified CalculationUsages that are enabled


+

Search Tips   |   Advanced Search