Search...
onProductCreated( )
Developer Preview
Syntax
function wixStoresCatalog_onProductCreated(event: ProductCreated): void
onProductCreated Parameters
NAME
TYPE
DESCRIPTION
event
Optional
ProductCreated
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onProductCreated example
Copy Code
12 export function wixStoresCatalog_onProductCreated(event) {3 const eventId = event.metadata.id4 const entityId = event.entity._id;5 }67