Magento2: Magento 2.1.1 Problem with change currency

Created on 25 Sep 2016  路  16Comments  路  Source: magento/magento2

Preconditions
Magento 2.1.1
Created two currencies (United Arab Emirates Dirham and Qatari Rial)
Cache is enabled

Steps to reproduce
Open category page on frontend
Change currency

Expected result
Currency is changed on product listing

Actual result
Currency do not changed. Problem with FPC(I have refreshed FPC, the currency is work fine. But if I changed currency one more, it is do not working)

FrameworCache Ready for Work bug report

Most helpful comment

is this issue solved?

All 16 comments

@Omar-Oleh have you created currency rates?
What is base currency for your store?

@Omar-Oleh reproduced. Answers to that questions are not necessary. Thank you for reporting issue!

Our internal issue is MAGETWO-59089.

We're experiencing the same when switching between GBP and JPY currencies:

image

image

Some workarounds that I know of to prevent this issue from occurring is to:

  1. Disable the block cache (BLOCK_HTML)
  2. Edit Magento\Framework\Pricing\Render\PriceBox and either:

    • set the DEFAULT_LIFETIME to 0, or

    • just force getCacheLifetime to return 0

I tried writing an extension to override this behaviour, to no avail (I might be doing something wrong LOL). But it still doesn't solve the root cause of the problem.

Fix is delivered to mainline. Closing the issue.

@SerhiyShkolyarenko is there a commit reference?

There we six commits for this issue: 8ec49df, 027491e, be4d557, 0d0e683, b1066bf, e908e6c

Hi @SerhiyShkolyarenko,

Noticed another issue when selecting product variants using the swatches.

  1. GBP:
    image
  2. Select a product variant while in GBP:
    image
  3. Then, switch currency to JPY:
    image
  4. Upon selecting a product variant, the price reverts back to the GBP amount but with JPY currency symbol:
    image

@eldonbite thank you for the notice.
It looks like a different issue. Could you please create a separate issue for it?

Hi @SerhiyShkolyarenko,

I created an issue for the problem described above:

7371 Wrong price upon selecting product options after switching currency

Thanks and regards,
Eldon

thanks @eldonbite!

Hi @eldonbite @Omar-Oleh @Ctucker9233
I have created a small cript to override FinalPriceBox Block
Now the problem is resolved. Please try my code in below link
https://github.com/duytrinhit/magento2/tree/master/app/code/Balance/Catalog

@SerhiyShkolyarenko, could you please reopen this until the fix is delivered into a release? Thanks in advance.

The issue is clearly reported for 2.1.x. It is only reasonable to expect this fix in a 2.1.x release before closing the issue.

is this issue solved?

Internal ticket to track issue progress: MAGETWO-69665

THIS SOLUTION WORK FOR ME: First i need select the country of the currency that i need, in Store Configuration > General > Store Information > Country

After i can change the currency in Currency Configuration

Was this page helpful?
0 / 5 - 0 ratings