|
|
Hi
I got an error while adding product into cart (Could not find a valid price for the product with ID [XX-XXXX], not adding to cart) for this i check that my store default currency is different from currency set in general.properties file and i change the currency in property file and it works fine.Now the issue is that i use multi tenant stores with multi currency for the stores those have default currency (INR) same as currency(INR) in general.property file not give me error while adding product into cart.But the stores those have different default currency gave error write above.To solve this error i do changes in
ShopppingCartItem.java
method - updatePrice
if (cart.getOrderType().equals("PURCHASE_ORDER")) {
priceContext.put("currencyUomId", cart.getCurrency());
here currencyUomId is put into map only for purchase order.I set this (priceContext.put("currencyUomId", cart.getCurrency());)
out form if condition.and now it works fine.I want to know the changes that i do are right?Please help me to know this.
Thanks.
|