Disable variant option
Use the Remove variant option mutation to remove a variant for the physical goods (physical product or hardware service) that no longer applies to the product.
EXAMPLE-- One of the options for iPhone, the Carrier, is no longer applicable. Use this mutation to remove this option, so that the user can no longer select this option during their purchase flow.
Mutations
mutation disableProductVariants($input: DisableProductVariantsInput!) {
disableProductVariants(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!