getSelectedVariantId( )


Gets the variant ID of the selected product variant.

This function is currently only available for Wix Studio sites.

The getSelectedVariantId() function returns a Promise that is resolved when the selected product variant's ID is retrieved.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Was this helpful?
Yes
No