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