-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Convert MSRP currency of configurable product options #27446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert MSRP currency of configurable product options #27446
Conversation
The MSRP of configurable products is updated in Javascript when an option is chosen. Javascript uses an object with prices of the options. The prices in this object are converted to the chosen currency. MSRP prices however were not converted, leading to the price being displayed in a wrong currency.
Hi @ashokadewit. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@magento create issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ashokadewit could you please cover changes with the automated tests?
I will take care of test coverage. |
… feature/convert-configuable-product-msrp
@magento run all tests |
Hi @sidolov, thank you for the review.
|
@ashokadewit thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository. |
✔️ QA Passed Manual testing scenario:
Before: ✖️ The MSRP is not converted but it is labeled as the chosen currency After: ✔️ The MSRP is converted to the chosen currency |
abf7ce9
to
d07e0a9
Compare
@magento run all tests |
Hi @ashokadewit, thank you for your contribution! |
Description
The MSRP of configurable products is updated in Javascript when an option is chosen. Javascript uses an object with prices of the options. The prices in this object are converted to the chosen currency. MSRP prices however were not converted, leading to the price being displayed in a wrong currency.
Manual testing scenarios
Expected result: The MSRP is converted to the chosen currency
Actual result: The MSRP is not converted but it is labeled as the chosen currency
Note that the MSRP is configured in euro but displayed in dollars with the euro amount.
After applying the change the MSRP is converted:
Rates in table directory_currency_rate:
Resolved issues: