resetVariantData( )


Resets the data (such as the price and the weight) of all variants for a given product to their default values.

The resetVariantData() function returns a Promise that resolves when a product's variants have been reset.

Note: The Manage Variants field for the product must be set to true to reset variant data.

Method Declaration
Copy
Method Parameters
productIdstringRequired

ID of the product whose variants should be reset.

Did this help?