Anyone else notice when you create a product, and try and assign images to variants, that this is now failing? Since when? It used to work fine. As as example, say I have some media I assign to a product.
So that works. I can see those images. My image is found in the CDN as https://cdn.shopify.com/s/files/1/0600/3369/products/gooberdoober.jpg
When I create a variant, I used to be able to just assign that to the imageSrc of the variant, and it would work. It matches an image assigned to the product, so what is the problem?
Can someone at Shopify please explain why the GraphQL product create (and update) mutations are different?
Can you explain how we are supposed to copy images to variants and have them be linked up? Is this a known bug in the media handling of Shopify?
Solved! Go to the solution
This is an accepted solution.
Best I can figure is, if you use imageSrc for a variant then you best be using "images" at the product level. I used mediaSrc at the product level, and imageSrc fails at the variant level. So I switched the mediaSrc for both, and that worked.
WOW. Shopify. Such a nice consistent and easy to use platform! Truly, a developers Cadillac. Never mind Cadillac, this thing is a Tesla! On Auto-Pilot even!