Should this information be displayed on the shopping cart page or in summary order panel on the checkout page?
Or is it just to persist the information?
I should persist and display the information on the frontend.
We're thinking about putting the checkups and validations in the ShippingMethodCalculator chain.
I've done some tests and it hadn't any blindspots yet.
I think there are other pipelines that would fit better in this demand, like overriding addItemTocart(), removeItemFromCart() or simply updateCart() and updateOrder(), but, since we have strong customization in the application, those tries didn't worked for us.
1 person found this helpful
Really V.S, there are several ways for this solution.
The idea of changing the updateOrder seems to cover most if not all situations, since the methods I've seen call an updateOrder, like addItemFromOrder and removeItemFromOrder, AddItemToCartServlet.
The updateOrder call a pipeline named SaveOrderObject.
Then extends the /atg/commerce/order/processor/SaveOrderObject and implment your logic for the property additionalShippingTime and save in the order.
Does it make sense to you?