MDVA-31007: custom address attributes display
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 Quality Patches Tool (QPT) 1.0.7 is installed. Please note that the issue was fixed in Adobe Commerce 2.4.2.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce on cloud infrastructure 2.4.0
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.0 - 2.4.0-p1
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Steps to reproduce:
-
Log in to Admin backend.
-
Navigate to Stores > Attributes > Customer Addresses.
-
Create two 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:
code language-php {{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.
-
On 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 deployment method:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.