The MDVA-31007 patch solves the issue where custom address attributes are not correctly displayed in the order details page in the My Account area and in the backend (in the Sales > Orders location). This patch is available when the Magento Quality Patch (MQP) tool v.1.0.7 is installed. Please note that the issue is scheduled to be fixed in Magento version 2.4.2.
Affected products and versions
- The patch was designed for Magento Commerce Cloud 2.4.0.
- The patch is also compatible with Magento Commerce and Magento Commerce Cloud 2.3.5 - 2.3.5-p2 and 2.4.0 - 2.4.0-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
Steps to reproduce:
- Login to Admin backend.
- Navigate to Stores > Attributes > Customer Addresses.
- Create 2 attributes:
- Set input type: Drop-down.
- Set input type: Text.
- Navigate to Stores > Configurations > Customer > Customer Configurations.
- Select Scope as Default Store view.
- Expand the Address Template section. Update Text, Text One Line, and HTML, to include the two custom attributes above:
{{depend testdropdown}}Dropdown: {{var testdropdown}}{{/depend}} {{depend testtext}}Text: {{var testtext}}{{/depend}}
- Open Storefront.
- Create and Log in with a user.
- Go to My Account > Address book, and add a new address (fill in the two custom attributes).
- Add a product to the cart, and place an order.
- In the order success page, click on the Order number link.
- On the order details page, observe the Order Information section.
- Go to Backend > Sales > Orders, click on the above order, and observe the Address information section.
Expected results:
On both frontend and backend, the billing and shipping address are displayed as expected.
Actual results:
On both frontend and backend, the billing address is not correctly displayed. The selected option of the dropdown attribute is missing, and the value of the input attribute contains the attribute code.
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 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.