Open zyferdigital opened 10 years ago
The issue is probably related to the fragment caching needing to switch based on current currency, which I thought I had fixed. Are you overriding the view templates at all? It should cache on currency like: https://github.com/spree/spree/blob/master/frontend/app/views/spree/products/show.html.erb#L1
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: https://github.com/spree/spree/commit/a86a20ea3c114a859e1e7628304ddf5dfaf60af7.
So the solution for you is to update your deface override according to the commit.
Use variant.price_in(current_currency).money
.
This issue does not exist in master.
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.