Storefront JS API

Check out Customize Storefront section for general details on changing Ecwid’s storefront.

Access Page object to find the current page type

Ecwid.OnPageLoad.add(function(page) {
  alert("My page load handler: " + page.type);

See also: App working in storefront source code example

Storefront JS API allows your app to integrate with storefront on a deeper level. It provides access to events (page changed, cart changed), entities (product, cart, order) and others.

Get started with this list of available use cases:

We use cookies and similar technologies to remember your preferences, measure effectiveness of our campaigns, and analyze depersonalized data to improve performance of our site. By choosing «Accept», you consent to the use of cookies.