Backport of MAGETWO-59089 for Magento 2.1: Magento 2.1.1 Problem with change currency #9841
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This problem was discovered in scope of issue #9562
But the fix was already on develop and was fixing another issue: #6746
See the steps below to reproduce the issue we were having which lead me to create this PR.
Since this PR fixes multiple non-related issues, I think you should test this very well. It might even fix other reported issues as well, but it's really hard to tell...
Fixed Issues (if relevant)
Reference to the commit on the develop branch: a9510d3
Manual testing scenarios
curl --insecure https://mydomain/product2.html > correct.html
curl --insecure https://mydomain/product2.html > wrong.html
correct.html
against thewrong.html
:The html files should be identical, but they aren't, because price data of Product1 is cached and then being used in the upsell list when visiting Product2.
In our case, this problem is causing some of the Google indexing services to pick the wrong price for Product2, instead it displays the price from Product1 for Product2 in some of its services (like Google adwords), which makes our client and marketeers really nervous as you can imagine :)