onProductCollectionChanged( )


Notes:

Triggered when a collection is changed.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Manage Products
Read Products
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function onProductCollectionChanged(handler: function): void;
Method Parameters
handlerfunction

handler(event: ProductCollectionChangedEnvelope): void | Promise<void>

JavaScript
import { products } from "@wix/stores"; products.onProductCollectionChanged((event) => { // handle your event here });
Did this help?