Skip to content

Enumeration: EcomHooks

This enumeration contains the possible hooks to use. See the example for more information.

Enumeration Members

CONTENT_CHANGED

CONTENT_CHANGED = "contentChanged"

A hook that is fired when the content of a section has been changed via the Content Creator. Not fired when a new section is created via 'Add content' button. Use SECTION_CREATED instead. This is a proxy for TPP.onContentChange.


OPEN_STOREFRONT_URL

OPEN_STOREFRONT_URL = "openStoreFrontUrl"

A hook that is fired when a new storefront page should be navigated to. For example on a report click in the Content Creator or a click on the Content Creator navigation.


PAGE_CREATED

PAGE_CREATED = "pageCreated"

A hook that is fired when a new page is created via the 'Create page' button in the Content Creator.


REQUEST_PREVIEW_ELEMENT

REQUEST_PREVIEW_ELEMENT = "requestPreviewElement"

A hook that is fired when the language is changed or an item is clicked in the Content Creator navigation. This is a proxy for TPP.onRequestPreviewElement.


SECTION_CREATED

SECTION_CREATED = "sectionCreated"

A hook that is fired when a new section is created via the 'Add Content' button in the Content Creator.