The MDVA-332898 Magento patch fixes the issue where Javascript shows in address at payment. This patch is available when the Magento Quality Patch (MQP) tool 1.0.19 is installed. The patch ID is MDVA-33289. Please note that the issue was scheduled to be fixed in Magento 2.4.3.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.4.1
Compatible with Magento versions:
Magento Commerce and Commerce Cloud 2.4.0 - 2.4.2
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
When checking out with Google Tag Manager (GTM) enabled, Javascript shows in the address field.
Steps to reproduce:
- Enable GTM. See Google Tag Manager in Magento Developer Documentation for details.
- In the storefront, add some products to the cart.
- Check out.
Actual result:
The address section updates but includes a lot of Javascript code text.
Expected result:
Address is shown.
Apply the patch
For instructions on how to apply an MQP patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Apply patches using Magento Quality Patches Tool.
- 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 if patch is available for your Magento issue using Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.