You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.
If you have "display currency" on, and product variants, changing the currency does not update the price or the currency code on the product detail page. Instead it shows the default currency price and code. The currency code and price show correctly on all other pages.
How to Replicate:
ensure you have a product with multiple variants and with the prices set for each currency
Turn on "display currency" in the general configurations
go to the product detail page and switch to the non-default currency
the price and variant prices will show in the default currency. the currency code will be the default currency.
Note:
adding the product to cart at this point will add the product at the right price for the selected currency. I've removed all non-essential extensions and the problem still exists so it's not a conflict issue.
Expected Result
Display the price and variant price(s) in the correct currency price with the correct currency code
I am defacing the _cart_form view (setting some css classes, as well as replacing the add_to_cart div), but I did a clean install with no overrides and the problem exists in the vanilla version too. This only
happens if you have multiple variants. If you only have a master product it correctly changes.
Hi I just ran into the same problems. And it seems that there was a bug in a Spree v 2.4.
It was solved in this commit: spree/spree@a86a20e.
So the solution for you is to update your deface override according to the commit.
Use variant.price_in(current_currency).money.
Issue:
If you have "display currency" on, and product variants, changing the currency does not update the price or the currency code on the product detail page. Instead it shows the default currency price and code. The currency code and price show correctly on all other pages.
How to Replicate:
Note:
adding the product to cart at this point will add the product at the right price for the selected currency. I've removed all non-essential extensions and the problem still exists so it's not a conflict issue.
Expected Result
Display the price and variant price(s) in the correct currency price with the correct currency code
Spree, Rails, Gems:
Spree 2.2-stable, Rails 4.0.3.
The text was updated successfully, but these errors were encountered: