onInventoryVariantsChanged( )


Notes:

Triggered when inventory variants are changed.

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

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

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