setQuantity( )


Sets the quantity of a product on the Product Page.

This function is currently only available for Wix Studio sites.

The setQuantity() function returns a Promise that is resolved when the product's quantity is set.

Method Declaration
Copy
Method Parameters
valuenumberRequired

A number representing a product's new quantity.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?