Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to ProductOptionUpdateVariantStrategy

ProductOptionUpdateVariantStrategy

enum

The set of variant strategies available for use in the productOptionUpdate mutation.

•

Variants are not created nor deleted in response to option values to add or delete. In cases where deleting a variant would be necessary to complete the operation, an error will be returned.

•

Variants are created and deleted according to the option values to add and to delete.

If an option value is added, a new variant will be added for each existing option combination available on the product. For example, if the existing options are Size and Color, with values S/XL and Red/Blue, adding a new option value Green for the option Color will create variants with the option value combinations S/Green and XL/Green.

If an option value is deleted, all variants referencing that option value will be deleted.


Was this section helpful?