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