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.
Syntax
function setQuantity(value: number): Promise<void>
setQuantity Parameters
NAME
TYPE
DESCRIPTION
value
number
A number representing a product's new quantity.
Returns
Fulfilled - When the product's quantity is set.
Return Type:
Promise<void>
Was this helpful?
Set the product's quantity
Copy Code
1$w('#myProductPage').setQuantity(4);