onServiceOptionsAndVariantsCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Triggered when a serviceOptionsAndVariants object is created by cloning from the source object.

Method Declaration
Copy
Method Parameters
eventServiceOptionsAndVariantsCreated
onServiceOptionsAndVariantsCreated example
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceOptionsAndVariantsDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Triggered when a serviceOptionsAndVariants object is deleted.

Method Declaration
Copy
Method Parameters
eventServiceOptionsAndVariantsDeleted
onServiceOptionsAndVariantsDeleted example
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceOptionsAndVariantsUpdated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Triggered when a serviceOptionsAndVariants object is updated.

Method Declaration
Copy
Method Parameters
eventServiceOptionsAndVariantsUpdated
onServiceOptionsAndVariantsUpdated example
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Method Declaration
Copy
Method Parameters
eventServiceCreated
onServiceCreated example
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Method Declaration
Copy
function wixBookingsServices_onServiceDeleted(event: ServiceDeleted): void;
Method Parameters
eventServiceDeleted
onServiceDeleted example
JavaScript
export function wixBookingsServices_onServiceDeleted(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?