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
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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.


Steps to reproduce:

  1. Log in to Admin backend.

  2. Navigate to Stores > Attributes > Customer Addresses.

  3. Create two attributes:

    • Set input type: Drop-down.
    • Set input type: Text.
  4. Navigate to Stores > Configurations > Customer > Customer Configurations.

  5. Select Scope as Default Store view.

  6. 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}}
  7. Open Storefront.

  8. Create and Log in with a user.

  9. Go to My Account > Address book, and add a new address (fill in the two custom attributes).

  10. Add a product to the cart, and place an order.

  11. On the order success page, click on the Order number link.

  12. On the order details page, observe the Order Information section.

  13. 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:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Patches available in QPT in our developer documentation.