[Backport] Fix cache issue for currencies with no symbol#15781
[Backport] Fix cache issue for currencies with no symbol#15781dmytro-ch wants to merge 2 commits intomagento:2.1-developfrom
Conversation
…n order to fix the cache issue for currencies with no symbol
|
Hi @orlangur, thank you for the review. |
|
Hi @dmytro-ch , we found an issue in current implementation: Price for configurable product isn't displayed correct on Product Detail Page. Steps to reproduce: Set Magento to use the following currency setup: Expected result: Actual result: Notice. If you select the only product-option available, the price should change to 6.10. |
|
@sidolov as this PR is just a backport, did mentioned case worked fine on 2.2? |
|
@orlangur , yes, this case works on 2.2. Looks like in 2.2 release line additional fix was delivered in the scope of another task. |
|
Hi @sidolov, thank you for the detailed way to reproduce. I could also reproduce the issue in Thanks. |
|
Ping @sidolov :) |
|
Hi @dmytro-ch , I think if issue not reproducing in latest releases we should leave it closed. For 2.1 version the better way will be to found a complete fix for all cases, but it may be difficult to find it |
|
Closing due to inactivity. Feel free to reach me out anytime later if you wish to continue work on this pull request and it will be reopened. |
Original PR: #13894
Description
Using getCurrencySymbol() leads to a bug for currencies where there is no currency symbol - cache ends up being non-unique. Using currency code for caching is a more foolproof way.
The issue has been partially fixed by #13894. (
\Magento\ConfigurableProduct\Block\Product\View\Type\Configurable)Manual testing scenarios
Contribution checklist