onQuantityChanged( )


Adds an event handler that runs when a product's quantity is changed.

This function is currently only available for Wix Studio sites.

The onQuantityChanged() function adds an event handler that runs when a product's quantity is changed.

Method Declaration
Copy
Method Parameters
quantityChangedEventHandlerfunctionRequired

quantityChangedEventHandler(quantity: number): void The function to run when a product's quantity is changed.

Was this helpful?
Yes
No