Open jameshilliard opened 10 years ago
I made a new test store and it would appear there is some sort of conflict with the spree_fancy theme https://github.com/spree/spree_fancy
whops, don't forget to run rails generate spree_multi_currency:install
, fixed it for me by appending the assets to the pipeline :+1:
Seems I was having issues with products in cart blocking currency change. At least if those products didn't have an alternate currency set.
yes, when a cart item is not available on the requested currency an exception is raised, like:
RuntimeError (no RUB price found for Ruby on Rails Tote (ROR-00011)):
and the submit will silently fail.
we need a strategy to handle this situation, like removing the product from the cart and/or display a proper message to the user.
@priyank-gupta @damianlegawiec Currently after user updates currency, we are raising exception for line items that do not have price with selected currency. This tends to mislead the user. I think we should show unavailability error for the line item and keep the currency unchanged. What are your thoughts for this?
@aishmita-aggarwal Yeah, unavailability error is good than raising exceptions. @damianlegawiec Thoughts?
I think we should show unavailability error for the line item and keep the currency unchanged.
@aishmita-aggarwal You mean something like If you want to change currency, you need to remove these products from cart: (list)
?
I think it's better than just removing products withproper message. @damianlegawiec What's your opinion?
"I think it's better than just removing products withproper message."
@Mafi88 Those variants do not have prices with the updated currency. So are you suggesting that we should remove the unavailable items and just notify the user?
@priyank-gupta @damianlegawiec ?
@aishmita-aggarwal No, I think message like this: If you want to change currency, you need to remove these products from cart: (list)
is better.
gemfile.lock https://gist.github.com/jameshilliard/bcca2e8b9fc15e213c9d steps to reproduce: enable multi currency support allow user to change currency select alternate currency using dropdown menu currency does not update when selecting new currency