For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I'm trying to use a custom image for the checkout header icon:
Using the admin api, the docs are saying to target this field:
Here is my mutation:
However, I am receiving a response saying the field does not exist:
Solved! Go to the solution
This is an accepted solution.
I was using the wrong key to set the image. It needs to be "mediaImageId" and the variable is a GID that you need to find for the image:
"header": {
"cartLink": {
"contentType": "IMAGE",
"image": {
"mediaImageId": "gid://shopify/MediaImage/23455366643786"
}
}
}
This is an accepted solution.
I was using the wrong key to set the image. It needs to be "mediaImageId" and the variable is a GID that you need to find for the image:
"header": {
"cartLink": {
"contentType": "IMAGE",
"image": {
"mediaImageId": "gid://shopify/MediaImage/23455366643786"
}
}
}