onInventoryItemChanged( )


Notes:

Triggered when an inventory item is changed.

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

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

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