Skip to content
This repository was archived by the owner on Feb 27, 2021. It is now read-only.

Currency select drop down does not auto-update #24

Open
jameshilliard opened this issue Jul 10, 2014 · 9 comments
Open

Currency select drop down does not auto-update #24

jameshilliard opened this issue Jul 10, 2014 · 9 comments

Comments

@jameshilliard
Copy link

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

@jameshilliard
Copy link
Author

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

@masterkain
Copy link

whops, don't forget to run rails generate spree_multi_currency:install, fixed it for me by appending the assets to the pipeline 👍

@jameshilliard
Copy link
Author

Seems I was having issues with products in cart blocking currency change. At least if those products didn't have an alternate currency set.

@alepore
Copy link
Member

alepore commented Jan 9, 2015

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.

@aishmita-aggarwal
Copy link
Contributor

@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?

@priyank-gupta
Copy link

@aishmita-aggarwal Yeah, unavailability error is good than raising exceptions.
@damianlegawiec Thoughts?

@Mafi88
Copy link

Mafi88 commented Mar 1, 2016

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?

@aishmita-aggarwal
Copy link
Contributor

"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 ?

@Mafi88
Copy link

Mafi88 commented Mar 6, 2016

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants