Skip to content

[5.x]: Address preview not visible on order screen (Regression) #4286

@rickmills

Description

@rickmills

What happened?

Description

See !18632 - The exact same issue returned on CraftCMS 5.9.20 / Commerce 5.6.2 - Addresses are not displaying on orders on a copy that was updated from Craft 4.

I do note that this has regressed twice now in Craft 5. It was fixed in 5.5.8 and then again in 5.9.19 and is broken again in 5.9.20 so it suggests theres something else going on here and do not believe this is a user/site specific issue.

I have been able to verify and replicate this on two craft installations.

Steps to reproduce

  1. Have a website with 500k+ orders in the system on craft 4 and perform an update to an early craft 5 version
  2. Update craft 5 to the 5.9.20 or later release
  3. Addresses in orders are no longer visible, with the exact same issue as seen in !18632 showing, yet if you edit them they show up fine.

Expected behavior

  • The full billing and shipping addresses should be visible on the order detail screen without needing to click Edit.
  • The address cards should show the formatted address preview, as described in the Commerce documentation.
  • (Craft Commerce uses native Address elements and displays them within orders in the control panel.)

Actual behavior

  • Only a collapsed address card is shown.
  • The address content is not displayed until you try to edit an order.

This adds extra steps and makes processing orders slower.

Note: I cannot provide a db dump due to this being a site with a ~10gb db and following strict privacy laws/rules.

Craft CMS version

5.9.20

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions