Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order info is not available for Thank you page extensions

Order info is not available for Thank you page extensions

elastic-s
Shopify Partner
2 0 3

Hello,

Does anybody know how to obtain order information in Thank you page UI extension (React)?

useOrder() React hook was previously returning an empty result. Now it seems like it is entirely removed.

This hook works properly only for Order Status extension. But how can I get order context being on Thank you page?

The only workaround that I see is pulling the customer email and then find the order via Admin API.

Thanks in advance.

Replies 0 (0)