For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Is it possible to fetch all our store Locations from within a Checkout Ui Extension? I need to be able to set the location name where the order will be fulfilled from as an order attribute.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Thanks @Liam! I did try that but it doesn't return any results. According to the docs this is a "List of the shop's locations that support in-store pickup." I need to be able to fetch all locations, not just those that support in-store pickup.
Hi again Jamalali,
You could try setting up an approach where you access the locations API (which would return a list of active inventory locations) with a backend service and then from within the Checkout UI Extension, you could make AJAX/fetch requests to your backend service to fetch location info.
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Liam,
From within a Checkout UI Extension, is it possible to retrieve the locations used to fulfilled the current order?
Thank you!