Shopify / ui-extensions

MIT License
259 stars 36 forks source link

Supporting Product Images/Information on POS UI Extensions? #2175

Open jun-shop opened 1 month ago

jun-shop commented 1 month ago

Discussed in https://github.com/Shopify/ui-extensions/discussions/1010

Originally posted by **bestnewkevin** June 12, 2023 Any thoughts on exposing product data like product image sources for [https://shopify.dev/docs/api/pos-extensions/ui-extensions-reference/](https://shopify.dev/docs/api/pos-extensions/ui-extensions-reference/ ) ? There are references to image srcs in components like list: here [https://shopify.dev/docs/api/pos-extensions/ui-extensions-reference/components/list](https://shopify.dev/docs/api/pos-extensions/ui-extensions-reference/components/list) but Extension Point apis dont expose any image sources that we could use to populate a list of product items. Thanks!
adamwooding commented 1 month ago

Hey @jun-shop , could you use the Product Search api , and filter the products you need? The product search returns the product object which does have both the product featured image and also variant image accessible: https://shopify.dev/docs/api/pos-ui-extensions/2024-04/apis/productsearch-api

jun-shop commented 1 month ago

@bestnewkevin since you were the original poster does the above suggestion work?