All things Shopify and commerce
Im trying to create new product with options using the productCreate Graphql Admin API . But unfortunatly it is not working properly.
Below is my mutation request:
mutation { productCreate(input: { title: "demo product 4", productType: "Snowboard", productOptions: [ { name: "size", values: [{ name: "large" }, { name: "small" },
{
name: "medium"
}
] } ] }) { product { id hasOnlyDefaultVariant } userErrors { message field } } }
the response is 200. but when i see the created product in admin only the size-large option is created, other values like small and medium are not created.
i also tried product options create API also, but unfortunatly im facing same issue there also. Please help..
I am also banging my head over this issue and whats more concerning is the fact this authors post is from May 😕
it still doesn't work in 24 september 2024, i tried with productVariantsBulkCreate / productOptionsCreate / productCreate and ofc none works
The correct method is as above but the options will not automatically generate variations on the product. Its down to you to then create all the product variations at which point the previously saved options will magically appear.
Then you need to hope your variations count does not exceed 100.
seems weird for me but it works thanks
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024