Hello,
I’m getting this error when using the cartCreate Mutation. But you can see the product in the Products query below. Also, the product is publishing to all my sales channels. Any ideas or thoughts would be much appreciated. Thank you.
Error:
Hello,
I’m getting this error when using the cartCreate Mutation. But you can see the product in the Products query below. Also, the product is publishing to all my sales channels. Any ideas or thoughts would be much appreciated. Thank you.
Error:
Agree with @jibrinumar – from your second screenshot it is obvious that you’re using the ID of the product gid://shopify/Product/... when you need to use id of the Variant.
The numeric part of the ID would be different between the two.
Thank you so much. I used the ProductVariantsById query to get the variant id for the product. and then passed that variant id to createCart and it worked.