Fetching images for a product has incorrect response

brianh20
Shopify Partner
10 0 1

The Shopify store behaves as follows:

- You upload a SINGLE (1) image for each variant

- You upload additional images at the product level (eg: 3)

 

When you navigate to a product and select a variant you see your image and the other 3 general ones but NOT the images for other variants

 

There is no way to replicate this behaviour by using the Storefront API because it returns ALL the images at the product level, for all variants and only the image for the variant at the variant level.

 

We wrote a piece of code that filters out images from other variants by comparing the urls... but we shouldn't have to.

Reply 1 (1)

KB77
Shopify Staff
59 6 11

Hi @brianh20 If you would like to submit a bug report related to this issue our API team can then take a look and see if this is something we can recommend to our developers for further attention. If you can submit this issue using the Report an Issue Form here https://help.shopify.com/en/questions/partners#/contact/report-an-issue we can process this further if required. Thank you. 

KB77 | API Support @ 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