Search.../

setQuantity( )

Sets the quantity of a product on the Product Page.

Description

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.

Authorization

Request

This endpoint does not take any parameters

Response Object

Fulfilled - When the product's quantity is set.

Returns an empty object.

Status/Error Codes

Was this helpful?

Set the product's quantity

Copy Code
1$w('#myProductPage').setQuantity(4);