commercetools / commercetools-sunrise-java

The next generation shop framework by commercetools
https://demo.commercetools.com
Apache License 2.0
46 stars 35 forks source link

Trigger recalculate cart #673

Open lauraluiz opened 7 years ago

lauraluiz commented 7 years ago
Oehmi commented 6 years ago

@lauraluiz Recalculation is also done when merging carts such as an anonymous cart with a custom cart, and @idamia can probably give you a good insight on other use cases when to recalculate.

https://dev.commercetools.com/http-api-projects-carts.html#recalculate

lauraluiz commented 6 years ago

If necessary, only at the very end before the order creation can be called.

lauraluiz commented 6 years ago

A product discount will only appear in the cart's products once an operation is applied (e.g. increasing quantity). Until then, no discount appears.