Search...
onBackInStockNotificationRequestCreated( )
Developer Preview
Triggered when a back in stock notification request is created.
Description
The onBackInStockNotificationRequestCreated()
event handler runs when a back in stock notification request is created. The received BackInStockNotificationRequestCreated
object contains information about the back in stock notification request that was created and event metadata.
Note: Backend events don't work when previewing your site.
Syntax
function wixEcom_onBackInStockNotificationRequestCreated(event: BackInStockNotificationRequestCreated): void
onBackInStockNotificationRequestCreated Parameters
NAME
TYPE
DESCRIPTION
event
Optional
BackInStockNotificationRequestCreated
Information about the back in stock notification request that was created.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onBackInStockNotificationRequestCreated example
Copy Code
12 export function wixEcom_onBackInStockNotificationRequestCreated(event) {3 const eventId = event.metadata.id4 const entityId = event.entity._id;5 }67