cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OOTB DefaultCommerceCartRestorationStrategy restoreCart Cart currency is not updated

Former Member
0 Kudos
193

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.

Accepted Solutions (0)

Answers (0)