on 2020 Apr 22 8:27 PM
We are in 1905 code base with Multiple currencies involved. and In DefaultCommerceCartRestorationStrategy.restoreCart() method, there is a piece of code that updates the cart's currency based on the session currency, but this line is after getModelService().save(cartModel);
Due to which the even though it triggers the cart to be updated based on the session currency, it is never saved and the subsequent cart calculation fails.
Is there a reason why the code is in this order ?
public CommerceCartRestoration restoreCart(final CommerceCartParameter parameter) throws CommerceCartRestorationException
Ln#69 getModelService().save(cartModel);
Ln# 71cartModel.setCurrency(getCommerceCommonI18NService().getCurrentCurrency());
Please let me know as we are running into issues.
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.