Custom checkout field value not being added to address in order confirmation page

Hello,

I have the following flow:

  • I created an additional checkout field called “House number” (name=“checkout[attributes][houseNumber]”) on the contact_information page

  • I save this value to local storage

  • This value is called and pushed into the next pages of the checkout flow (shipping_method, payment_method, thank_you/order_confirmation) through javascript

  • This value is also added as a hidden input on all of these pages (with preserve attributes method)

Finally, this value is also added to the order when i navigate to the order detail page in the admin (under “Additional details”: houseNumber: [enteredvalue]).

Problem

On the order detail page in the admin, i click “More actions” and then “View order status page”. It then loads the order confirmation page. Unfortunately, it fails to append the houseNumber field value. This is essentially the same page as the “thank_you” page, yet, there, it displays the houseNumber field just fine (on the thank_you page).

I assume this has something to do with the fact i use local storage? Why does the value show on the thank_you page but not on the order confirmation page? Is it because the origin is the order detail admin page and not the actual checkout session?

The reason i ask is because we regularly get emails from clients that seem to be missing the house number field (they think they do) and send us it again, implying they don’t see it in their order confirmation page (which is linked to from their order confirmation email).

When i test my own order confirmation email, i do see the house number field added to the address, and indeed the order confirmation page misses this value. Which causes confusion for the customer.

Is this a known bug? Thank you for the insights!

I attached screenshots from the admin order detail page, the email confirmation, the order confirmation page (which misses the house number field value) and the thank_you page.