The MDVA-33970 Magento patch solves the issue where a Dollar ($) sign was shown instead of the localized currency in a credit memo. This occurs when a Website scope is used for a Price attribute.
This patch is available when the Magento Quality Patch (MQP) tool 1.0.15 is installed. Please note that the issue is scheduled to be fixed in Magento version 2.4.3.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.3.4-p2
Compatible with Magento versions:
Magento Commerce Cloud and Magento Commerce 2.3.4 - 2.4.1-p1
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches status
.
Issue
Preconditions:
For this example, these settings are used:
- 2 Websites exist - each has a Store and a Store View.
- The Default Config has the Singapore Dollar as Currency (Stores > Configuration > General > Currency Setup):
- Base Currency = Singapore Dollar
- Default Display Currency = Singapore Dollar
- Allowed Currencies = Singapore Dollar
- Website 1 has a Default Config.
- Website 2 has the Malaysian Ringgit as Currency:
- Base Currency = Malaysian Ringgit
- Default Display Currency = Malaysian Ringgit
- Allowed Currencies = Malaysian Ringgit
- Go to Stores > Currency Symbols, and Set:
- MYR (Malaysian Ringgit) = RM
- SGD (Singapore Dollar) = SGD (Use Standard = Checked)
- Some Product exists.
Steps to reproduce:
- Make an Order from the Website 2 (you can set up it as Default in order to avoid additional settings).
- Login to Admin.
- Open the newly created order.
- Check that the Currency Symbol = RM.
- Create an Invoice.
- Check that the Currency Symbol = RM in the invoice.
- Create a Credit Memo.
- Check that the Currency Symbol = RM in the Credit Memo.
- Open the Credit Memos tab in Order.
- Check the Currency Symbol in the grid.
- Open Sales > Credit Memos.
- Check the Currency Symbol in the grid.
Expected results:
The correct localized currency symbol is used, as expected.
Actual results:
The Dollar ($) sign is used, even though it is not setup in the Admin settings.
Apply the patch
To apply individual patches use the following links depending on your Magento product:
- Magento Commerce: DevDocs Software Update Guide > Apply Patches.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply Patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check patch for Magento issue with Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.