Now I have inserted a metafield to order.
It’s ship date.
This is inserted when order is created using Flow.
And this ship date has to be displayed on thank-you page.
So I developed a checkout ui-extension.
But I can’t get this custom metafield in checkout ui-extension.
How can I get it?
Hi - it doesn’t look like order metafields are supported in checkout UI extensions, I believe only the metafields listed here are accessible.
I have not found documentation that supports this, but I am using it in a Checkout UI extension, and it works (added ts ignore to avoid the error of the type not existing):
const orderMetafields = useAppMetafields({
// order type exists
// -ignore
type: "order",
namespace: "[NAMESPACE]",
});