Cart metafield missing on Order Status page (present on Thank you page)

Hi folks, I wanted to flag an issue we’re seeing with cart metafields between the Thank you page and the Order Status page in checkout extensions.

Our app writes a cart metafield during checkout, then reads it back to display on both the Thank you page and the Order Status page. On the Thank you page this works exactly as expected - the metafield is present and renders fine. Once the customer reaches the Order Status page, though, it’s gone. Both shopify.appMetafields and shopify.metafields return an empty array, even though the metafield is declared in the extension’s TOML.

We first noticed this on API version 2025-10 with:

"@preact/signals": "2.5.1",
"@shopify/ui-extensions": "2025.10.11",
"preact": "10.28.0"

We then updated to API version 2026-04 with:

"@preact/signals": "2.9.1",
"@shopify/ui-extensions": "2026.4.0",
"preact": "10.29.2"

No difference - the metafield is still missing on the Order Status page in both cases.

This looks like a bug to us. I noticed something in the changelog about deprecating the old metafields (the checkout metafields, not cart metafields), so I’m wondering whether this is an unintended side effect of that change rather than expected behaviour.

Would really appreciate someone taking a look.

Thanks!

Ticket: #67733028

Possibly related: Order Status extension suddenly cannot retrieve metafields on the storefront - #4 by Andrew_M

Hey @Patrick_Jakubik, thank you for the detailed report! Do you have a matching order metafield definition with the cart to order copyable capability? I was only able to reproduce the issue on the order status page when I did not have a corresponding metafield with this ability.

Please see Use metafield capabilities

Hi @avocadomayo ! I confirm that:

  • I have Copy values from matching cart metafields enabled on my Order metafield definition
  • Metafield is saved on the order
  • In my extension TOML, I have [[extensions.metafields]] entry with my metafield namespace and key.

I also experimented with turning on capabilities: Storefront API access and Customer Account API access, but it did not help.

Thanks for the details @Patrick_Jakubik! A couple of follow-up questions to help me narrow down the issue:

  • On the order details page, do you see a query OrderStatusUiExtensionMetafields? Does that include the metafield in question?
  • In your UI extension, how are you reading the metafield?
  • Could you DM me your test shop along with any special instructions for reproduction? And may I place some test orders so I can debug end to end?

Hi @avocadomayo

  1. OrderStatusUiExtensionMetafields query returns empty array:
{
    "data": {
        "uiExtensionMetafields": []
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 1,
            "actualQueryCost": 1,
            "throttleStatus": {
                "maximumAvailable": 15000.0,
                "currentlyAvailable": 14999,
                "restoreRate": 100.0
            }
        }
    }
}
  1. I’m using either shopify.appMetafields.value or useAppMetafields imported from @shopify/ui-extensions/checkout/preact

  2. I’m sending you all details now! Thank you!