updateProductFields( )


Updates an existing product by ID.

The updateProductFields() function returns a Promise that resolves when the product with the specified ID has been updated.

Only the properties passed in the Product object will be updated. All other properties will remain the same.

Note: Do not pass important information from client-side code. Doing so opens a vulnerability that a malicious user can exploit to change information, such as a buyer’s personal details (address, email, etc.) or product price information. To learn more about how to keep your code secure, see Security Considerations When Working with Wix Code.

Method Declaration
Copy
Method Parameters
productIdstringRequired

ID of the product to update.


productInfoUpdateProductInfoRequired

The information to update in the product.

Returns
Return Type:Promise<Product>
Did this help?