addProductMediaToChoices( )
Adds media items by ID to product options.
The addProductMediaToChoices()
function returns a Promise that resolves when the adding of
media (images or videos) to a product's options has started.
Method Declaration
Copy
Method Parameters
productIdstringRequired
ID of the product with choices to which to add media items.
mediaChoicesArray<MediaChoice>Required
Product media items, and the choices to add the media to.
Note: Media must already be added to the product.
Was this helpful?
Yes
No