Enable variant
Use the Enable variants mutation to enable the variants displayed on the store.
note
When new variants are created, they are enabled by default.
EXAMPLE-- Use this mutation to enable a disabled variant like iPhone 13 Pro Gold 128gb AT&T.
Mutation
mutation enableProductVariants($input: EnableProductVariantsInput!) {
enableProductVariants(input: $input) {
userErrors
variants {
configuration {
code
hexcode
name {
locale
value
}
}
edition {
code
id
inventory {
editionCode
id
sku
}
}
id
}
}
}
Was this page helpful?
Tell us more…
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!