Hello, I’m just trying to create a brand new extension for adding some fields, these fields are stored in order metafields and I can show them in “Thank you page” through storage object, but this does not work in order status page.
I need to show this data just after the customer address, but Storefront API does not have a method for retrieving orders. I though that maybe i must retrieve customer with Storefront API, and inside customer trying to retrieve the order by ID, but don’t know also how to obtain the customer access token: https://shopify.dev/docs/api/storefront/2023-04/queries/customer
I think it’s a bit weird having only id and name inside order object data, i don’t think it’s about protect personal data, because the order status page also contains whole addresses and customer data. In reference talks about using Admin API, but I think that is not available inside checkout UI extensions.
If there is some way (or not) for obtain these metafields inside order status page, please tell me :). Thanks in advance.
Thank you page have the local storage trick for avoid querying by passing the info from checkout, but this trick won’t work in status page. Help is appreciated, this can be a temporary solution but I think it should exist a pure extension solution.
any news on this? i have almost the same issue (except for the placement)
I want to provide invoices and other (order-individual) files for the customer to download from th eorder details page.
alas i think the checkout script method does not work.
I know there are invoice apps but they all want to generate the invoice. i JUST want to attach a file to the order and enable the customer to download this file.