App reviews, troubleshooting, and recommendations
Hey,
I got a few products that already exists, and now i wan't to add some Variants to the Product,
For example: I'm selling a Light Bulb 5 watts, but now i want to create a 10 watts one that is the Variant to the main product, i tried some mutations but none is working.
Hi@flavio_ns ,
can you please confirm which theme you are using?.
Thanks
Hey, i'm using the Standard one (i'm doing some tests in the free versions, when everything is 100% i'll get the Pro).
@flavio_ns sounds good refer to the this tutorial how to add variants of the products.
You can use below API to add variants to the product.
Also check this link:- https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/productvariantsbulkcreate
mutation AddProductVariants($productId: ID!, $variants: [ProductVariantsBulkInput!]!) {
productVariantsBulkCreate(productId: $productId, variants: $variants) {
productVariants {
id
title
selectedOptions {
name
value
}
}
userErrors {
field
message
}
}
}
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025