Default product options

Hi,

In the Shopify admin dashboard you can delete all the existing variant options, obtaining as a result a product with one variant (under the hood), but visually in the product detail page you don’t see the variants section. We have a procedure that create products with the GraphQL Admin API and we are looking for a way to obtain the same behaviour in ProductCreate and ProductUpdate mutations. We tried different options, but none of these worked. Is there a working way you recommend?

Just to be clear, what we expect is to update an existing product with only one variant and see the product detail page without the variant edit section.

Thank you

Hi @DenTok ,

With Graphql, if you want to have just one variant on a product but under the hood like you said :
You need to set the product with one option with name “Title”.

And to set the variant with the option value : “Default Title”.

By doing that, I can create a product by api with only one variant under the hood.

I’m sure about this behavior for a product creation, but I don’t know if it’s works for a product update.

Regards,
Clément.

2 Likes